aboutsummaryrefslogtreecommitdiffstats
path: root/games
diff options
context:
space:
mode:
authoradamw <adamw@FreeBSD.org>2014-08-16 05:12:02 +0800
committeradamw <adamw@FreeBSD.org>2014-08-16 05:12:02 +0800
commitc9aa10175cc41946bb0e7ae6c9dba262fcd5c60d (patch)
treefd21f924796888ba6269c9696380d92ff8972df5 /games
parent5d1734abaee1adda46dcc873c9e63dc62ac373d7 (diff)
downloadfreebsd-ports-gnome-c9aa10175cc41946bb0e7ae6c9dba262fcd5c60d.tar.gz
freebsd-ports-gnome-c9aa10175cc41946bb0e7ae6c9dba262fcd5c60d.tar.zst
freebsd-ports-gnome-c9aa10175cc41946bb0e7ae6c9dba262fcd5c60d.zip
Fix build on -current.
Diffstat (limited to 'games')
-rw-r--r--games/hoichess/Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/games/hoichess/Makefile b/games/hoichess/Makefile
index 8f3d4df519c8..e667ea93da7b 100644
--- a/games/hoichess/Makefile
+++ b/games/hoichess/Makefile
@@ -20,10 +20,12 @@ OPTIONS_DEFINE= DOCS
post-patch:
@${RM} ${WRKSRC}/src/lib/getopt.h
@${REINPLACE_CMD} -e '1,/^LDFLAG/d' ${WRKSRC}/src/Makefile.config
- @${ECHO} 'INSTALL = ${INSTALL}' >> ${WRKSRC}/src/Makefile.config
+ @${ECHO_CMD} 'INSTALL = ${INSTALL}' >> ${WRKSRC}/src/Makefile.config
+ @${ECHO_CMD} 'CXXFLAGS += $${CPPFLAGS}' >> ${WRKSRC}/src/Makefile.config
@${REINPLACE_CMD} -Ee '/INSTALL|install/s/ -D / /' \
${WRKSRC}/src/Makefile ${WRKSRC}/Makefile
@${REINPLACE_CMD} -e '1,/^####/d' ${WRKSRC}/src/Makefile
+ @${ECHO_CMD} 'LIBPATH = ${LDFLAGS}' >> ${WRKSRC}/src/Makefile
@${REINPLACE_CMD} -e '/^prefix/s|= .*|= ${STAGEDIR}$${PREFIX}|' \
-e '/bindir/s/games/bin/; /mandir/s/share//' ${WRKSRC}/Makefile