Created
September 27, 2022 21:57
-
-
Save Langerz82/5fc2577f1e1e933d188368ad0ea2a60f to your computer and use it in GitHub Desktop.
EmuELEC - packages/sx05re/tools/sysutils/gptokeyb/package.mk
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# SPDX-License-Identifier: GPL-2.0-or-later | |
# Copyright (C) 2021-present Shanti Gilbert (https://github.com/shantigilbert) | |
PKG_NAME="gptokeyb" | |
PKG_VERSION="0a9005074b6355bab8bc10a72a8302204e692862" | |
PKG_ARCH="any" | |
PKG_LICENSE="GPLv2" | |
PKG_SITE="https://github.com/EmuELEC/gptokeyb" | |
PKG_URL="$PKG_SITE.git" | |
PKG_DEPENDS_TARGET="toolchain SDL2 libevdev" | |
PKG_SECTION="emuelec" | |
PKG_SHORTDESC="Gamepad to Keyboard/mouse/xbox360 emulator" | |
PKG_TOOLCHAIN="make" | |
pre_configure_target() { | |
sed -i "s|\`sdl2-config|\`$SYSROOT_PREFIX/usr/bin/sdl2-config|g" Makefile | |
sed -i "s|\-I/usr/include/libevdev-1.0|\-I$SYSROOT_PREFIX/usr/include/libevdev-1.0|g" Makefile | |
} | |
makeinstall_target(){ | |
mkdir -p $INSTALL/usr/bin | |
cp gptokeyb $INSTALL/usr/bin | |
mkdir -p $INSTALL/usr/config/emuelec/configs/gptokeyb | |
cp -rf ${PKG_BUILD}/configs/*.gptk $INSTALL/usr/config/emuelec/configs/gptokeyb | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment