2022-02-05 14:23:32 +00:00
|
|
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
# Copyright (C) 2019-present Shanti Gilbert (https://github.com/shantigilbert)
|
|
|
|
|
|
|
|
PKG_NAME="joyutils"
|
|
|
|
PKG_VERSION="b6703ebf04c839fc47f9e490b68c4d5d885f32f9"
|
|
|
|
PKG_SHA256="73914d760d44542fa5b88ab42f914713e07e184c299415fdbe8abd83e68dc200"
|
|
|
|
PKG_REV="1"
|
|
|
|
PKG_ARCH="any"
|
|
|
|
PKG_LICENSE="GPL"
|
|
|
|
PKG_SITE="https://github.com/datrh/joyutils"
|
2023-02-24 13:53:43 +00:00
|
|
|
PKG_URL="${PKG_SITE}/archive/${PKG_VERSION}.tar.gz"
|
2022-02-05 14:23:32 +00:00
|
|
|
PKG_DEPENDS_TARGET="toolchain"
|
|
|
|
PKG_PRIORITY="optional"
|
|
|
|
PKG_SECTION="tools"
|
|
|
|
PKG_SHORTDESC="jscal, jstest, and jsattach utilities for the Linux joystick driver"
|
|
|
|
PKG_LONGDESC="jscal, jstest, and jsattach utilities for the Linux joystick driver"
|
|
|
|
|
|
|
|
PKG_IS_ADDON="no"
|
|
|
|
PKG_AUTORECONF="no"
|
|
|
|
|
|
|
|
# post_unpack() {
|
2023-02-24 13:53:43 +00:00
|
|
|
# mv $BUILD/joystick-${PKG_VERSION} $BUILD/${PKG_NAME}-${PKG_VERSION}
|
2022-02-05 14:23:32 +00:00
|
|
|
# }
|
|
|
|
|
|
|
|
make_target() {
|
2023-02-24 13:53:43 +00:00
|
|
|
${CC} -lm -o jscal jscal.c ${CFLAGS}
|
|
|
|
${CC} -lm -o jstest jstest.c ${CFLAGS}
|
|
|
|
${CC} -lm -o jsattach jsattach.c ${CFLAGS}
|
2022-02-05 14:23:32 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
makeinstall_target() {
|
2023-02-24 13:53:43 +00:00
|
|
|
mkdir -p ${INSTALL}/usr/bin
|
|
|
|
cp jscal ${INSTALL}/usr/bin/
|
|
|
|
cp jstest ${INSTALL}/usr/bin/
|
|
|
|
cp jsattach ${INSTALL}/usr/bin/
|
2022-02-05 14:23:32 +00:00
|
|
|
}
|