From 131e0f4afb25e1b1cda0fa2ee5d894f875dab3a1 Mon Sep 17 00:00:00 2001 From: bapt Date: Thu, 5 Sep 2013 10:26:41 +0000 Subject: Fix build on head with iconv in libc --- net/netatalk3/Makefile | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'net/netatalk3') 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 - .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 + +.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 ; \ -- cgit