aboutsummaryrefslogtreecommitdiffstats
path: root/ftp/proftpd
diff options
context:
space:
mode:
authormharo <mharo@FreeBSD.org>2001-06-01 03:23:18 +0800
committermharo <mharo@FreeBSD.org>2001-06-01 03:23:18 +0800
commitfa647a483377f32dbae403fcf14bbd5adc29410f (patch)
treec9e9b7d0ffcfd7b28124db5596ec3e795294b664 /ftp/proftpd
parent771871372330e82f4c4d50892b9c7c7c2b9d0f63 (diff)
downloadfreebsd-ports-graphics-fa647a483377f32dbae403fcf14bbd5adc29410f.tar.gz
freebsd-ports-graphics-fa647a483377f32dbae403fcf14bbd5adc29410f.tar.zst
freebsd-ports-graphics-fa647a483377f32dbae403fcf14bbd5adc29410f.zip
fix build with LDAP and MYSQL support
PR: 27431 Submitted by: Josh Elsasser <josh@elsasser.org>
Diffstat (limited to 'ftp/proftpd')
-rw-r--r--ftp/proftpd/Makefile25
1 files changed, 13 insertions, 12 deletions
diff --git a/ftp/proftpd/Makefile b/ftp/proftpd/Makefile
index a121b4c6445..039d89079cf 100644
--- a/ftp/proftpd/Makefile
+++ b/ftp/proftpd/Makefile
@@ -15,12 +15,6 @@ MASTER_SITES= ftp://ftp.proftpd.org/distrib/source/ \
MAINTAINER= mharo@FreeBSD.org
-.if defined(WITH_LDAP)
-MASTER_SITES+= http://www.horde.net/~jwm/software/proftpd-ldap/
-MOD_LDAP= mod_ldap-2.7.4.tar.bz2
-DISTFILES= ${DISTNAME}${EXTRACT_SUFX} ${MOD_LDAP}
-.endif
-
MAN1= ftpcount.1 ftpwho.1
MAN5= xferlog.5
MAN8= proftpd.8 ftpshut.8
@@ -39,26 +33,33 @@ CONFIGURE_ARGS+= --disable-pam
#allow user to override
MODULES?= mod_ratio:mod_readme:mod_quota:mod_wrap
+INCLUDEDIRS=
+LIBDIRS=
+
.if defined(WITH_LDAP)
MODULES:=${MODULES}:mod_ldap
BUILD_DEPENDS+= ${LOCALBASE}/lib/libldap.a:${PORTSDIR}/net/openldap
-CONFIGURE_ENV+= CFLAGS="-I/usr/local/include -g" LDFLAGS=-L/usr/local/lib
+INCLUDEDIRS:=${INCLUDEDIRS}:${PREFIX}/include
+LIBDIRS:=${LIBDIRS}:${PREFIX}/lib
.endif
.if defined(WITH_MYSQL)
MODULES:=${MODULES}:mod_sql:mod_sql_mysql
LIB_DEPENDS+= mysqlclient.10:${PORTSDIR}/databases/mysql323-client
-CONFIGURE_ENV+= CFLAGS="-I${PREFIX}/include" LDFLAGS="-L${PREFIX}/lib/mysql"
+INCLUDEDIRS:=${INCLUDEDIRS}:${PREFIX}/include
+LIBDIRS:=${LIBDIRS}:${PREFIX}/lib/mysql
.endif
.if !empty(MODULES)
CONFIGURE_ARGS+= --with-modules=${MODULES}
.endif
-.if defined(WITH_LDAP)
-post-extract:
- ${RM} -rf ${WRKSRC}/contrib/mod_ldap.c
- tar --to-stdout -xvz -f ${DISTDIR}/${MOD_LDAP} */mod_ldap.c > ${WRKSRC}/contrib/mod_ldap.c
+.if !empty(INCLUDEDIRS)
+CONFIGURE_ARGS+= --with-includes=${INCLUDEDIRS}
+.endif
+
+.if !empty(LIBDIRS)
+CONFIGURE_ARGS+= --with-libraries=${LIBDIRS}
.endif
pre-configure: