1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-30 05:40:06 +00:00
freebsd-ports/mail/qmail-autoresponder/Makefile
Sergei Kolobov d11e5df4a7 - Make WITH_MYSQL knob actually useful
- Cosmetic fixes for consistency with other untroubled.org ports
- Bump PORTREVISION
2003-12-24 14:01:43 +00:00

58 lines
1.4 KiB
Makefile

# New ports collection makefile for: qmail-autoresponder
# Date created: 25 Mar 2003
# Whom: Sergei Kolobov <sergei@kolobov.com>
#
# $FreeBSD$
#
# Compile-time options:
# WITH_MYSQL=yes enable support for MySQL
#
PORTNAME= qmail-autoresponder
PORTVERSION= 0.96.1
PORTREVISION= 1
CATEGORIES= mail
MASTER_SITES= http://untroubled.org/${PORTNAME}/
MAINTAINER= sergei@FreeBSD.org
COMMENT= Rate-limited autoresponder for qmail
BUILD_DEPENDS= ${LOCALBASE}/lib/libbg-iobuf.a:${PORTSDIR}/devel/bglibs
LDFLAGS?= -s
PROGS= qmail-autoresponder
MAN1= qmail-autoresponder.1
DOCS= NEWS README TODO procedure.txt
.if defined(WITH_MYSQL)
USE_MYSQL= yes
CFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib/mysql
PROGS+= qmail-autoresponder-mysql
DOCS+= schema.mysql
PLIST_SUB+= MYSQL=""
.else
PLIST_SUB+= MYSQL="@comment "
.endif
ALL_TARGET= ${PROGS}
do-configure:
${ECHO_CMD} "${PREFIX}/bin" > ${WRKSRC}/conf-bin
${ECHO_CMD} "${MANPREFIX}/man" > ${WRKSRC}/conf-man
${ECHO_CMD} "${CC} ${CFLAGS}" > ${WRKSRC}/conf-cc
${ECHO_CMD} "${CC} ${LDFLAGS}" > ${WRKSRC}/conf-ld
${ECHO_CMD} "${LOCALBASE}/include/bglibs" > ${WRKSRC}/conf-bgincs
${ECHO_CMD} "${LOCALBASE}/lib" > ${WRKSRC}/conf-bglibs
do-install:
cd ${WRKSRC} && ${INSTALL_PROGRAM} ${PROGS} ${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/${MAN1} ${MANPREFIX}/man/man1
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${DOCSDIR}
.endif
.include <bsd.port.mk>