1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-25 04:43:33 +00:00

Update to 0.9.6. Note that scenery, textures and aircraft models are now

installed by a separate port, games/fgfs-base, which this one lists as a
run-time dependency.
This commit is contained in:
Dag-Erling Smørgrav 2004-12-12 14:10:54 +00:00
parent 87da17322a
commit e71946e1e8
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=123813
5 changed files with 95 additions and 4581 deletions

View File

@ -6,57 +6,46 @@
#
PORTNAME= FlightGear
PORTVERSION= 0.9.3
PORTREVISION= 1
PORTVERSION= 0.9.6
CATEGORIES= games
MASTER_SITES= ftp://ftp.flightgear.org/pub/fgfs/Source/:src \
ftp://ftp.flightgear.org/pub/fgfs/Shared/:dat
MASTER_SITES= ftp://ftp.flightgear.org/pub/fgfs/Source/ \
ftp://ftp.de.flightgear.org/pub/fgfs/Source/
MAINTAINER= des@FreeBSD.org
COMMENT= The FlightGear flight simulator
BASEVERSION= ${PORTVERSION}
BASEFILE= fgfs-base-${BASEVERSION}${EXTRACT_SUFX}
DISTFILES= ${DISTNAME}${EXTRACT_SUFX}:src \
${BASEFILE}:dat
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
${X11BASE}/lib/libsgmisc.a:${PORTSDIR}/devel/simgear \
${LOCALBASE}/share/FlightGear/version:${PORTSDIR}/games/fgfs-base
USE_GMAKE= yes
USE_X_PREFIX= yes
GNU_CONFIGURE= yes
# Force configure to look in ${LOCALBASE}/{include,lib}
# 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"
CONFIGURE_ARGS= --with-threads
LDFLAGS="-L${LOCALBASE}/lib ${PTHREAD_LIBS}"
CONFIGURE_ARGS= --program-transform-name='s/^${CONFIGURE_TARGET}-//' \
--datadir=${LOCALBASE}/share \
--with-threads
MAN1= est-epsilon.1 fgfs.1 fgjs.1 gl-info.1 js_demo.1 pstest.1
.include <bsd.port.pre.mk>
.if ${OSVERSION} >= 502126
BROKEN= "Does not compile on FreeBSD >= 5.x"
.endif
post-extract:
@${FIND} ${WRKSRC} \( -name '.#*' -or -name '*~' \) -delete
do-install:
@${ECHO} ">> Installing program"
@(cd ${INSTALL_WRKSRC} && ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} ${INSTALL_TARGET})
@${ECHO} ">> Installing data"
@${INSTALL} -d -o ${SHAREOWN} -g ${SHAREGRP} -m 0755 ${DATADIR}
@(cd ${WRKSRC}/data && ${FIND} . -type d | (cd ${DATADIR} &&\
${XARGS} ${INSTALL} -d -o ${SHAREOWN} -g ${SHAREGRP} -m 0755))
@(cd ${WRKSRC}/data && ${FIND} . -type f |\
${CPIO} -pdmu -R ${SHAREOWN}:${SHAREGRP} ${DATADIR})
.include <bsd.port.post.mk>
.include <bsd.port.mk>

View File

@ -1,4 +1,2 @@
MD5 (FlightGear-0.9.3.tar.gz) = 6e5b672fb0167f73a4e4346a9a6250e3
SIZE (FlightGear-0.9.3.tar.gz) = 1361944
MD5 (fgfs-base-0.9.3.tar.gz) = ac58d5a0b7fc67060892773d98d994e2
SIZE (fgfs-base-0.9.3.tar.gz) = 75233300
MD5 (FlightGear-0.9.6.tar.gz) = ab6e8826a392eaa15bd0224eba2f2a38
SIZE (FlightGear-0.9.6.tar.gz) = 1600405

View File

@ -1,33 +0,0 @@
--- src/Main/Makefile.am.orig Wed Jan 22 14:33:49 2003
+++ src/Main/Makefile.am Wed Jan 22 14:33:57 2003
@@ -19,7 +19,7 @@
PSL_LIBS =
endif
-AM_CXXFLAGS = -DPKGLIBDIR=\"$(pkglibdir)\"
+AM_CXXFLAGS = -DPKGDATADIR=\"$(pkgdatadir)\"
EXTRA_DIST = 3dfx.sh runfgfs.in runfgfs.bat.in
--- src/Main/Makefile.in.orig Wed Jan 22 14:33:49 2003
+++ src/Main/Makefile.in Wed Jan 22 14:34:16 2003
@@ -97,7 +97,7 @@
@HAVE_PLIB_PSL_TRUE@THREAD_LIBS = -lplibpsl
@HAVE_PLIB_PSL_FALSE@THREAD_LIBS =
-AM_CXXFLAGS = -DPKGLIBDIR=\"$(pkglibdir)\"
+AM_CXXFLAGS = -DPKGDATADIR=\"$(pkgdatadir)\"
EXTRA_DIST = 3dfx.sh runfgfs.in runfgfs.bat.in
--- src/Main/fg_init.cxx.orig Wed Jan 22 14:33:49 2003
+++ src/Main/fg_init.cxx Wed Jan 22 14:34:27 2003
@@ -264,7 +264,7 @@
#elif defined( macintosh )
root = "";
#else
- root = PKGLIBDIR;
+ root = PKGDATADIR;
#endif
}

