aboutsummaryrefslogtreecommitdiff
path: root/games/freesci
diff options
context:
space:
mode:
authorPav Lucistnik <pav@FreeBSD.org>2004-06-16 22:22:22 +0000
committerPav Lucistnik <pav@FreeBSD.org>2004-06-16 22:22:22 +0000
commit5e4f334ca247c255c6e09d4e04573d01faee4fb1 (patch)
treea34e685ce21a1fd221db63563028c09f95c248d5 /games/freesci
parente1e167ff09e0aa3a83160a22a31c56f2661ce4c5 (diff)
downloadports-5e4f334ca247c255c6e09d4e04573d01faee4fb1.tar.gz
ports-5e4f334ca247c255c6e09d4e04573d01faee4fb1.zip
Notes
Diffstat (limited to 'games/freesci')
-rw-r--r--games/freesci/Makefile18
-rw-r--r--games/freesci/distinfo4
-rw-r--r--games/freesci/files/patch-configure11
-rw-r--r--games/freesci/pkg-descr2
4 files changed, 28 insertions, 7 deletions
diff --git a/games/freesci/Makefile b/games/freesci/Makefile
index 4c5fd823c636..f5afe8e807ff 100644
--- a/games/freesci/Makefile
+++ b/games/freesci/Makefile
@@ -6,8 +6,7 @@
#
PORTNAME= freesci
-PORTVERSION= 0.3.4a
-PORTREVISION= 1
+PORTVERSION= 0.3.4c
CATEGORIES= emulators games
MASTER_SITES= ${MASTER_SITE_SAVANNAH} \
http://teksolv.de/~jameson/
@@ -23,12 +22,20 @@ GNU_CONFIGURE= yes
WANT_SDL= yes
CONFIGURE_TARGET=
-CONFIGURE_ENV= CFLAGS=${PTHREAD_CFLAGS}
+CONFIGURE_ENV= CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS}"
MAN6= freesci-tools.6 freesci.6
.include <bsd.port.pre.mk>
+.if defined(WITH_OPTIMIZED_CFLAGS)
+CFLAGS= -O3 -fexpensive-optimizations -fomit-frame-pointer -funroll-loops \
+ -fstrict-aliasing
+.if ${ARCH} != "alpha"
+CFLAGS+= -ffast-math
+.endif
+.endif
+
.if ${HAVE_SDL:Msdl}!=""
WITH_SDL= yes
.endif
@@ -78,8 +85,11 @@ pre-everything::
.if !defined(WITH_DIRECTFB)
@${ECHO_MSG} "Define WITH_DIRECTFB to build with DirectFB support"
.endif
+.if !defined(WITH_OPTIMIZED_CFLAGS)
+ @${ECHO_MSG} "Define WITH_OPTIMIZED_CFLAGS to build with extra optimizations"
+.endif
-post-patch:
+pre-configure:
@${REINPLACE_CMD} -e 's/-lpthread/${PTHREAD_LIBS}/g' ${WRKSRC}/configure
post-install:
diff --git a/games/freesci/distinfo b/games/freesci/distinfo
index ba44f91ecb90..32ed6e8704f7 100644
--- a/games/freesci/distinfo
+++ b/games/freesci/distinfo
@@ -1,2 +1,2 @@
-MD5 (freesci-0.3.4a.tar.bz2) = 135bcfc64496b0b7f11e756bbb8fdaf9
-SIZE (freesci-0.3.4a.tar.bz2) = 965754
+MD5 (freesci-0.3.4c.tar.bz2) = 2ec3240460316cb2901371d07662b1c4
+SIZE (freesci-0.3.4c.tar.bz2) = 953374
diff --git a/games/freesci/files/patch-configure b/games/freesci/files/patch-configure
new file mode 100644
index 000000000000..d759c95d2849
--- /dev/null
+++ b/games/freesci/files/patch-configure
@@ -0,0 +1,11 @@
+--- configure.orig Thu Apr 8 04:19:41 2004
++++ configure Sat Jun 12 16:07:07 2004
+@@ -9619,6 +9619,8 @@
+
+ fi
+
++CFLAGS="$X_CFLAGS $CFLAGS"
++CPPFLAGS="$X_CFLAGS $CPPFLAGS"
+
+ if test x"$have_x" = xyes; then
+
diff --git a/games/freesci/pkg-descr b/games/freesci/pkg-descr
index e7eb1e5127be..6e5c25b6792c 100644
--- a/games/freesci/pkg-descr
+++ b/games/freesci/pkg-descr
@@ -12,4 +12,4 @@ This release has the following limitations (plus some bugs):
- George Reid
greid@ukug.uk.freebsd.org
-WWW: http://freesci.linuxgames.com/index.shtml
+WWW: http://freesci.linuxgames.com/