mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-04 01:48:54 +00:00
9f8b4bcde3
- Add LIBS="${LIBS}" to MAKE_ENV and CONFIGURE_ENV. - Add an option helper for LIBS. - Adjust all ports that already use LIBS. Also remove references to PTHREAD_CFLAGS and PTHREAD_LIBS while here. - Some ports did not support having a LIBS environment variable and required additional patches. Somewhat simplified a linker command line looks like: ${CC} ${src_LDFLAGS} ${LDFLAGS} ${src_LIBS} ${LIBS} where src_LDFLAGS and src_LIBS are controlled by upstream and LDFLAGS and LIBS can be controlled by us. If possible -L and -l flags need to be added to LIBS to make sure they appear after any -L and -l flags set by upstream. Many ports currently add -L${LOCALBASE}/lib to LDFLAGS but this may appear too early on the command line causing installed libraries to be linked in instead of freshly built ones. Additional changes: benchmarks/netio: Replace WITH_IPV6 with an IPV6 option. comms/gnokii: Replace some patches with USES=pathfix. Also remove -fPIC. graphics/gimageview: USES=libtool and install desktop file in DESKTOPDIR. graphics/visionworkbench: Remove FreeBSD 7 support. multimedia/libmovtar: New LIB_DEPENDS syntax. multimedia/opencinematools: Use standard do-build. net/siproxd: USES=libtool:keepla (port actually needs .la files for plugins) net-mgmt/nagios: Remove -fPIC. net-mgmt/nagios4: Remove -fPIC. print/cups-base: Only add -lssp_nonshared on i386 and OSVERSION < 1000036. security/p11-kit: Replace PTHREAD_LIBS in CONFIGURE_ENV with ac_cv_func_pthread_mutexattr_init=no in CONFIGURE_ARGS. This skips a test in configure that falsely detects pthread_mutexattr_init in our libc. sysutils/dar: Fix iconv detection. x11/rxvt-unicode: Remove -lstdc++ and patch configure to remove a FreeBSD hack and use $CXX as linker as on other platforms. PR: 190592 Exp-run by: antoine Approved by: portmgr (antoine)
102 lines
2.5 KiB
Makefile
102 lines
2.5 KiB
Makefile
# Created by: thierry@pompo.net
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= torcs
|
|
DISTVERSION= 1.3.6
|
|
CATEGORIES= games
|
|
MASTER_SITES= SF/${PORTNAME}/all-in-one/${PORTVERSION}
|
|
|
|
MAINTAINER= rene@FreeBSD.org
|
|
COMMENT= The Open Racing Car Simulator
|
|
|
|
LICENSE= GPLv2
|
|
|
|
MAKE_JOBS_UNSAFE= yes
|
|
|
|
BUILD_DEPENDS= ${LOCALBASE}/lib/libplibsl.a:${PORTSDIR}/x11-toolkits/plib
|
|
LIB_DEPENDS= libpng15.so:${PORTSDIR}/graphics/png \
|
|
libvorbis.so:${PORTSDIR}/audio/libvorbis
|
|
RUN_DEPENDS= bash:${PORTSDIR}/shells/bash
|
|
|
|
USES= gmake openal:al,alut shebangfix tar:bzip2
|
|
SHEBANG_FILES= 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
|
|
USE_XORG= xrender xmu ice xext x11 xxf86vm xrandr
|
|
USE_GL= glut
|
|
GNU_CONFIGURE= yes
|
|
USE_LDCONFIG= yes
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
|
|
|
ALL_TARGET= default
|
|
INSTALL_TARGET= install datainstall
|
|
INSTDIR= ${PREFIX}/share/games/${PORTNAME}
|
|
|
|
PORTDOCS= faq.html
|
|
|
|
BASH2FIX= src/linux/torcs.in Make-default.mk
|
|
|
|
STRIPFILES= drivers/berniw/berniw.so \
|
|
drivers/berniw2/berniw2.so \
|
|
drivers/berniw3/berniw3.so \
|
|
drivers/bt/bt.so \
|
|
drivers/damned/damned.so \
|
|
drivers/human/human.so \
|
|
drivers/inferno/inferno.so \
|
|
drivers/inferno2/inferno2.so \
|
|
drivers/lliaw/lliaw.so \
|
|
drivers/olethros/olethros.so \
|
|
drivers/sparkle/sparkle.so \
|
|
drivers/tita/tita.so \
|
|
lib/libclient.so \
|
|
lib/libconfscreens.so \
|
|
lib/liblearning.so \
|
|
lib/libmusicplayer.so \
|
|
lib/libraceengine.so \
|
|
lib/libracescreens.so \
|
|
lib/librobottools.so \
|
|
lib/libtgf.so \
|
|
lib/libtgfclient.so \
|
|
lib/libtxml.so \
|
|
modules/graphic/ssggraph.so \
|
|
modules/simu/simuv2.so \
|
|
modules/telemetry/telemetry.so \
|
|
modules/track/track.so
|
|
|
|
DESKTOP_ENTRIES= "TORCS" \
|
|
"The Open Racing Car Simulator" \
|
|
"${INSTDIR}/Ticon.png" \
|
|
"torcs" \
|
|
"Game;Simulation;" \
|
|
false
|
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
EMPTYDIR= champ dtmrace endrace ncrace practice quickrace
|
|
|
|
# shebangfix does not catch these two (not at top of file):
|
|
post-patch:
|
|
.for FILE in ${BASH2FIX}
|
|
@${REINPLACE_CMD} -E -e "s|/bin/bash|${LOCALBASE}/bin/bash|" \
|
|
${WRKSRC}/${FILE}
|
|
.endfor
|
|
|
|
post-build:
|
|
.for FILE in ${STRIPFILES}
|
|
${STRIP_CMD} ${WRKSRC}/export/${FILE}
|
|
.endfor
|
|
|
|
pre-install:
|
|
@${MKDIR} ${STAGEDIR}${PREFIX}/share/games
|
|
|
|
post-install:
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/doc/faq/|} ${STAGEDIR}${DOCSDIR}
|
|
.for ed in ${EMPTYDIR}
|
|
${TOUCH} ${STAGEDIR}${INSTDIR}/results/${ed}/.keep_me
|
|
.endfor
|
|
|
|
.include <bsd.port.mk>
|