1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-26 00:55:14 +00:00

Use shebangfix

This commit is contained in:
Rene Ladan 2013-05-07 08:31:52 +00:00
parent 69f460782e
commit c84102f49b
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=317584

View File

@ -19,6 +19,12 @@ LIB_DEPENDS= png15:${PORTSDIR}/graphics/png \
vorbis:${PORTSDIR}/audio/libvorbis
RUN_DEPENDS= bash:${PORTSDIR}/shells/bash
USES= shebangfix
SHEBANG_FILES= src/linux/torcs.in src/tools/accc/accc.in \
src/tools/nfsperf/nfsperf.in \
src/tools/texmapper/texmapper.in src/tools/nfs2ac/nfs2ac.in \
src/tools/trackgen/trackgen.in \
src/modules/telemetry/telemetry.sh robotgen Make-default.mk
USE_XORG= xrender xmu ice xext x11 xxf86vm xrandr
USE_GL= glut
USE_OPENAL= al alut
@ -26,7 +32,6 @@ USE_BZIP2= yes
GNU_CONFIGURE= yes
USE_GMAKE= yes
USE_LDCONFIG= yes
REINPLACE_ARGS= -i ""
CONFIGURE_ARGS= --x-includes=${LOCALBASE}/include --x-libraries=${LOCALBASE}/lib
CONFIGURE_ENV= LIBS="${PTHREAD_LIBS}"
CPPFLAGS+= -I${LOCALBASE}/include -I${LOCALBASE}/include -DHAVE_DECL_GETOPT
@ -40,12 +45,6 @@ INSTDIR= ${PREFIX}/share/games/${PORTNAME}
PORTDOCS= faq.html
BASH2FIX= src/linux/torcs.in src/tools/accc/accc.in \
src/tools/nfsperf/nfsperf.in \
src/tools/texmapper/texmapper.in src/tools/nfs2ac/nfs2ac.in \
src/tools/trackgen/trackgen.in \
src/modules/telemetry/telemetry.sh robotgen Make-default.mk
DESKTOP_ENTRIES= "TORCS" \
"The Open Racing Car Simulator" \
"${INSTDIR}/Ticon.png" \
@ -59,12 +58,6 @@ OPTIONS_DEFINE= DOCS
EMPTYDIR= champ dtmrace endrace ncrace practice quickrace
post-patch:
.for FILE in ${BASH2FIX}
@${REINPLACE_CMD} -E -e "s|/bin/bash|${LOCALBASE}/bin/bash|" \
${WRKSRC}/${FILE}
.endfor
pre-install:
@${MKDIR} ${PREFIX}/share/games