summaryrefslogtreecommitdiffstats
path: root/games/freesci
diff options
context:
space:
mode:
authorpav <pav@FreeBSD.org>2004-06-16 22:22:22 +0000
committerpav <pav@FreeBSD.org>2004-06-16 22:22:22 +0000
commit3cf95280bdaaf3467f4f19726f52acec8d8d03b9 (patch)
tree0e399c0593128c33881f3af88b2278d8c1cc502b /games/freesci
parentbe37d075026f0ab01b8f43b3bf2a0db733c7c1dc (diff)
downloadFreeBSD-ports-3cf95280bdaaf3467f4f19726f52acec8d8d03b9.zip
FreeBSD-ports-3cf95280bdaaf3467f4f19726f52acec8d8d03b9.tar.gz
- Update to 0.4.3c
- Respect CFLAGS - Provide WITH_OPTIMIZED_CFLAGS knob PR: ports/67878 Submitted by: Radim Kolar <hsn@netmag.cz>
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 4c5fd82..f5afe8e 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 ba44f91..32ed6e8 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 0000000..d759c95
--- /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 e7eb1e5..6e5c25b6 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/
OpenPOWER on IntegriCloud