aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mailfront/Makefile
diff options
context:
space:
mode:
authorbdrewery <bdrewery@FreeBSD.org>2013-02-13 01:38:10 +0800
committerbdrewery <bdrewery@FreeBSD.org>2013-02-13 01:38:10 +0800
commitd268d7ec68a6d0b39da2adc9528c6dceb87937cb (patch)
tree0488c8a854b383c7d20e6463a38b4f9337431bfb /mail/mailfront/Makefile
parente19b52da18a3b100e2ad6905982ee58c7113e28a (diff)
downloadfreebsd-ports-gnome-d268d7ec68a6d0b39da2adc9528c6dceb87937cb.tar.gz
freebsd-ports-gnome-d268d7ec68a6d0b39da2adc9528c6dceb87937cb.tar.zst
freebsd-ports-gnome-d268d7ec68a6d0b39da2adc9528c6dceb87937cb.zip
- Update to 1.21 [1]
- Add support for LUA [1] - Trim header - Remove unneeded QMAIL_PREFIX (pulled in from bsd.mail.mk already) - Remove ABI version from LIB_DEPENDS - Convert NOPORTDOCS -> DOCS PR: ports/174742 [1] (based on) Submitted by: Uffe Jakobsen <uffe@uffe.org> [1] Approved by: maintainer timeout
Diffstat (limited to 'mail/mailfront/Makefile')
-rw-r--r--mail/mailfront/Makefile32
1 files changed, 22 insertions, 10 deletions
diff --git a/mail/mailfront/Makefile b/mail/mailfront/Makefile
index 7e8c9fc6c5e8..14d5c5be76fe 100644
--- a/mail/mailfront/Makefile
+++ b/mail/mailfront/Makefile
@@ -1,12 +1,8 @@
-# New ports collection makefile for: mailfront
-# Date created: 03 Mar 2003
-# Whom: Sergei Kolobov <sergei@kolobov.com>
-#
+# Created by: Sergei Kolobov <sergei@kolobov.com>
# $FreeBSD$
-#
PORTNAME= mailfront
-PORTVERSION= 1.18
+PORTVERSION= 1.21
CATEGORIES= mail
MASTER_SITES= http://untroubled.org/${PORTNAME}/ \
http://untroubled.org/${PORTNAME}/archive/
@@ -14,13 +10,14 @@ MASTER_SITES= http://untroubled.org/${PORTNAME}/ \
MAINTAINER= tarkhil@over.ru
COMMENT= Mail server network protocol front-ends
-LIB_DEPENDS= cvm-v2client.2:${PORTSDIR}/security/cvm
+LIB_DEPENDS= cvm-v2client:${PORTSDIR}/security/cvm
+
+OPTIONS_DEFINE= LUA
WANT_QMAIL= yes
-QMAIL_PREFIX?= /var/qmail
CFLAGS+= -I${CVM_INC}
CFLAGS_SO= ${CFLAGS} -fPIC -shared -L${CVM_LIB}
-LDFLAGS+= -g -L${CVM_LIB} -rdynamic
+LDFLAGS+= -g -L${CVM_LIB}
BGLIBS_INC= ${LOCALBASE}/include/bglibs
BGLIBS_LIB= ${LOCALBASE}/lib/bglibs
CVM_INC= ${LOCALBASE}/include
@@ -31,6 +28,21 @@ DOCS= NEWS README TODO *.html
.include <bsd.port.pre.mk>
+ALL_TARGET= all
+
+.if ${PORT_OPTIONS:MLUA}
+ALL_TARGET+= lua
+USE_LUA= yes
+CFLAGS+= -I${LUA_INCDIR}
+CFLAGS_SO+= -L${LUA_LIBDIR}
+LDFLAGS+= -L${LUA_LIBDIR}
+PLIST_SUB+= LUA=""
+.else
+PLIST_SUB+= LUA="@comment "
+.endif
+
+LDFLAGS+= -rdynamic
+
do-configure:
${ECHO_CMD} "${PREFIX}/bin" > ${WRKSRC}/conf-bin
${ECHO_CMD} "${PREFIX}/include" > ${WRKSRC}/conf-include
@@ -42,7 +54,7 @@ do-configure:
${ECHO_CMD} "${BGLIBS_LIB}" > ${WRKSRC}/conf-bglibs
${ECHO_CMD} "${QMAIL_PREFIX}" > ${WRKSRC}/conf-qmail
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
post-install:
@${MKDIR} ${DOCSDIR}
cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${DOCSDIR}