2022-02-05 14:23:32 +00:00
|
|
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
# Copyright (C) 2020-present Shanti Gilbert (https://github.com/shantigilbert)
|
2022-04-18 21:25:10 +00:00
|
|
|
# Copyright (C) 2022-present Fewtarius
|
2022-02-05 14:23:32 +00:00
|
|
|
|
|
|
|
PKG_NAME="sdljoytest"
|
2022-04-18 21:25:10 +00:00
|
|
|
PKG_VERSION="811d9875e0c13e0c87d93351e69169bf74d28270"
|
|
|
|
PKG_SHA256="8e5bb4c81ff23f2826efd87c2fc20b1a70b691395c1639ef3b08c87698faa139"
|
2022-02-05 14:23:32 +00:00
|
|
|
PKG_LICENSE="OSS"
|
|
|
|
PKG_SITE="https://github.com/Wintermute0110/sdljoytest"
|
2022-04-18 21:25:10 +00:00
|
|
|
PKG_URL="${PKG_SITE}/archive/${PKG_VERSION}.tar.gz"
|
2022-02-05 14:23:32 +00:00
|
|
|
PKG_DEPENDS_TARGET="toolchain SDL2"
|
|
|
|
PKG_LONGDESC="Test joystick with SDL2 in Linux"
|
|
|
|
PKG_TOOLCHAIN="make"
|
|
|
|
|
|
|
|
pre_configure_target() {
|
|
|
|
sed -i "s|gcc|${CC}|" Makefile
|
|
|
|
}
|
|
|
|
|
|
|
|
makeinstall_target() {
|
2022-04-18 23:16:36 +00:00
|
|
|
mkdir -p ${INSTALL}/usr/bin
|
|
|
|
cp -rf test_gamepad_SDL2 ${INSTALL}/usr/bin
|
|
|
|
ln -s test_gamepad_SDL2 ${INSTALL}/usr/bin/sdljoytest
|
|
|
|
cp -rf map_gamepad_SDL2 ${INSTALL}/usr/bin
|
|
|
|
ln -s map_gamepad_SDL2 ${INSTALL}/usr/bin/sdljoymap
|
2022-02-05 14:23:32 +00:00
|
|
|
}
|