1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-16 07:58:04 +00:00
freebsd-ports/x11/controllermap/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>