pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Import SDL2_testgamecontroller
Module Name: pkgsrc-wip
Committed By: Charlotte Koch <charlotte%NetBSD.org@localhost>
Pushed By: cfkoch
Date: Tue Aug 22 12:42:08 2023 -0700
Changeset: e5380ef7237267abe6cf633ff17cc2f76efca81d
Modified Files:
Makefile
Added Files:
SDL2_testgamecontroller/DESCR
SDL2_testgamecontroller/Makefile
SDL2_testgamecontroller/PLIST
SDL2_testgamecontroller/distinfo
SDL2_testgamecontroller/files/controllermap.template
SDL2_testgamecontroller/files/testgamecontroller.template
SDL2_testgamecontroller/files/testjoystick.template
Log Message:
Import SDL2_testgamecontroller
This package provides the game controller test applications from SDL. You
can plug in a joystick or gamepad to validate its functionality. The
programs also will generate a controller database mapping string for you,
which is usually necessary in order to get SDL-based apps to recognize your
device.
(In reality this probably should be an option of devel/SDL2 but I'm still
experimenting with hardware at the moment)
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=e5380ef7237267abe6cf633ff17cc2f76efca81d
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
Makefile | 1 +
SDL2_testgamecontroller/DESCR | 4 ++
SDL2_testgamecontroller/Makefile | 54 ++++++++++++++++++++++
SDL2_testgamecontroller/PLIST | 13 ++++++
SDL2_testgamecontroller/distinfo | 5 ++
.../files/controllermap.template | 4 ++
.../files/testgamecontroller.template | 4 ++
.../files/testjoystick.template | 4 ++
8 files changed, 89 insertions(+)
diffs:
diff --git a/Makefile b/Makefile
index 625a0a0a99..8faad6e1c9 100644
--- a/Makefile
+++ b/Makefile
@@ -78,6 +78,7 @@ SUBDIR+= R-wellknown
SUBDIR+= Radicale3
SUBDIR+= ReZound
SUBDIR+= RigelEngine
+SUBDIR+= SDL2_testgamecontroller
SUBDIR+= SNAP
SUBDIR+= SOGo5
SUBDIR+= SOPE5
diff --git a/SDL2_testgamecontroller/DESCR b/SDL2_testgamecontroller/DESCR
new file mode 100644
index 0000000000..0f9a91d5e3
--- /dev/null
+++ b/SDL2_testgamecontroller/DESCR
@@ -0,0 +1,4 @@
+This package provides the game controller test application from SDL. You can
+plug in a joystick or gamepad to validate its functionality. The program
+also will generate a controller database mapping string for you, which is
+usually necessary in order to get SDL-based apps to recognize your device.
diff --git a/SDL2_testgamecontroller/Makefile b/SDL2_testgamecontroller/Makefile
new file mode 100644
index 0000000000..69d0092f33
--- /dev/null
+++ b/SDL2_testgamecontroller/Makefile
@@ -0,0 +1,54 @@
+# $NetBSD$
+
+VERSION= 2.28.2
+DISTNAME= SDL2-${VERSION}
+PKGNAME= SDL2_testgamecontroller-${VERSION}
+CATEGORIES= devel
+MASTER_SITES= ${MASTER_SITE_GITHUB:=libsdl-org/}
+GITHUB_PROJECT= SDL
+GITHUB_RELEASE= release-${PKGVERSION_NOREV}
+
+MAINTAINER= charlotte%NetBSD.org@localhost
+HOMEPAGE= https://www.libsdl.org/
+COMMENT= Gamepad and joystick configuration tools from SDL2
+LICENSE= zlib
+
+USE_LANGUAGES= c c++
+USE_TOOLS+= gmake pkg-config
+GNU_CONFIGURE= yes
+
+WRKSRC= ${WRKDIR}/${DISTNAME}/test
+
+PROGRAMS+= controllermap
+PROGRAMS+= testgamecontroller
+PROGRAMS+= testjoystick
+
+DATA+= axis.bmp
+DATA+= button.bmp
+DATA+= controllermap.bmp
+DATA+= controllermap_back.bmp
+DATA+= icon.bmp
+DATA+= sample.bmp
+
+BUILD_TARGET= ${PROGRAMS}
+
+INSTALLATION_DIRS+= bin
+INSTALLATION_DIRS+= libexec
+INSTALLATION_DIRS+= share/SDL2_testgamecontroller
+
+pre-configure:
+.for prog in ${PROGRAMS}
+ ${SED} -e 's,@@PREFIX@@,${PREFIX},g' ${FILESDIR}/${prog}.template > ${WRKDIR}/${prog}
+.endfor
+
+do-install:
+.for prog in ${PROGRAMS}
+ ${INSTALL_SCRIPT} ${WRKDIR}/${prog} ${DESTDIR}${PREFIX}/bin
+ ${INSTALL_PROGRAM} ${WRKSRC}/${prog} ${DESTDIR}${PREFIX}/libexec
+.endfor
+.for file in ${DATA}
+ ${INSTALL_DATA} ${WRKSRC}/${file} ${DESTDIR}${PREFIX}/share/SDL2_testgamecontroller
+.endfor
+
+.include "../../devel/SDL2/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/SDL2_testgamecontroller/PLIST b/SDL2_testgamecontroller/PLIST
new file mode 100644
index 0000000000..0aa1040128
--- /dev/null
+++ b/SDL2_testgamecontroller/PLIST
@@ -0,0 +1,13 @@
+@comment $NetBSD$
+bin/controllermap
+bin/testgamecontroller
+bin/testjoystick
+libexec/controllermap
+libexec/testgamecontroller
+libexec/testjoystick
+share/SDL2_testgamecontroller/axis.bmp
+share/SDL2_testgamecontroller/button.bmp
+share/SDL2_testgamecontroller/controllermap.bmp
+share/SDL2_testgamecontroller/controllermap_back.bmp
+share/SDL2_testgamecontroller/icon.bmp
+share/SDL2_testgamecontroller/sample.bmp
diff --git a/SDL2_testgamecontroller/distinfo b/SDL2_testgamecontroller/distinfo
new file mode 100644
index 0000000000..a554b5c1a9
--- /dev/null
+++ b/SDL2_testgamecontroller/distinfo
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.62 2023/08/04 20:03:10 adam Exp $
+
+BLAKE2s (SDL2-2.28.2.tar.gz) = c66052726ee2eb5ce806d5ac3a14e90d44eccc3e260e7f674cf95ca41a2f1294
+SHA512 (SDL2-2.28.2.tar.gz) = 2c5559c4ec2a71bb89b3fc6e9d0a2b206b8cc1021dfa4ad328aab9a931757ed5fac5ec76d4966dccf81bd861de20963e2013bac62be9ef75ebe1c08678999c39
+Size (SDL2-2.28.2.tar.gz) = 7341117 bytes
diff --git a/SDL2_testgamecontroller/files/controllermap.template b/SDL2_testgamecontroller/files/controllermap.template
new file mode 100644
index 0000000000..1b06627c82
--- /dev/null
+++ b/SDL2_testgamecontroller/files/controllermap.template
@@ -0,0 +1,4 @@
+#!/bin/sh
+# $NetBSD$
+set -e
+cd @@PREFIX@@/share/SDL2_testgamecontroller && @@PREFIX@@/libexec/controllermap
diff --git a/SDL2_testgamecontroller/files/testgamecontroller.template b/SDL2_testgamecontroller/files/testgamecontroller.template
new file mode 100644
index 0000000000..1b5d6abda9
--- /dev/null
+++ b/SDL2_testgamecontroller/files/testgamecontroller.template
@@ -0,0 +1,4 @@
+#!/bin/sh
+# $NetBSD$
+set -e
+cd @@PREFIX@@/share/SDL2_testgamecontroller && @@PREFIX@@/libexec/testgamecontroller
diff --git a/SDL2_testgamecontroller/files/testjoystick.template b/SDL2_testgamecontroller/files/testjoystick.template
new file mode 100644
index 0000000000..094c37112a
--- /dev/null
+++ b/SDL2_testgamecontroller/files/testjoystick.template
@@ -0,0 +1,4 @@
+#!/bin/sh
+# $NetBSD$
+set -e
+cd @@PREFIX@@/share/SDL2_testgamecontroller && @@PREFIX@@/libexec/testjoystick
Home |
Main Index |
Thread Index |
Old Index