distribution/packages/sysutils/drm_tool/package.mk

22 lines
607 B
Makefile
Raw Normal View History

# SPDX-License-Identifier: GPL-2.0
# Copyright (C) 2023 JELOS (https://github.com/JustEnoughLinuxOS)
PKG_NAME="drm_tool"
2023-12-15 16:33:23 +00:00
PKG_VERSION="1cb5b10b7d529105e33f27388519671ee7ce46f3"
PKG_LICENSE="GPLv3"
PKG_SITE="https://github.com/NickCis/drm_tool"
PKG_URL="${PKG_SITE}.git"
PKG_DEPENDS_TARGET="toolchain libdrm"
PKG_LONGDESC="A simple tool for getting drm info and setting properties."
pre_configure_target() {
export CFLAGS="${TARGET_CFLAGS} -D_FILE_OFFSET_BITS=64 -ldrm"
export LDFLAGS="${TARGET_LDFLAGS} -ldrm"
}
makeinstall_target() {
mkdir -p ${INSTALL}/usr/bin
cp drm_tool ${INSTALL}/usr/bin
}