diff options
author | bapt <bapt@FreeBSD.org> | 2013-09-05 18:26:41 +0800 |
---|---|---|
committer | bapt <bapt@FreeBSD.org> | 2013-09-05 18:26:41 +0800 |
commit | 131e0f4afb25e1b1cda0fa2ee5d894f875dab3a1 (patch) | |
tree | 1c21231160e0c492dfcf1f9375001555cfddd231 /net/netatalk | |
parent | 88594e345c3dacded0874fdce8242d3c7e00bdd2 (diff) | |
download | freebsd-ports-gnome-131e0f4afb25e1b1cda0fa2ee5d894f875dab3a1.tar.gz freebsd-ports-gnome-131e0f4afb25e1b1cda0fa2ee5d894f875dab3a1.tar.zst freebsd-ports-gnome-131e0f4afb25e1b1cda0fa2ee5d894f875dab3a1.zip |
Fix build on head with iconv in libc
Diffstat (limited to 'net/netatalk')
-rw-r--r-- | net/netatalk/Makefile | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/net/netatalk/Makefile b/net/netatalk/Makefile index 7a266ef509d6..23ce7f2ec0e9 100644 --- a/net/netatalk/Makefile +++ b/net/netatalk/Makefile @@ -21,7 +21,6 @@ USE_RC_SUBR= netatalk CONFIGURE_ARGS+= --with-tcp-wrappers \ --with-pkgconfdir=${PREFIX}/etc \ - --with-libiconv=${LOCALBASE} \ --with-libgcrypt-dir=${LOCALBASE} \ --with-uams-path=${PREFIX}/libexec/netatalk-uams \ --with-bdb=${LOCALBASE} @@ -120,6 +119,12 @@ CONFIGURE_ARGS+= --enable-sendfile CONFIGURE_ARGS+= --disable-sendfile .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 ; \ @@ -141,4 +146,4 @@ post-install: .endfor @${CAT} ${PKGMESSAGE} -.include <bsd.port.mk> +.include <bsd.port.post.mk> |