aboutsummaryrefslogtreecommitdiffstats
path: root/games/battletanks
diff options
context:
space:
mode:
authordanfe <danfe@FreeBSD.org>2010-05-25 00:21:25 +0800
committerdanfe <danfe@FreeBSD.org>2010-05-25 00:21:25 +0800
commit9be999ef096e1659b1d6ecf312387148d9b76193 (patch)
treeb52bc2fed19c463e0d87905645035407142206b8 /games/battletanks
parentff1154a4358b6d6db85847cba02416437c44fea6 (diff)
downloadfreebsd-ports-gnome-9be999ef096e1659b1d6ecf312387148d9b76193.tar.gz
freebsd-ports-gnome-9be999ef096e1659b1d6ecf312387148d9b76193.tar.zst
freebsd-ports-gnome-9be999ef096e1659b1d6ecf312387148d9b76193.zip
- Switch USE_GCC to 4.4+ as advised by gerald@
- Clean up Makefile while here: shorten and coalesce lines, reorder knobs, simplify PORTDOCS installation, unmute INSTALL_DATA commands
Diffstat (limited to 'games/battletanks')
-rw-r--r--games/battletanks/Makefile27
1 files changed, 12 insertions, 15 deletions
diff --git a/games/battletanks/Makefile b/games/battletanks/Makefile
index 82666c2c7f8a..b1b4951d0616 100644
--- a/games/battletanks/Makefile
+++ b/games/battletanks/Makefile
@@ -20,17 +20,15 @@ LIB_DEPENDS= sigc-2.0.0:${PORTSDIR}/devel/libsigc++20 \
smpeg.1:${PORTSDIR}/multimedia/smpeg
USE_BZIP2= yes
+USE_GCC= 4.4+
USE_LDCONFIG= yes
-USE_OPENAL= al
-USE_GCC= 4.3+
USE_LUA= 5.0+
-USE_SCONS= yes
+USE_OPENAL= al
USE_SDL= image sdl
+USE_SCONS= yes
SCONS_ARGS= prefix=${PREFIX} resources_dir=${DATADIR}
-SCONS_BUILDENV+=CC="${CC}" \
- CXX="${CXX}" \
- CFLAGS="${CFLAGS}" \
- CXXFLAGS="${CXXFLAGS}" \
+SCONS_BUILDENV= CC="${CC}" CXX="${CXX}" \
+ CFLAGS="${CFLAGS}" CXXFLAGS="${CXXFLAGS}" \
LDFLAGS="${LDFLAGS} ${PTHREAD_LIBS}" \
CPPPATH="${LOCALBASE}/include" \
LIBPATH="${LOCALBASE}/lib"
@@ -38,7 +36,8 @@ SCONS_BUILDENV+=CC="${CC}" \
PORTDOCS= LICENSE LICENSE.EXCEPTION README-en.txt README-linux.txt \
donate.url homepage.url project_page.url video.txt
-DESKTOP_ENTRIES="Battle Tanks" "${COMMENT}" "" "btanks" "Application;Game;" false
+DESKTOP_ENTRIES="Battle Tanks" "${COMMENT}" "" "btanks" \
+ "Application;Game;" false
.include <bsd.port.pre.mk>
@@ -47,15 +46,13 @@ SCONS_ARGS+= gcc_visibility=false
.endif
post-install:
- @${INSTALL_DATA} ${WRKSRC}/build/release/clunk/libclunk.so ${PREFIX}/lib
- @${INSTALL_DATA} ${WRKSRC}/build/release/engine/libbtanks_engine.so ${PREFIX}/lib
- @${INSTALL_DATA} ${WRKSRC}/build/release/mrt/libmrt.so ${PREFIX}/lib
- @${INSTALL_DATA} ${WRKSRC}/build/release/sdlx/libsdlx.so ${PREFIX}/lib
+ ${INSTALL_DATA} ${WRKSRC}/build/release/clunk/libclunk.so \
+ ${WRKSRC}/build/release/engine/libbtanks_engine.so \
+ ${WRKSRC}/build/release/mrt/libmrt.so \
+ ${WRKSRC}/build/release/sdlx/libsdlx.so ${PREFIX}/lib
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
-.for doc in ${PORTDOCS}
- @${INSTALL_DATA} ${WRKSRC}/${doc} ${DOCSDIR}
-.endfor
+ ${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${DOCSDIR}
.endif
.include <bsd.port.post.mk>