From 216b5a285fdcc1456a307fcc60f3507c20d613eb Mon Sep 17 00:00:00 2001 From: Tijl Coosemans Date: Tue, 26 Aug 2014 14:06:08 +0000 Subject: - Fix missing library problems when the linker enforces explicit linking PR: 192062 Exp-run by: antoine Approved by: portmgr (antoine) --- games/wargus/Makefile | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'games/wargus/Makefile') diff --git a/games/wargus/Makefile b/games/wargus/Makefile index ed15d06a5980..30cd4d7ab8b8 100644 --- a/games/wargus/Makefile +++ b/games/wargus/Makefile @@ -23,8 +23,16 @@ USE_GNOME= gtk20 WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} SUB_FILES= ${PORTNAME} pkg-message -MAKE_ARGS+= CFLAGS+="-I${LOCALBASE}/include -I${LOCALBASE}/include/libpng15" LDFLAGS+=-L${LOCALBASE}/lib - +CPPFLAGS+= -I${LOCALBASE}/include -I${LOCALBASE}/include/libpng15 +LDFLAGS+= -L${LOCALBASE}/lib + +post-patch: + @${REINPLACE_CMD} \ + -e '/^CFLAGS/s|-O2|${CPPFLAGS} ${CFLAGS}|' \ + -e '/^CXXFLAGS/s|$$| ${CXXFLAGS}|' \ + -e '/^LDFLAGS/s|$$| ${LDFLAGS}|' \ + -e '/^GTKFLAGS/s/gtk+-2.0/& x11/' \ + ${WRKSRC}/Makefile do-install: ${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin cd ${WRKSRC} && ${COPYTREE_SHARE} "campaigns contrib maps scripts" ${STAGEDIR}${DATADIR} -- cgit v1.2.3