1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-22 08:58:47 +00:00

Fix build on -current.

This commit is contained in:
Adam Weinberger 2014-08-15 21:12:02 +00:00
parent e412bbb36a
commit 57582e8278
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=365052

View File

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