freebsd-ports/ftp/moftpd/Makefile
Ade Lovett 54a0b86543 Mass-conversion to the USE_AUTOTOOLS New World Order. The code present
in bsd.autotools.mk essentially makes this a no-op given that all the
old variables set a USE_AUTOTOOLS_COMPAT variable, which is parsed in
exactly the same way as USE_AUTOTOOLS itself.

Moreover, USE_AUTOTOOLS has already been extensively tested by the GNOME
team -- all GNOME 2.12.x ports use it.

Preliminary documentation can be found at:
	http://people.FreeBSD.org/~ade/autotools.txt

which is in the process of being SGMLized before introduction into the
Porters Handbook.

Light blue touch-paper.  Run.
2005-11-15 06:52:12 +00:00

55 lines
1.3 KiB
Makefile

# New ports collection makefile for: moftpd
# Date created: Mar 19, 2004
# Whom: Clement Laforet <clement@FreeBSD>org>
#
# $FreeBSD$
#
PORTNAME= moftpd
PORTVERSION= 1.2.3
CATEGORIES= ftp ipv6
MASTER_SITES= ftp://ftp.morth.org/moftpd/ \
${MASTER_SITE_LOCAL}
MASTER_SITE_SUBDIR= clement
MAINTAINER= clement@FreeBSD.org
COMMENT= A powerful FTP server supporting IPv6, TLS, and much more
USE_AUTOTOOLS= autoconf:259
USE_GMAKE= yes
USE_RC_SUBR= yes
USE_PERL5_BUILD=yes
CONFIGURE_ENV+= LIBS="${LIBS}" CFLAGS="${CFLAGS}"
CONFIGURE_ARGS= --localstatedir=/var
MAN8= moftpd.8 moftpadmin.8
LIBS+= -lcrypt
RC_SCRIPTS_SUB= PREFIX=${PREFIX} RC_SUBR=${RC_SUBR}
.if defined(WITHOUT_TLS)
CONFIGURE_ARGS+= --without-tls
.elif defined(WITH_GNUTLS)
CONFIGURE_ARGS+= --without-openssl
LIB_DEPENDS+= gnutls.12:${PORTSDIR}/security/gnutls
LIBS= -L${LOCALBASE}/lib -lgnutls
CFLAGS+= -I${LOCALBASE}/include
.else
USE_OPENSSL= yes
CONFIGURE_ARGS+= --without-gnutls
.endif
.if defined(WITH_MYSQL)
CFLAGS+= -I${LOCALBASE}/include
LIBS+= -L${LOCALBASE}/lib/mysql
.else
CONFIGURE_ARGS+= --without-sql
.endif
post-patch:
@${SED} ${RC_SCRIPTS_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \
${FILESDIR}/moftpd.sh > ${WRKDIR}/moftpd.sh
post-install:
@${INSTALL_SCRIPT} ${WRKDIR}/moftpd.sh ${PREFIX}/etc/rc.d/
.include <bsd.port.mk>