aboutsummaryrefslogtreecommitdiff
path: root/games/assaultcube/Makefile
diff options
context:
space:
mode:
authorJan Beich <jbeich@FreeBSD.org>2015-05-04 11:16:47 +0000
committerJan Beich <jbeich@FreeBSD.org>2015-05-04 11:16:47 +0000
commit4f960ddb6b67fabad3d3e633ed92b0cb441a698a (patch)
tree9305a4cd66421b5305c301bdb0262ba735157d5f /games/assaultcube/Makefile
parentecb286eedddf7488f0b6e9a3bd6afc0afa04b65e (diff)
downloadports-4f960ddb6b67fabad3d3e633ed92b0cb441a698a.tar.gz
ports-4f960ddb6b67fabad3d3e633ed92b0cb441a698a.zip
Notes
Diffstat (limited to 'games/assaultcube/Makefile')
-rw-r--r--games/assaultcube/Makefile10
1 files changed, 10 insertions, 0 deletions
diff --git a/games/assaultcube/Makefile b/games/assaultcube/Makefile
index 4e64ea63985b..fafd27359f8f 100644
--- a/games/assaultcube/Makefile
+++ b/games/assaultcube/Makefile
@@ -64,6 +64,16 @@ DESKTOP_ENTRIES="AssaultCube" "${COMMENT}" \
"Game;" false
.endif
+post-patch: .SILENT
+ ${REINPLACE_CMD} -e '/^CXXFLAGS=/d ; /^CXX=/d ; /^CLIENT_PCH/d ; \
+ /^INCLUDES=/s|$$| -I$$(LOCALBASE)/include| ; \
+ s|-I/usr/include || ; \
+ s|sdl-config|$$(SDL_CONFIG)| ; \
+ s|$$(USRLIB)|$$(LOCALBASE)/lib| ; \
+ /^CLIENT_LIBS=/s|$$| -lintl| ; \
+ /^SERVER_LIBS=/s|$$| -L$$(LOCALBASE)/lib|' \
+ ${BUILD_WRKSRC}/Makefile
+
do-install:
.for f in ${PLIST_FILES:Mbin/*}
${INSTALL_SCRIPT} ${WRKDIR}/${f:T} ${STAGEDIR}${PREFIX}/${f}