aboutsummaryrefslogtreecommitdiffstats
path: root/games
diff options
context:
space:
mode:
authordes <des@FreeBSD.org>2003-03-04 04:26:50 +0800
committerdes <des@FreeBSD.org>2003-03-04 04:26:50 +0800
commitb6424947ef5873437ca8908c3020656ad5197aff (patch)
treeb42f169af798ad9168a8a7516b99bf7f969f8d84 /games
parent8d821f0fd334739b04b9a20a4d6ca0e84a38da01 (diff)
downloadfreebsd-ports-gnome-b6424947ef5873437ca8908c3020656ad5197aff.tar.gz
freebsd-ports-gnome-b6424947ef5873437ca8908c3020656ad5197aff.tar.zst
freebsd-ports-gnome-b6424947ef5873437ca8908c3020656ad5197aff.zip
Use threads. Temporarily add an extra dependency on SimGear to make sure
we get a version that was compiled with thread support.
Diffstat (limited to 'games')
-rw-r--r--games/fgfs-base/Makefile7
-rw-r--r--games/fgfs-base/files/patch-aa28
-rw-r--r--games/flightgear-data/Makefile7
-rw-r--r--games/flightgear-data/files/patch-aa28
-rw-r--r--games/flightgear/Makefile7
-rw-r--r--games/flightgear/files/patch-aa28
6 files changed, 96 insertions, 9 deletions
diff --git a/games/fgfs-base/Makefile b/games/fgfs-base/Makefile
index c6decf353209..141ccaf8ecf0 100644
--- a/games/fgfs-base/Makefile
+++ b/games/fgfs-base/Makefile
@@ -7,7 +7,7 @@
PORTNAME= FlightGear
PORTVERSION= 0.9.1
-PORTREVISION= 2
+PORTREVISION= 3
BASEVERSION= 0.9.1a
CATEGORIES= games
MASTER_SITES= ftp://ftp.flightgear.org/pub/fgfs/Source/ \
@@ -20,18 +20,21 @@ MAINTAINER= des@FreeBSD.org
BUILD_DEPENDS= ${X11BASE}/lib/libplibsl.a:${PORTSDIR}/x11-toolkits/plib \
${LOCALBASE}/lib/libmk4.a:${PORTSDIR}/databases/metakit \
+ ${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 \
${LOCALBASE}/lib/libmk4.a:${PORTSDIR}/databases/metakit \
+ ${X11BASE}/include/simgear/threads/SGThread.hxx:${PORTSDIR}/devel/simgear \
${X11BASE}/lib/libsgmisc.a:${PORTSDIR}/devel/simgear
USE_X_PREFIX= yes
GNU_CONFIGURE= yes
# Force configure to look in /usr/local/{include,lib}
-CONFIGURE_ENV+= CC="${CC}" CFLAGS="${CFLAGS}" \
+CONFIGURE_ENV= CC="${CC}" CFLAGS="${CFLAGS}" \
CXX="${CXX}" CXXFLAGS="${CXXFLAGS}" \
CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
+CONFIGURE_ARGS= --with-threads
MAN1= est-epsilon.1 fgfs.1 fgjs.1 gl-info.1 js_demo.1 pstest.1
diff --git a/games/fgfs-base/files/patch-aa b/games/fgfs-base/files/patch-aa
index e799be858059..1a304ab52cb7 100644
--- a/games/fgfs-base/files/patch-aa
+++ b/games/fgfs-base/files/patch-aa
@@ -1,5 +1,5 @@
--- configure.orig Thu Dec 5 16:31:39 2002
-+++ configure Wed Jan 22 11:11:26 2003
++++ configure Mon Mar 3 13:00:03 2003
@@ -4206,6 +4206,7 @@
if test -r /usr/include/soundcard.h \
-o -r /usr/include/linux/soundcard.h \
@@ -8,3 +8,29 @@
-o -r /usr/include/audio.h \
-o "x$ac_cv_header_windows_h" = "xyes" \
-o "$HOSTTYPE" = "macintosh"; then
+@@ -5385,13 +5386,13 @@
+ base_LIBS="$LIBS"
+
+
+-echo "$as_me:$LINENO: checking for pthread_exit in -lpthread" >&5
+-echo $ECHO_N "checking for pthread_exit in -lpthread... $ECHO_C" >&6
++echo "$as_me:$LINENO: checking for pthread_exit in -pthread" >&5
++echo $ECHO_N "checking for pthread_exit in -pthread... $ECHO_C" >&6
+ if test "${ac_cv_lib_pthread_pthread_exit+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+ else
+ ac_check_lib_save_LIBS=$LIBS
+-LIBS="-lpthread $LIBS"
++LIBS="-pthread $LIBS"
+ cat >conftest.$ac_ext <<_ACEOF
+ #line $LINENO "configure"
+ #include "confdefs.h"
+@@ -5439,7 +5440,7 @@
+ #define HAVE_LIBPTHREAD 1
+ _ACEOF
+
+- LIBS="-lpthread $LIBS"
++ LIBS="-pthread $LIBS"
+
+ fi
+
diff --git a/games/flightgear-data/Makefile b/games/flightgear-data/Makefile
index c6decf353209..141ccaf8ecf0 100644
--- a/games/flightgear-data/Makefile
+++ b/games/flightgear-data/Makefile
@@ -7,7 +7,7 @@
PORTNAME= FlightGear
PORTVERSION= 0.9.1
-PORTREVISION= 2
+PORTREVISION= 3
BASEVERSION= 0.9.1a
CATEGORIES= games
MASTER_SITES= ftp://ftp.flightgear.org/pub/fgfs/Source/ \
@@ -20,18 +20,21 @@ MAINTAINER= des@FreeBSD.org
BUILD_DEPENDS= ${X11BASE}/lib/libplibsl.a:${PORTSDIR}/x11-toolkits/plib \
${LOCALBASE}/lib/libmk4.a:${PORTSDIR}/databases/metakit \
+ ${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 \
${LOCALBASE}/lib/libmk4.a:${PORTSDIR}/databases/metakit \
+ ${X11BASE}/include/simgear/threads/SGThread.hxx:${PORTSDIR}/devel/simgear \
${X11BASE}/lib/libsgmisc.a:${PORTSDIR}/devel/simgear
USE_X_PREFIX= yes
GNU_CONFIGURE= yes
# Force configure to look in /usr/local/{include,lib}
-CONFIGURE_ENV+= CC="${CC}" CFLAGS="${CFLAGS}" \
+CONFIGURE_ENV= CC="${CC}" CFLAGS="${CFLAGS}" \
CXX="${CXX}" CXXFLAGS="${CXXFLAGS}" \
CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
+CONFIGURE_ARGS= --with-threads
MAN1= est-epsilon.1 fgfs.1 fgjs.1 gl-info.1 js_demo.1 pstest.1
diff --git a/games/flightgear-data/files/patch-aa b/games/flightgear-data/files/patch-aa
index e799be858059..1a304ab52cb7 100644
--- a/games/flightgear-data/files/patch-aa
+++ b/games/flightgear-data/files/patch-aa
@@ -1,5 +1,5 @@
--- configure.orig Thu Dec 5 16:31:39 2002
-+++ configure Wed Jan 22 11:11:26 2003
++++ configure Mon Mar 3 13:00:03 2003
@@ -4206,6 +4206,7 @@
if test -r /usr/include/soundcard.h \
-o -r /usr/include/linux/soundcard.h \
@@ -8,3 +8,29 @@
-o -r /usr/include/audio.h \
-o "x$ac_cv_header_windows_h" = "xyes" \
-o "$HOSTTYPE" = "macintosh"; then
+@@ -5385,13 +5386,13 @@
+ base_LIBS="$LIBS"
+
+
+-echo "$as_me:$LINENO: checking for pthread_exit in -lpthread" >&5
+-echo $ECHO_N "checking for pthread_exit in -lpthread... $ECHO_C" >&6
++echo "$as_me:$LINENO: checking for pthread_exit in -pthread" >&5
++echo $ECHO_N "checking for pthread_exit in -pthread... $ECHO_C" >&6
+ if test "${ac_cv_lib_pthread_pthread_exit+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+ else
+ ac_check_lib_save_LIBS=$LIBS
+-LIBS="-lpthread $LIBS"
++LIBS="-pthread $LIBS"
+ cat >conftest.$ac_ext <<_ACEOF
+ #line $LINENO "configure"
+ #include "confdefs.h"
+@@ -5439,7 +5440,7 @@
+ #define HAVE_LIBPTHREAD 1
+ _ACEOF
+
+- LIBS="-lpthread $LIBS"
++ LIBS="-pthread $LIBS"
+
+ fi
+
diff --git a/games/flightgear/Makefile b/games/flightgear/Makefile
index c6decf353209..141ccaf8ecf0 100644
--- a/games/flightgear/Makefile
+++ b/games/flightgear/Makefile
@@ -7,7 +7,7 @@
PORTNAME= FlightGear
PORTVERSION= 0.9.1
-PORTREVISION= 2
+PORTREVISION= 3
BASEVERSION= 0.9.1a
CATEGORIES= games
MASTER_SITES= ftp://ftp.flightgear.org/pub/fgfs/Source/ \
@@ -20,18 +20,21 @@ MAINTAINER= des@FreeBSD.org
BUILD_DEPENDS= ${X11BASE}/lib/libplibsl.a:${PORTSDIR}/x11-toolkits/plib \
${LOCALBASE}/lib/libmk4.a:${PORTSDIR}/databases/metakit \
+ ${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 \
${LOCALBASE}/lib/libmk4.a:${PORTSDIR}/databases/metakit \
+ ${X11BASE}/include/simgear/threads/SGThread.hxx:${PORTSDIR}/devel/simgear \
${X11BASE}/lib/libsgmisc.a:${PORTSDIR}/devel/simgear
USE_X_PREFIX= yes
GNU_CONFIGURE= yes
# Force configure to look in /usr/local/{include,lib}
-CONFIGURE_ENV+= CC="${CC}" CFLAGS="${CFLAGS}" \
+CONFIGURE_ENV= CC="${CC}" CFLAGS="${CFLAGS}" \
CXX="${CXX}" CXXFLAGS="${CXXFLAGS}" \
CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
+CONFIGURE_ARGS= --with-threads
MAN1= est-epsilon.1 fgfs.1 fgjs.1 gl-info.1 js_demo.1 pstest.1
diff --git a/games/flightgear/files/patch-aa b/games/flightgear/files/patch-aa
index e799be858059..1a304ab52cb7 100644
--- a/games/flightgear/files/patch-aa
+++ b/games/flightgear/files/patch-aa
@@ -1,5 +1,5 @@
--- configure.orig Thu Dec 5 16:31:39 2002
-+++ configure Wed Jan 22 11:11:26 2003
++++ configure Mon Mar 3 13:00:03 2003
@@ -4206,6 +4206,7 @@
if test -r /usr/include/soundcard.h \
-o -r /usr/include/linux/soundcard.h \
@@ -8,3 +8,29 @@
-o -r /usr/include/audio.h \
-o "x$ac_cv_header_windows_h" = "xyes" \
-o "$HOSTTYPE" = "macintosh"; then
+@@ -5385,13 +5386,13 @@
+ base_LIBS="$LIBS"
+
+
+-echo "$as_me:$LINENO: checking for pthread_exit in -lpthread" >&5
+-echo $ECHO_N "checking for pthread_exit in -lpthread... $ECHO_C" >&6
++echo "$as_me:$LINENO: checking for pthread_exit in -pthread" >&5
++echo $ECHO_N "checking for pthread_exit in -pthread... $ECHO_C" >&6
+ if test "${ac_cv_lib_pthread_pthread_exit+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+ else
+ ac_check_lib_save_LIBS=$LIBS
+-LIBS="-lpthread $LIBS"
++LIBS="-pthread $LIBS"
+ cat >conftest.$ac_ext <<_ACEOF
+ #line $LINENO "configure"
+ #include "confdefs.h"
+@@ -5439,7 +5440,7 @@
+ #define HAVE_LIBPTHREAD 1
+ _ACEOF
+
+- LIBS="-lpthread $LIBS"
++ LIBS="-pthread $LIBS"
+
+ fi
+