diff options
author | John Marino <marino@FreeBSD.org> | 2014-10-20 09:06:53 +0000 |
---|---|---|
committer | John Marino <marino@FreeBSD.org> | 2014-10-20 09:06:53 +0000 |
commit | d81522c4bd84cb76961a3057fcca395f99c9a965 (patch) | |
tree | 85961d462c6702b813f77cefc5efebd7c1e83fb0 /games/warsow | |
parent | b1ec8c15281e016b7349b08aafff62de23bb94bb (diff) |
games/warsow: Add USES=alias plus...
While adding USES=alias to warsow under blanket permission, I decided
to bring in other changes from DPorts:
* define LDFLAGS=-L${LOCALBASE}/lib (required for compilers that don't
search /usr/local/lib by default)
* Only change x86_64 arch if the OPSYS is FreeBSD. Doing this breaks
DragonFly
The total sum of these changes for FreeBSD is no-op.
Notes
Notes:
svn path=/head/; revision=371245
Diffstat (limited to 'games/warsow')
-rw-r--r-- | games/warsow/Makefile | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/games/warsow/Makefile b/games/warsow/Makefile index eeeb8fd9371f..5fe3309d0dff 100644 --- a/games/warsow/Makefile +++ b/games/warsow/Makefile @@ -18,12 +18,13 @@ RUN_DEPENDS= ${DATADIR}/basewsw/data1_15.pk3:${PORTSDIR}/games/warsow-data ONLY_FOR_ARCHS= i386 amd64 -USES= gmake compiler:c++11-lang +USES= alias gmake compiler:c++11-lang WRKSRC= ${WRKDIR}/source/source ALL_TARGET= game angelwrap RELEASEDIR= ${WRKSRC}/release AS_SDK_DIR= ${WRKSRC}/../libsrcs/angelscript/sdk +LDFLAGS= -L${LOCALBASE}/lib PORTDATA= * PORTDOCS= *.rtf *.doc sourcecode_quickstart.txt @@ -111,6 +112,10 @@ ALL_TARGET+= tv_server PLIST_FILES+= bin/wswtv_server .endif +.if ${OPSYS} == FreeBSD +SWAPARCH= s/x86_64/amd64/ +.endif + post-patch: .SILENT # Unmute build and link commands, respect CFLAGS ${REINPLACE_CMD} -e 's|@$$(DO_CC|$$(DO_CC| ; /> Linking $$@/d ; \ @@ -118,7 +123,7 @@ post-patch: .SILENT s| -msse2||' \ ${WRKSRC}/Makefile # Adjust architecture names, get rid of ``freebsd_'' prefix - ${REINPLACE_CMD} -e 's/x86_64/amd64/ ; s/freebsd_//' \ + ${REINPLACE_CMD} -e 's/freebsd_//; ${SWAPARCH}' \ ${WRKSRC}/gameshared/q_arch.h # Search directory provided by warsow-data port instead of current (doing # so allows us not to install any wrapper scripts) |