diff options
author | amdmi3 <amdmi3@FreeBSD.org> | 2011-03-29 06:09:38 +0800 |
---|---|---|
committer | amdmi3 <amdmi3@FreeBSD.org> | 2011-03-29 06:09:38 +0800 |
commit | 08d34589d2663eeb34b952bff76afa9d1c61747c (patch) | |
tree | 6a3d7f3bab2d9841a4e43188d40e27256a5352dc /games | |
parent | 2df7c959d45cfab9b3ccf108465cfd12ec9b4d64 (diff) | |
download | freebsd-ports-gnome-08d34589d2663eeb34b952bff76afa9d1c61747c.tar.gz freebsd-ports-gnome-08d34589d2663eeb34b952bff76afa9d1c61747c.tar.zst freebsd-ports-gnome-08d34589d2663eeb34b952bff76afa9d1c61747c.zip |
- Add support for vendor's optimized cflags
- Simplify data handling - it's no longer needed to symlink whole datadir tree in dotdir
Diffstat (limited to 'games')
-rw-r--r-- | games/bloodfrontier/Makefile | 16 | ||||
-rw-r--r-- | games/bloodfrontier/files/bfclient.in | 17 | ||||
-rw-r--r-- | games/bloodfrontier/files/bfserver.in | 17 | ||||
-rw-r--r-- | games/bloodfrontier/files/pkg-message.in | 11 | ||||
-rw-r--r-- | games/redeclipse/Makefile | 16 | ||||
-rw-r--r-- | games/redeclipse/files/bfclient.in | 17 | ||||
-rw-r--r-- | games/redeclipse/files/bfserver.in | 17 | ||||
-rw-r--r-- | games/redeclipse/files/pkg-message.in | 11 |
8 files changed, 22 insertions, 100 deletions
diff --git a/games/bloodfrontier/Makefile b/games/bloodfrontier/Makefile index bfcd67a8edce..12bd4f92adde 100644 --- a/games/bloodfrontier/Makefile +++ b/games/bloodfrontier/Makefile @@ -7,7 +7,7 @@ PORTNAME= bloodfrontier DISTVERSION= B2 -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= games MASTER_SITES= SF/${PORTNAME}/Blood%20Frontier%20Beta%202 DISTNAME= ${PORTNAME}-${DISTVERSION}-linux @@ -25,10 +25,11 @@ WRKSRC= ${WRKDIR}/${PORTNAME} ALL_TARGET= libenet ${BINARIES} MAKE_JOBS_SAFE= yes -SUB_FILES= bfclient bfserver pkg-message +SUB_FILES= bfclient bfserver OPTIONS= CLIENT "Build client" on \ - DEDICATED "Build dedicated server" on + DEDICATED "Build dedicated server" on \ + OPTIMIZED_CFLAGS "Enabled additional optimizations" on .include <bsd.port.options.mk> @@ -52,6 +53,11 @@ PLIST_FILES+= bin/bfserver libexec/bfserver BINARIES+= server .endif +.if defined(WITH_OPTIMIZED_CFLAGS) +CFLAGS+= -O3 -fomit-frame-pointer +CXXFLAGS+= -O3 -fomit-frame-pointer +.endif + do-install: .for f in ${BINARIES} ${INSTALL_SCRIPT} ${WRKDIR}/bf${f} ${PREFIX}/bin @@ -66,8 +72,4 @@ post-install: @${FIND} ${DATADIR} -type d | ${SORT} -r | \ ${SED} -e 's|^${PREFIX}/|@dirrm |' >> ${TMPPLIST} - @${ECHO_CMD} - @${CAT} ${PKGMESSAGE} - @${ECHO_CMD} - .include <bsd.port.mk> diff --git a/games/bloodfrontier/files/bfclient.in b/games/bloodfrontier/files/bfclient.in index 01d3b7ef4949..070440a1a1ca 100644 --- a/games/bloodfrontier/files/bfclient.in +++ b/games/bloodfrontier/files/bfclient.in @@ -1,18 +1,3 @@ #!/bin/sh -# The executable needs to be run from its data directory, and needs to store -# configuration in it. We therefore mirror the data directory hierarchy in -# ~/.bloodfrontier, and create symlinks to the data files. - -if [ -d ~/.bloodfrontier ] -then - echo "Using existing ~/.bloodfrontier directory." -else - echo "Creating ~/.bloodfrontier directory." - cd %%DATADIR%% || exit 1 - find * -type d -exec mkdir -p ~/.bloodfrontier/{} \; - find * -type f -exec ln -s %%DATADIR%%/{} ~/.bloodfrontier/{} \; 2>/dev/null -fi - -cd ~/.bloodfrontier || exit 1 -exec %%PREFIX%%/libexec/bfclient "$@" +cd %%DATADIR%% && exec %%PREFIX%%/libexec/bfclient "$@" diff --git a/games/bloodfrontier/files/bfserver.in b/games/bloodfrontier/files/bfserver.in index 6f15e12a2bd0..ae98bc0bdd9a 100644 --- a/games/bloodfrontier/files/bfserver.in +++ b/games/bloodfrontier/files/bfserver.in @@ -1,18 +1,3 @@ #!/bin/sh -# The executable needs to be run from its data directory, and needs to store -# configuration in it. We therefore mirror the data directory hierarchy in -# ~/.bloodfrontier, and create symlinks to the data files. - -if [ -d ~/.bloodfrontier ] -then - echo "Using existing ~/.bloodfrontier directory." -else - echo "Creating ~/.bloodfrontier directory." - cd %%DATADIR%% || exit 1 - find * -type d -exec mkdir -p ~/.bloodfrontier/{} \; - find * -type f -exec ln -s %%DATADIR%%/{} ~/.bloodfrontier/{} \; 2>/dev/null -fi - -cd ~/.bloodfrontier || exit 1 -exec %%PREFIX%%/libexec/bfserver "$@" +cd %%DATADIR%% && exec %%PREFIX%%/libexec/bfserver "$@" diff --git a/games/bloodfrontier/files/pkg-message.in b/games/bloodfrontier/files/pkg-message.in deleted file mode 100644 index 3bc3f84a8629..000000000000 --- a/games/bloodfrontier/files/pkg-message.in +++ /dev/null @@ -1,11 +0,0 @@ -############################################################################### - -1) First time, bloodfrontier creates a ~/.bloodfrontier directory with symlinks. -2) Config files are in the ~/.bloodfrontier directory. -3) If you want add new bindings into ~/.bloodfrontier/config.cfg, see - - %%DATADIR%%/data/keymap.cfg. - -4) Enjoy it ;) - -############################################################################### diff --git a/games/redeclipse/Makefile b/games/redeclipse/Makefile index bfcd67a8edce..12bd4f92adde 100644 --- a/games/redeclipse/Makefile +++ b/games/redeclipse/Makefile @@ -7,7 +7,7 @@ PORTNAME= bloodfrontier DISTVERSION= B2 -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= games MASTER_SITES= SF/${PORTNAME}/Blood%20Frontier%20Beta%202 DISTNAME= ${PORTNAME}-${DISTVERSION}-linux @@ -25,10 +25,11 @@ WRKSRC= ${WRKDIR}/${PORTNAME} ALL_TARGET= libenet ${BINARIES} MAKE_JOBS_SAFE= yes -SUB_FILES= bfclient bfserver pkg-message +SUB_FILES= bfclient bfserver OPTIONS= CLIENT "Build client" on \ - DEDICATED "Build dedicated server" on + DEDICATED "Build dedicated server" on \ + OPTIMIZED_CFLAGS "Enabled additional optimizations" on .include <bsd.port.options.mk> @@ -52,6 +53,11 @@ PLIST_FILES+= bin/bfserver libexec/bfserver BINARIES+= server .endif +.if defined(WITH_OPTIMIZED_CFLAGS) +CFLAGS+= -O3 -fomit-frame-pointer +CXXFLAGS+= -O3 -fomit-frame-pointer +.endif + do-install: .for f in ${BINARIES} ${INSTALL_SCRIPT} ${WRKDIR}/bf${f} ${PREFIX}/bin @@ -66,8 +72,4 @@ post-install: @${FIND} ${DATADIR} -type d | ${SORT} -r | \ ${SED} -e 's|^${PREFIX}/|@dirrm |' >> ${TMPPLIST} - @${ECHO_CMD} - @${CAT} ${PKGMESSAGE} - @${ECHO_CMD} - .include <bsd.port.mk> diff --git a/games/redeclipse/files/bfclient.in b/games/redeclipse/files/bfclient.in index 01d3b7ef4949..070440a1a1ca 100644 --- a/games/redeclipse/files/bfclient.in +++ b/games/redeclipse/files/bfclient.in @@ -1,18 +1,3 @@ #!/bin/sh -# The executable needs to be run from its data directory, and needs to store -# configuration in it. We therefore mirror the data directory hierarchy in -# ~/.bloodfrontier, and create symlinks to the data files. - -if [ -d ~/.bloodfrontier ] -then - echo "Using existing ~/.bloodfrontier directory." -else - echo "Creating ~/.bloodfrontier directory." - cd %%DATADIR%% || exit 1 - find * -type d -exec mkdir -p ~/.bloodfrontier/{} \; - find * -type f -exec ln -s %%DATADIR%%/{} ~/.bloodfrontier/{} \; 2>/dev/null -fi - -cd ~/.bloodfrontier || exit 1 -exec %%PREFIX%%/libexec/bfclient "$@" +cd %%DATADIR%% && exec %%PREFIX%%/libexec/bfclient "$@" diff --git a/games/redeclipse/files/bfserver.in b/games/redeclipse/files/bfserver.in index 6f15e12a2bd0..ae98bc0bdd9a 100644 --- a/games/redeclipse/files/bfserver.in +++ b/games/redeclipse/files/bfserver.in @@ -1,18 +1,3 @@ #!/bin/sh -# The executable needs to be run from its data directory, and needs to store -# configuration in it. We therefore mirror the data directory hierarchy in -# ~/.bloodfrontier, and create symlinks to the data files. - -if [ -d ~/.bloodfrontier ] -then - echo "Using existing ~/.bloodfrontier directory." -else - echo "Creating ~/.bloodfrontier directory." - cd %%DATADIR%% || exit 1 - find * -type d -exec mkdir -p ~/.bloodfrontier/{} \; - find * -type f -exec ln -s %%DATADIR%%/{} ~/.bloodfrontier/{} \; 2>/dev/null -fi - -cd ~/.bloodfrontier || exit 1 -exec %%PREFIX%%/libexec/bfserver "$@" +cd %%DATADIR%% && exec %%PREFIX%%/libexec/bfserver "$@" diff --git a/games/redeclipse/files/pkg-message.in b/games/redeclipse/files/pkg-message.in deleted file mode 100644 index 3bc3f84a8629..000000000000 --- a/games/redeclipse/files/pkg-message.in +++ /dev/null @@ -1,11 +0,0 @@ -############################################################################### - -1) First time, bloodfrontier creates a ~/.bloodfrontier directory with symlinks. -2) Config files are in the ~/.bloodfrontier directory. -3) If you want add new bindings into ~/.bloodfrontier/config.cfg, see - - %%DATADIR%%/data/keymap.cfg. - -4) Enjoy it ;) - -############################################################################### |