- Fix build with newer cmake

PR:		141410
Submitted by:	Barbara <barbara.xxx1975@libero.it>
This commit is contained in:
Dmitry Marakasov 2009-12-29 02:17:40 +00:00
parent bc61acea42
commit 0e24276f59
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=246807

View file

@ -33,8 +33,6 @@ OPTIONS= ALLEGRO "Use Allegro for hardware API" off \
SUB_FILES= pkg-message
BROKEN= fails to build with new cmake.
.include <bsd.port.pre.mk>
# The `-fno-strict-aliasing' flag (default on FreeBSD 6.0+) produces
@ -137,6 +135,19 @@ post-patch:
@${REINPLACE_CMD} -e 's/<malloc.h>/<stdlib.h>/' \
${WRKSRC}/utils/acc/strlist.c
.if defined(WITH_LAUNCHER)
@${REINPLACE_CMD} -e '/add_definitions($${wxWidgets_DEFINITIONS})/d; \
s/include_directories($${wxWidgets_INCLUDE_DIRS})/include($${wxWidgets_USE_FILE})/' \
${WRKSRC}/utils/vlaunch/CMakeLists.txt
.endif
post-configure:
.if defined(WITH_LAUNCHER)
@${REINPLACE_CMD} -e 's/-pthread;-D_THREAD_SAFE //; \
s/-isystem /-I/g' \
${WRKSRC}/utils/vlaunch/CMakeFiles/vlaunch.dir/flags.make
.endif
post-install:
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}