aboutsummaryrefslogtreecommitdiffstats
path: root/games
diff options
context:
space:
mode:
authorjylefort <jylefort@FreeBSD.org>2005-10-23 11:13:53 +0800
committerjylefort <jylefort@FreeBSD.org>2005-10-23 11:13:53 +0800
commit3b75c1a7cac39ef25a350420672e71f3e551ff98 (patch)
tree21726db42591a2b1b6e5fbd54eb6951b9dad2c54 /games
parentcbf75600839811ea8330c4eb8c5dca2344390f0f (diff)
downloadfreebsd-ports-gnome-3b75c1a7cac39ef25a350420672e71f3e551ff98.tar.gz
freebsd-ports-gnome-3b75c1a7cac39ef25a350420672e71f3e551ff98.tar.zst
freebsd-ports-gnome-3b75c1a7cac39ef25a350420672e71f3e551ff98.zip
- Respect ${X11BASE} [1]
- Respect ${PTHREAD_CFLAGS} - Add a pkg-message advicing the user to increase the data size limit - Cleanup the Makefile Reported by: pointyhat via kris [1]
Diffstat (limited to 'games')
-rw-r--r--games/flightgear/Makefile32
-rw-r--r--games/flightgear/pkg-message10
2 files changed, 21 insertions, 21 deletions
diff --git a/games/flightgear/Makefile b/games/flightgear/Makefile
index 8f9574f9356c..859f83e116df 100644
--- a/games/flightgear/Makefile
+++ b/games/flightgear/Makefile
@@ -7,7 +7,7 @@
PORTNAME= FlightGear
PORTVERSION= 0.9.8
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= games
MASTER_SITES= ftp://ftp.flightgear.org/pub/fgfs/Source/ \
ftp://ftp.de.flightgear.org/pub/fgfs/Source/
@@ -17,36 +17,26 @@ COMMENT= The FlightGear flight simulator
LIB_DEPENDS= glut:${PORTSDIR}/graphics/libglut
BUILD_DEPENDS= ${X11BASE}/lib/libplibsl.a:${PORTSDIR}/x11-toolkits/plib \
- ${X11BASE}/include/simgear/threads/SGThread.hxx:${PORTSDIR}/devel/simgear \
${X11BASE}/lib/libsgmisc.a:${PORTSDIR}/devel/simgear
RUN_DEPENDS= ${X11BASE}/lib/libplibsl.a:${PORTSDIR}/x11-toolkits/plib \
- ${X11BASE}/include/simgear/threads/SGThread.hxx:${PORTSDIR}/devel/simgear \
${X11BASE}/lib/libsgmisc.a:${PORTSDIR}/devel/simgear \
${LOCALBASE}/share/FlightGear/version:${PORTSDIR}/games/fgfs-base
+USE_REINPLACE= yes
USE_GMAKE= yes
GNU_CONFIGURE= yes
-# Force configure to look in ${LOCALBASE}/{include,lib}. Note
-# that it already knows about ${X11BASE}/{include,lib}.
-# XXX Add ${PTHREAD_LIBS} to LDFLAGS to work around brokenness in
-# XXX FreeBSD's gcc: libopenal is linked with -pthread and should
-# XXX have a dependency on libpthread, but gcc ignores -pthread
-# XXX when building shared objects.
-CONFIGURE_ENV= CC="${CC}" CFLAGS="${CFLAGS}" \
- CXX="${CXX}" CXXFLAGS="${CXXFLAGS}" \
- CPPFLAGS="-I${LOCALBASE}/include" \
- LDFLAGS="-L${LOCALBASE}/lib ${PTHREAD_LIBS}"
-CONFIGURE_ARGS= --program-transform-name='s/^${CONFIGURE_TARGET}-//' \
- --datadir=${LOCALBASE}/share \
- --with-threads
+CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include -I${X11BASE}/include" \
+ LDFLAGS="-L${LOCALBASE}/lib -L${X11BASE}/lib ${PTHREAD_LIBS}"
+CONFIGURE_ARGS= --datadir=${LOCALBASE}/share # location of fgfs-base
+CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
MAN1= est-epsilon.1 fgfs.1 fgjs.1 gl-info.1 js_demo.1 pstest.1
-post-extract:
- @${FIND} ${WRKSRC} \( -name '.#*' -or -name '*~' \) -delete
+post-patch:
+ @${REINPLACE_CMD} -e 's|-D_REENTRANT|${PTHREAD_CFLAGS}|' \
+ ${WRKSRC}/configure
-do-install:
- @${ECHO} ">> Installing program"
- @(cd ${INSTALL_WRKSRC} && ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} ${INSTALL_TARGET})
+post-install:
+ @${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>
diff --git a/games/flightgear/pkg-message b/games/flightgear/pkg-message
new file mode 100644
index 000000000000..091ab6726ab9
--- /dev/null
+++ b/games/flightgear/pkg-message
@@ -0,0 +1,10 @@
+===============================================================================
+FlightGear may occasionally exceed the FreeBSD default maximum data size
+(512 MB), resulting in a crash of the program. To avoid that situation, add
+the following lines to /boot/loader.conf and reboot the system:
+
+ # set the maximum data size limit to 1 GB
+ kern.maxdsiz="1073741824"
+ # set the default data size limit to 1 GB
+ kern.dfldsiz="1073741824"
+===============================================================================