diff options
Diffstat (limited to 'net')
-rw-r--r-- | net/afpfs-ng/Makefile | 2 | ||||
-rw-r--r-- | net/ldapdiff/Makefile | 11 | ||||
-rw-r--r-- | net/xmlrpc-epi/Makefile | 2 |
3 files changed, 10 insertions, 5 deletions
diff --git a/net/afpfs-ng/Makefile b/net/afpfs-ng/Makefile index c4889d2709cf..ecaf5fc57217 100644 --- a/net/afpfs-ng/Makefile +++ b/net/afpfs-ng/Makefile @@ -53,7 +53,7 @@ post-patch: .SILENT ${WRKSRC}/Makefile.am post-configure: .SILENT - ${REINPLACE_CMD} 's|LIBS = |LIBS = -liconv |' \ + ${REINPLACE_CMD} 's|LIBS = |LIBS = ${ICONV_LIB} |' \ ${WRKSRC}/cmdline/Makefile .include <bsd.port.post.mk> diff --git a/net/ldapdiff/Makefile b/net/ldapdiff/Makefile index f71eac9e517e..b55a54ab2711 100644 --- a/net/ldapdiff/Makefile +++ b/net/ldapdiff/Makefile @@ -20,8 +20,7 @@ USES= iconv USE_OPENLDAP= yes GNU_CONFIGURE= yes CONFIGURE_ARGS= --prefix=${LOCALBASE} \ - --with-ldap-dir=${LOCALBASE} \ - --with-iconv-dir=${LOCALBASE} + --with-ldap-dir=${LOCALBASE} SAMPLES= addentry.sh webtomware_without_jpeg.user.ldif \ webtomware.init.ldif webtomware.user.ldif MAN1= ldapdiff.1 @@ -30,6 +29,12 @@ WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} PORTDOCS= CHANGES ChangeLog README TODO +.include <bsd.port.pre.mk> + +.if ! empty(ICONV_LIB) +CONFIGURE_ARGS+=--with-iconv-dir=${LOCALBASE} +.endif + do-install: ${INSTALL_PROGRAM} ${WRKSRC}/ldapdiff ${PREFIX}/bin ${INSTALL_MAN} ${WRKSRC}/${MAN1} ${MAN1PREFIX}/man/man1 @@ -46,4 +51,4 @@ do-install: .endif @${CAT} ${PKGMESSAGE} -.include <bsd.port.mk> +.include <bsd.port.post.mk> diff --git a/net/xmlrpc-epi/Makefile b/net/xmlrpc-epi/Makefile index 065df427b175..ea1e09296cf5 100644 --- a/net/xmlrpc-epi/Makefile +++ b/net/xmlrpc-epi/Makefile @@ -19,7 +19,7 @@ USE_BZIP2= yes USE_GMAKE= yes USE_LDCONFIG= yes CPPFLAGS+= -I${LOCALBASE}/include -LDFLAGS+= -L${LOCALBASE}/lib -liconv +LDFLAGS+= -L${LOCALBASE}/lib ${ICONV_LIB} CONFIGURE_ARGS= --program-transform="s|^|xre-|" PORTDOCS= AUTHORS ChangeLog NEWS README |