aboutsummaryrefslogtreecommitdiffstats
path: root/net/netatalk3
diff options
context:
space:
mode:
authorbapt <bapt@FreeBSD.org>2013-09-05 18:26:41 +0800
committerbapt <bapt@FreeBSD.org>2013-09-05 18:26:41 +0800
commit131e0f4afb25e1b1cda0fa2ee5d894f875dab3a1 (patch)
tree1c21231160e0c492dfcf1f9375001555cfddd231 /net/netatalk3
parent88594e345c3dacded0874fdce8242d3c7e00bdd2 (diff)
downloadfreebsd-ports-graphics-131e0f4afb25e1b1cda0fa2ee5d894f875dab3a1.tar.gz
freebsd-ports-graphics-131e0f4afb25e1b1cda0fa2ee5d894f875dab3a1.tar.zst
freebsd-ports-graphics-131e0f4afb25e1b1cda0fa2ee5d894f875dab3a1.zip
Fix build on head with iconv in libc
Diffstat (limited to 'net/netatalk3')
-rw-r--r--net/netatalk3/Makefile9
1 files changed, 6 insertions, 3 deletions
diff --git a/net/netatalk3/Makefile b/net/netatalk3/Makefile
index ec987b6cdb7..e9a955d6901 100644
--- a/net/netatalk3/Makefile
+++ b/net/netatalk3/Makefile
@@ -24,7 +24,6 @@ USE_RC_SUBR= netatalk
CONFIGURE_ARGS+= --enable-tcp-wrappers \
--with-pkgconfdir=${PREFIX}/etc \
- --with-libiconv=${LOCALBASE} \
--with-libgcrypt-dir=${LOCALBASE} \
--with-uams-path=${PREFIX}/libexec/netatalk-uams \
--with-bdb=${LOCALBASE} \
@@ -51,8 +50,6 @@ MAN8= afpd.8 cnid_dbd.8 cnid_metad.8 netatalk.8
CONFLICTS= bigloo-2.* cap-6.0.* tct-1.* netatalk-[12]* yudit-[0-9]*
-.include <bsd.port.pre.mk>
-
.if ${PORT_OPTIONS:MKRB5}
CONFIGURE_ARGS+= --enable-krbV-uam
PLIST_SUB+= NETATALKKRB5=""
@@ -119,6 +116,12 @@ PLIST_SUB+= ATFUNCS="@comment "
PLIST_SUB+= ATFUNCS=""
.endif
+.include <bsd.port.pre.mk>
+
+.if !empty(ICONV_LIB)
+CONFIGURE_ARGS= --with-libiconv=${LOCALBASE}
+.endif
+
post-patch:
@${REINPLACE_CMD} -e 's|%%DB_NAME%%|${BDB_INCLUDE_DIR:T}| ; \
s|%%DB_LIB%%|-l${BDB_LIB_NAME}|g ; \