mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-16 07:58:04 +00:00
fa2e59ab4d
Changes: https://github.com/libsdl-org/SDL/commits/release-2.30.3/test/controllermap.c Reported by: portscout
36 lines
909 B
Makefile
36 lines
909 B
Makefile
PORTNAME= controllermap
|
|
DISTVERSION= 2.30.3
|
|
CATEGORIES= x11
|
|
MASTER_SITES= https://www.libsdl.org/release/
|
|
DISTNAME= SDL2-${DISTVERSION}
|
|
|
|
MAINTAINER= jbeich@FreeBSD.org
|
|
COMMENT= Game controller mapping generator
|
|
|
|
LICENSE= PD
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
|
|
|
USES= sdl
|
|
USE_SDL= sdl2
|
|
WRKSRC_SUBDIR= test
|
|
CFLAGS+= `sdl2-config --cflags`
|
|
LIBS+= `sdl2-config --libs`
|
|
MAKEFILE= /dev/null
|
|
MAKE_ENV= LDLIBS="${LIBS}"
|
|
ALL_TARGET= ${PORTNAME} testgamecontroller testjoystick
|
|
PLIST_FILES= ${ALL_TARGET:S,^,bin/,}
|
|
PORTDATA= ${PORTNAME}.bmp ${PORTNAME}_back.bmp axis.bmp button.bmp
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e '/bmp/s,","${DATADIR}/,' \
|
|
-e '/#include/s/\(testutils\)\.h/\1.c/' \
|
|
${ALL_TARGET:S,^,${WRKSRC}/,:S,$,.c,}
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${ALL_TARGET:S,^,${WRKSRC}/,} \
|
|
${STAGEDIR}${PREFIX}/bin
|
|
(cd ${WRKSRC} && ${COPYTREE_SHARE} "${PORTDATA}" \
|
|
${STAGEDIR}${DATADIR})
|
|
|
|
.include <bsd.port.mk>
|