aboutsummaryrefslogtreecommitdiff
path: root/games/flightgear
diff options
context:
space:
mode:
authorJean-Yves Lefort <jylefort@FreeBSD.org>2005-10-23 03:13:53 +0000
committerJean-Yves Lefort <jylefort@FreeBSD.org>2005-10-23 03:13:53 +0000
commitc44ce64ea0d47c6034349772fc242b5434084dcc (patch)
tree2472d95c428a668ed0707571a5505066dccddfb0 /games/flightgear
parent48d243d662dad47437166f1cb8735a0f5fa48f0a (diff)
downloadports-c44ce64ea0d47c6034349772fc242b5434084dcc.tar.gz
ports-c44ce64ea0d47c6034349772fc242b5434084dcc.zip
Notes
Diffstat (limited to 'games/flightgear')
-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"
+===============================================================================