- Convert USE_GMAKE to USES

- Convert LIB_DEPENDS to new syntax
- Remove the linker's parameter -static on module master_server
- Add stage support
This commit is contained in:
Danilo Egea Gondolfo 2013-11-20 03:16:24 +00:00
parent a31e3a8026
commit faeaaf88be
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=334375
2 changed files with 19 additions and 17 deletions

View file

@ -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>

View file

@ -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