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

25 lines
657 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"
2022-02-14 21:29:25 +00:00
PKG_VERSION="0d807e67d9dab1f23b9593467ea5d0c1c1bf2e50"
2022-02-05 14:23:32 +00:00
PKG_ARCH="aarch64"
PKG_LICENSE="GPLv3"
PKG_SITE="https://github.com/EmuELEC/gptokeyb"
PKG_URL="$PKG_SITE.git"
PKG_DEPENDS_TARGET="toolchain libevdev SDL2"
PKG_TOOLCHAIN="make"
GET_HANDLER_SUPPORT="git"
pre_make_target() {
cp -f $PKG_DIR/Makefile $PKG_BUILD
CFLAGS+=" -I$(get_build_dir SDL2)/include -D_REENTRANT"
CFLAGS+=" -I$(get_build_dir libevdev)"
}
makeinstall_target() {
mkdir -p $INSTALL/usr/bin
cp $PKG_BUILD/gptokeyb $INSTALL/usr/bin
}