View File

@ -0,0 +1,75 @@
# libplibjs (from x11-toolkits/plib) requires libusbhid, but since it's
# statically linked, there is no dependency information, so we have to
# add -lusbhid manually. A better solution would be to modify the plib
# port to install shared libraries with the proper dependencies.
--- src/Main/Makefile.am.orig Wed Oct 6 21:52:24 2004
+++ src/Main/Makefile.am Sat Dec 11 19:45:03 2004
@@ -93,7 +93,7 @@
-lsgmagvar -lsgmisc -lsgnasal -lsgxml -lsgsound -lsgserial \
-lsgstructure -lsgenvironment \
$(THREAD_LIBS) \
- -lplibpu -lplibfnt -lplibjs -lplibnet -lplibssg -lplibsg -lplibul \
+ -lplibpu -lplibfnt -lplibjs -lusbhid -lplibnet -lplibssg -lplibsg -lplibul \
$(network_LIBS) \
-lz \
$(opengl_LIBS) \
--- src/Main/Makefile.in.orig Tue Oct 12 18:19:02 2004
+++ src/Main/Makefile.in Sat Dec 11 19:45:03 2004
@@ -329,7 +329,7 @@
-lsgmagvar -lsgmisc -lsgnasal -lsgxml -lsgsound -lsgserial \
-lsgstructure -lsgenvironment \
$(THREAD_LIBS) \
- -lplibpu -lplibfnt -lplibjs -lplibnet -lplibssg -lplibsg -lplibul \
+ -lplibpu -lplibfnt -lplibjs -lusbhid -lplibnet -lplibssg -lplibsg -lplibul \
$(network_LIBS) \
-lz \
$(opengl_LIBS) \
--- src/Input/Makefile.am.orig Wed Feb 5 16:13:07 2003
+++ src/Input/Makefile.am Sat Dec 11 19:45:03 2004
@@ -6,10 +6,10 @@
js_demo_SOURCES = js_demo.cxx
-js_demo_LDADD = -lplibjs $(audio_LIBS) -lplibul
+js_demo_LDADD = -lplibjs -lusbhid $(audio_LIBS) -lplibul
fgjs_SOURCES = fgjs.cxx jsinput.cxx jsinput.h jssuper.cxx jssuper.h
-fgjs_LDADD = -lplibjs $(audio_LIBS) -lplibul
+fgjs_LDADD = -lplibjs -lusbhid $(audio_LIBS) -lplibul
INCLUDES = -I$(top_srcdir) -I$(top_srcdir)/src
--- src/Input/Makefile.in.orig Tue Oct 12 18:19:01 2004
+++ src/Input/Makefile.in Sat Dec 11 19:45:03 2004
@@ -201,9 +201,9 @@
noinst_LIBRARIES = libInput.a
libInput_a_SOURCES = input.cxx input.hxx
js_demo_SOURCES = js_demo.cxx
-js_demo_LDADD = -lplibjs $(audio_LIBS) -lplibul
+js_demo_LDADD = -lplibjs -lusbhid $(audio_LIBS) -lplibul
fgjs_SOURCES = fgjs.cxx jsinput.cxx jsinput.h jssuper.cxx jssuper.h
-fgjs_LDADD = -lplibjs $(audio_LIBS) -lplibul
+fgjs_LDADD = -lplibjs -lusbhid $(audio_LIBS) -lplibul
INCLUDES = -I$(top_srcdir) -I$(top_srcdir)/src
all: all-am
--- utils/js_server/Makefile.am.orig Tue Mar 2 15:58:22 2004
+++ utils/js_server/Makefile.am Sat Dec 11 19:45:03 2004
@@ -1,4 +1,4 @@
sbin_PROGRAMS = js_server
js_server_SOURCES = js_server.cxx
-js_server_LDADD = -lplibjs -lplibnet -lplibul $(audio_LIBS) $(network_LIBS)
+js_server_LDADD = -lplibjs -lusbhid -lplibnet -lplibul $(audio_LIBS) $(network_LIBS)
--- utils/js_server/Makefile.in.orig Tue Oct 12 18:19:06 2004
+++ utils/js_server/Makefile.in Sat Dec 11 19:45:03 2004
@@ -183,7 +183,7 @@
target_vendor = @target_vendor@
thread_LIBS = @thread_LIBS@
js_server_SOURCES = js_server.cxx
-js_server_LDADD = -lplibjs -lplibnet -lplibul $(audio_LIBS) $(network_LIBS)
+js_server_LDADD = -lplibjs -lusbhid -lplibnet -lplibul $(audio_LIBS) $(network_LIBS)
all: all-am
.SUFFIXES:

File diff suppressed because it is too large Load Diff