aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authordanfe <danfe@FreeBSD.org>2013-08-23 16:50:30 +0800
committerdanfe <danfe@FreeBSD.org>2013-08-23 16:50:30 +0800
commit538299fd9a2213fea8482efd6d7f92f73c898b7b (patch)
treed40981b00bc399a8b9d44767bb99352e7c8bfadb /mail
parent41bc57233fee16a8513fac5436e118c6ae87b290 (diff)
downloadfreebsd-ports-gnome-538299fd9a2213fea8482efd6d7f92f73c898b7b.tar.gz
freebsd-ports-gnome-538299fd9a2213fea8482efd6d7f92f73c898b7b.tar.zst
freebsd-ports-gnome-538299fd9a2213fea8482efd6d7f92f73c898b7b.zip
- Attempt to unbreak parallel (-jX) builds by fixing targets dependencies
- Convert NOPORTDOCS -> PORT_OPTIONS:MDOCS, modernize LIB_DEPENDS - Connect "check" target to our standard "regression-test" that automated package builders know about - Trim the header and drop check for alpha: unfortunately, it's long gone Reported by: marino Approved by: miwi, bapt (portmgr, implicit)
Diffstat (limited to 'mail')
-rw-r--r--mail/lmtp2nntp/Makefile45
1 files changed, 21 insertions, 24 deletions
diff --git a/mail/lmtp2nntp/Makefile b/mail/lmtp2nntp/Makefile
index 81ba2a28851e..f68381767d91 100644
--- a/mail/lmtp2nntp/Makefile
+++ b/mail/lmtp2nntp/Makefile
@@ -1,9 +1,5 @@
-# New ports collection makefile for: lmtp2nntp
-# Date created: 12 November 2001
-# Whom: Thomas Lotterer <thomas.lotterer@cw.com>
-#
+# Created by: Thomas Lotterer <thomas.lotterer@cw.com>
# $FreeBSD$
-#
PORTNAME= lmtp2nntp
PORTVERSION= 1.4.1
@@ -14,10 +10,10 @@ MASTER_SITE_SUBDIR= tool/${PORTNAME}
MAINTAINER= vd@FreeBSD.org
COMMENT= OSSP mail to news gateway
-LIB_DEPENDS= str.9:${PORTSDIR}/devel/str \
- ex.10:${PORTSDIR}/devel/ossp-ex \
- sa.12:${PORTSDIR}/net/ossp-sa \
- var.11:${PORTSDIR}/devel/ossp-var
+LIB_DEPENDS= libstr.so:${PORTSDIR}/devel/str \
+ libex.so:${PORTSDIR}/devel/ossp-ex \
+ libsa.so:${PORTSDIR}/net/ossp-sa \
+ libvar.so:${PORTSDIR}/devel/ossp-var
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-ex=${LOCALBASE} --with-str=${LOCALBASE} \
@@ -25,26 +21,27 @@ CONFIGURE_ARGS= --with-ex=${LOCALBASE} --with-str=${LOCALBASE} \
MAN8= lmtp2nntp.8
PLIST_FILES= sbin/lmtp2nntp
-
-.if !defined(NOPORTDOCS)
PORTDOCS= INSTALL README
-.endif
-check: build
- @(cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} check)
+OPTIONS_DEFINE= DOCS
+
+.include <bsd.port.options.mk>
+
+# Try to fix parallel builds (-jX)
+post-patch:
+ @${REINPLACE_CMD} -e '/^all:/s, _SUBDIRS_all,, ; \
+ /^$$(PROG)/s,$$, _SUBDIRS_all,' ${WRKSRC}/Makefile.in
post-install:
-.if !defined(NOPORTDOCS)
- ${MKDIR} ${DOCSDIR}
-.for doc in ${PORTDOCS}
- ${INSTALL_DATA} ${WRKSRC}/${doc} ${DOCSDIR}/
-.endfor
+.if ${PORT_OPTIONS:MDOCS}
+ @${MKDIR} ${DOCSDIR}
+ ${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${DOCSDIR}
.endif
-.include <bsd.port.pre.mk>
+check: build
+ @(cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} \
+ ${MAKEFILE} ${MAKE_ARGS} check)
-.if ${ARCH} == "alpha"
-BROKEN= Does not compile on alpha
-.endif
+regression-test: check
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>