distribution/packages/emulators/tools/gptokeyb/package.mk

27 lines
791 B
Makefile
Raw Normal View History

2022-02-05 14:23:32 +00:00
# SPDX-License-Identifier: GPL-2.0-or-later
# Copyright (C) 2021-present Shanti Gilbert (https://github.com/shantigilbert)
PKG_NAME="gptokeyb"
PKG_VERSION="be8478deed8552293f5ae66cbcf415d23de9be0f"
2022-12-22 22:02:45 +00:00
PKG_ARCH="any"
2022-02-05 14:23:32 +00:00
PKG_LICENSE="GPLv3"
PKG_SITE="https://github.com/EmuELEC/gptokeyb"
2023-02-24 13:53:43 +00:00
PKG_URL="${PKG_SITE}.git"
2022-12-22 22:02:45 +00:00
PKG_DEPENDS_TARGET="toolchain libevdev SDL2 control-gen"
2022-02-05 14:23:32 +00:00
PKG_TOOLCHAIN="make"
GET_HANDLER_SUPPORT="git"
pre_make_target() {
2023-02-24 13:53:43 +00:00
cp -f ${PKG_DIR}/Makefile ${PKG_BUILD}
2022-02-05 14:23:32 +00:00
CFLAGS+=" -I$(get_build_dir SDL2)/include -D_REENTRANT"
CFLAGS+=" -I$(get_build_dir libevdev)"
}
makeinstall_target() {
2023-02-24 13:53:43 +00:00
mkdir -p ${INSTALL}/usr/bin
cp ${PKG_BUILD}/gptokeyb ${INSTALL}/usr/bin
2023-05-30 13:12:17 +00:00
mkdir -p ${INSTALL}/usr/config/gptokeyb/
cp ${PKG_BUILD}/configs/default.gptk ${INSTALL}/usr/config/gptokeyb/
2022-02-05 14:23:32 +00:00
}