diff options
author | Danilo Egea Gondolfo <danilo@FreeBSD.org> | 2013-11-20 03:16:24 +0000 |
---|---|---|
committer | Danilo Egea Gondolfo <danilo@FreeBSD.org> | 2013-11-20 03:16:24 +0000 |
commit | faeaaf88be7b30bcff5d07a93501f9c04615f051 (patch) | |
tree | a07b0eafd24bc9a1c1625a013ac1832231bac715 /games/tremulous | |
parent | a31e3a8026d01979df5922523d8eba41d722d8c3 (diff) | |
download | ports-faeaaf88be7b30bcff5d07a93501f9c04615f051.tar.gz ports-faeaaf88be7b30bcff5d07a93501f9c04615f051.zip |
Notes
Diffstat (limited to 'games/tremulous')
-rw-r--r-- | games/tremulous/Makefile | 22 | ||||
-rw-r--r-- | games/tremulous/files/patch-src__master__Makefile | 14 |
2 files changed, 19 insertions, 17 deletions
diff --git a/games/tremulous/Makefile b/games/tremulous/Makefile index 379197c72669..82fc9c81d8dc 100644 --- a/games/tremulous/Makefile +++ b/games/tremulous/Makefile @@ -12,8 +12,8 @@ COMMENT= Free FPS game featuring two opposing teams: humans and aliens LICENSE= GPLv2 +USES= gmake USE_ZIP= yes -USE_GMAKE= yes MAKE_ENV= DEFAULT_BASEDIR="${DATADIR}" PTHREAD_LIBS="${PTHREAD_LIBS}" WRKSRC= ${WRKDIR}/${PORTNAME} @@ -37,7 +37,6 @@ SDL_AUDIO_DESC= Use SDL for audio SDL_VIDEO_DESC= Use SDL for video SMP_CLIENT_DESC= Build SMP (threaded) client -NO_STAGE= yes .include <bsd.port.options.mk> .for arch in ${ARCH} @@ -73,7 +72,7 @@ USE_XORG= x11 xxf86dga . endif # Vorbis . if ${PORT_OPTIONS:MVORBIS} -LIB_DEPENDS+= vorbis:${PORTSDIR}/audio/libvorbis +LIB_DEPENDS+= libvorbis.so:${PORTSDIR}/audio/libvorbis MAKE_ENV+= USE_CODEC_VORBIS=1 . endif .endif @@ -102,7 +101,7 @@ PLIST_SUB+= GAMELIBS="@comment " .endif .if ${PORT_OPTIONS:MMASTER_SERVER} -LIB_DEPENDS+= tdb:${PORTSDIR}/databases/tdb +LIB_DEPENDS+= libtdb.so:${PORTSDIR}/databases/tdb MAKE_ENV+= BUILD_MASTER_SERVER=1 PLIST_SUB+= MASTER_SERVER="" .else @@ -130,19 +129,14 @@ post-patch: do-install: .for bin in ${TRBIN} - ${INSTALL_PROGRAM} ${BUILD_WRKSRC}/build/release/${bin} ${PREFIX}/bin + ${INSTALL_PROGRAM} ${BUILD_WRKSRC}/build/release/${bin} ${STAGEDIR}${PREFIX}/bin .endfor .if ${PORT_OPTIONS:MMASTER_SERVER} ${INSTALL_PROGRAM} ${BUILD_WRKSRC}/src/master/release/tremmaster \ - ${PREFIX}/bin + ${STAGEDIR}${PREFIX}/bin .endif - @${MKDIR} ${DATADIR}/base - ${INSTALL_DATA} ${WRKSRC}/base/* ${DATADIR}/base - ${INSTALL_DATA} ${WRKSRC}/tremulous.xpm ${PREFIX}/share/pixmaps - -post-install: - @${ECHO_CMD} - @${CAT} ${PKGMESSAGE} - @${ECHO_CMD} + @${MKDIR} ${STAGEDIR}${DATADIR}/base + ${INSTALL_DATA} ${WRKSRC}/base/* ${STAGEDIR}${DATADIR}/base + ${INSTALL_DATA} ${WRKSRC}/tremulous.xpm ${STAGEDIR}${PREFIX}/share/pixmaps .include <bsd.port.mk> diff --git a/games/tremulous/files/patch-src__master__Makefile b/games/tremulous/files/patch-src__master__Makefile index 1b058b25e9b3..9cf046f94d4a 100644 --- a/games/tremulous/files/patch-src__master__Makefile +++ b/games/tremulous/files/patch-src__master__Makefile @@ -1,5 +1,5 @@ ---- ./tremulous-1.1.0-src/src/master/Makefile.orig Fri Jan 20 20:37:31 2006 -+++ ./tremulous-1.1.0-src/src/master/Makefile Wed Jun 7 16:57:12 2006 +--- ./tremulous-1.1.0-src/src/master/Makefile.orig 2006-01-20 21:37:31.000000000 -0200 ++++ ./tremulous-1.1.0-src/src/master/Makefile 2013-11-20 01:02:22.000000000 -0200 @@ -1,5 +1,5 @@ BD_DEBUG=debug-$(PLATFORM)-$(ARCH) -BD_RELEASE=release-$(PLATFORM)-$(ARCH) @@ -7,7 +7,15 @@ ifeq ($(PLATFORM),mingw32) BINEXT=.exe -@@ -15,9 +15,11 @@ +@@ -9,15 +9,17 @@ + MKDIR=mkdir + else + BINEXT= +- RELEASE_LDFLAGS=-static -ltdb +- DEBUG_LDFLAGS=-static -ltdb ++ RELEASE_LDFLAGS=-ltdb ++ DEBUG_LDFLAGS=-ltdb + RM=rm -f MKDIR=mkdir endif |