summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgahr <gahr@FreeBSD.org>2014-02-19 16:51:27 +0000
committergahr <gahr@FreeBSD.org>2014-02-19 16:51:27 +0000
commit769da807a250dac354479d8c158442d4f7d95d03 (patch)
tree1123c9949f192b62d77a4deb160ef128080cf4de
parent6b5318e171b2c7845e62bd951a84dd1242d30072 (diff)
downloadFreeBSD-ports-769da807a250dac354479d8c158442d4f7d95d03.zip
FreeBSD-ports-769da807a250dac354479d8c158442d4f7d95d03.tar.gz
- Fix build with fltk-devel
-rw-r--r--x11-wm/flwm/Makefile5
1 files changed, 2 insertions, 3 deletions
diff --git a/x11-wm/flwm/Makefile b/x11-wm/flwm/Makefile
index 76dac68..cff4399 100644
--- a/x11-wm/flwm/Makefile
+++ b/x11-wm/flwm/Makefile
@@ -15,15 +15,14 @@ LIB_DEPENDS= libfltk.so:${PORTSDIR}/x11-toolkits/fltk-devel
USE_XORG= x11 xt
GNU_CONFIGURE= yes
-
-CFLAGS+= -DFL_LIBRARY
+CONFIGURE_ENV+= CXXFLAGS="-DFL_LIBRARY `${LOCALBASE}/bin/fltk-devel/fltk-config --cflags`"
PLIST_FILES= bin/flwm \
man/man1/flwm.1.gz
post-patch:
${REINPLACE_CMD} -e 's|/usr/X11R6|${LOCALBASE}|g; /^main/s|^|int |g' ${WRKSRC}/${CONFIGURE_SCRIPT}
- ${REINPLACE_CMD} -e 's|^LIBS =.*|LIBS = `fltk-config --ldflags`|' ${WRKSRC}/Makefile
+ ${REINPLACE_CMD} -e 's|^LIBS =.*|LIBS = `${LOCALBASE}/bin/fltk-devel/fltk-config --ldflags`|' ${WRKSRC}/Makefile
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/flwm ${STAGEDIR}${PREFIX}/bin
OpenPOWER on IntegriCloud