summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--net/dictd/Makefile4
-rw-r--r--textproc/dict/Makefile3
2 files changed, 4 insertions, 3 deletions
diff --git a/net/dictd/Makefile b/net/dictd/Makefile
index 9186e6de156a..a70214ce259c 100644
--- a/net/dictd/Makefile
+++ b/net/dictd/Makefile
@@ -25,10 +25,10 @@ MAN8= dictd.8
USE_REINPLACE= yes
USE_BISON= yes
USE_LIBTOOL= yes
-CFLAGS+= -I${PREFIX}/include
CONFIGURE_ARGS= --with-etcdir=${PREFIX}/etc --with-cflags="${CFLAGS}" \
--without-local-zlib
-CONFIGURE_ENV= CFLAGS="${CFLAGS}"
+CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
+ LDFLAGS="-L${LOCALBASE}/lib"
USE_GMAKE= yes
ALL_TARGET= dictd dictzip
diff --git a/textproc/dict/Makefile b/textproc/dict/Makefile
index af55f367f363..0e1306f89e7b 100644
--- a/textproc/dict/Makefile
+++ b/textproc/dict/Makefile
@@ -21,9 +21,10 @@ LIB_DEPENDS= ltdl.4:${PORTSDIR}/devel/libltdl
USE_BISON= yes
USE_REINPLACE= yes
USE_LIBTOOL_VER= 14
-CFLAGS+= -I${PREFIX}/include
CONFIGURE_ARGS= --without-local-zlib --with-cflags="${CFLAGS}" \
--with-etcdir=${PREFIX}/etc
+CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
+ LDFLAGS="-L${LOCALBASE}/lib"
USE_GMAKE= yes
ALL_TARGET= dict
INSTALL_TARGET= install.dict