From ff71c5533253855b7558eafef43bd3d1fd113ff4 Mon Sep 17 00:00:00 2001 From: Michael Haro Date: Thu, 31 May 2001 19:23:18 +0000 Subject: fix build with LDAP and MYSQL support PR: 27431 Submitted by: Josh Elsasser --- ftp/proftpd/Makefile | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) (limited to 'ftp/proftpd/Makefile') diff --git a/ftp/proftpd/Makefile b/ftp/proftpd/Makefile index a121b4c6445b..039d89079cfc 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: -- cgit v1.2.3