aboutsummaryrefslogtreecommitdiffstats
path: root/devel/pecl-mcve
diff options
context:
space:
mode:
authoritetcu <itetcu@FreeBSD.org>2009-06-10 23:47:32 +0800
committeritetcu <itetcu@FreeBSD.org>2009-06-10 23:47:32 +0800
commit4fb69f322834f0f313d1fbbda92d94c48c10922c (patch)
treec32a6f9caebd1163634e33c9a2765ebd9d08be99 /devel/pecl-mcve
parent9001e8d46222aef3b0ff3b23f6804605ba5bf782 (diff)
downloadfreebsd-ports-graphics-4fb69f322834f0f313d1fbbda92d94c48c10922c.tar.gz
freebsd-ports-graphics-4fb69f322834f0f313d1fbbda92d94c48c10922c.tar.zst
freebsd-ports-graphics-4fb69f322834f0f313d1fbbda92d94c48c10922c.zip
Fix build with custom LOCALBASE
Submitted by: maintainer, reworked by itetcu@ and miwi@ Reported by: QATty
Diffstat (limited to 'devel/pecl-mcve')
-rw-r--r--devel/pecl-mcve/Makefile8
1 files changed, 5 insertions, 3 deletions
diff --git a/devel/pecl-mcve/Makefile b/devel/pecl-mcve/Makefile
index e11197a2258..84678255449 100644
--- a/devel/pecl-mcve/Makefile
+++ b/devel/pecl-mcve/Makefile
@@ -21,8 +21,10 @@ LIB_DEPENDS= monetra.7:${PORTSDIR}/devel/libmonetra
USE_PHP= yes
USE_PHPEXT= yes
-CONFIGURE_ARGS= --enable-mcve
-LDFLAGS+= "-L${LOCALBASE}/lib"
-CFLAGS+= "-I${LOCALBASE}/include"
+CONFIGURE_ARGS+=--with-mcve="${LOCALBASE}"
+
+post-patch:
+ ${REINPLACE_CMD} -e '/SEARCH_PATH/ s,=",="${LOCALBASE} ${PREFIX} ,' \
+ ${WRKSRC}/config.m4
.include <bsd.port.mk>