2023-10-23 22:44:47 +00:00
|
|
|
# SPDX-License-Identifier: GPL-2.0
|
2023-10-23 22:46:49 +00:00
|
|
|
# Copyright (C) 2023-present - The JELOS Project (https://github.com/JustEnoughLinuxOS)
|
2023-03-31 12:26:01 +00:00
|
|
|
|
|
|
|
PKG_NAME="drm_tool"
|
|
|
|
PKG_VERSION="1cb5b10"
|
|
|
|
PKG_LICENSE="GPLv3"
|
|
|
|
PKG_SITE="https://github.com/NickCis/drm_tool"
|
|
|
|
PKG_URL="${PKG_SITE}.git"
|
2023-04-01 00:20:39 +00:00
|
|
|
PKG_DEPENDS_TARGET="toolchain libdrm"
|
2023-03-31 12:26:01 +00:00
|
|
|
PKG_LONGDESC="A simple tool for getting drm info and setting properties."
|
|
|
|
|
2023-04-01 00:20:39 +00:00
|
|
|
|
|
|
|
pre_configure_target() {
|
|
|
|
export CFLAGS="${TARGET_CFLAGS} -D_FILE_OFFSET_BITS=64 -ldrm"
|
|
|
|
export LDFLAGS="${TARGET_LDFLAGS} -ldrm"
|
|
|
|
}
|
|
|
|
|
2023-03-31 12:26:01 +00:00
|
|
|
makeinstall_target() {
|
|
|
|
mkdir -p ${INSTALL}/usr/bin
|
|
|
|
cp drm_tool ${INSTALL}/usr/bin
|
|
|
|
}
|