1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-19 19:59:43 +00:00
freebsd-ports/mail/archiveopteryx/Makefile
Mark Felder 943ef4ed5a Upstream re-rolled and finally produced an official tarball.
Hopefully this means they can't re-roll again.
2014-03-10 19:50:53 +00:00

58 lines
1.1 KiB
Makefile

# Created by: Ashish SHUKLA <ashish@FreeBSD.org>
# $FreeBSD$
PORTNAME= archiveopteryx
PORTVERSION= 3.2.0
PORTREVISION= 2
CATEGORIES= mail
MASTER_SITES= http://archiveopteryx.org/download/
MAINTAINER= feld@FreeBSD.org
COMMENT= Advanced PostgreSQL-based IMAP/POP server
LICENSE= MIT
BUILD_DEPENDS= jam:${PORTSDIR}/devel/jam
USE_BZIP2= yes
USES= perl5
USE_PERL5= build
USE_PGSQL= yes
WANT_PGSQL_VER= 91+
PORTDOCS= COPYING README bsd.txt
SUB_FILES= pkg-message
USE_RC_SUBR= ${PORTNAME}
USERS= aox
GROUPS= aox
PLIST_SUB+= USERS="${USERS}"
PLIST_SUB+= GROUPS="${GROUPS}"
JAM?= ${LOCALBASE}/bin/jam
.include <bsd.port.pre.mk>
# force Clang when on FreeBSD 10+
.if ${OSVERSION} >= 1000000
JAMARG= "-sCLANG=1"
.endif
post-patch:
@${GREP} -Rl '%%[[:alpha:]]\+%%' ${WRKSRC} |${XARGS} ${REINPLACE_CMD} \
-e 's,%%PREFIX%%,${PREFIX},g'
${REINPLACE_CMD} "s|INSTALLROOT ?= \"\" ;|INSTALLROOT = \"${STAGEDIR}\" ;|" ${WRKSRC}/Jamsettings
do-build:
@cd ${WRKSRC} && ${JAM} ${JAMARG}
do-install:
@cd ${WRKSRC} && ${JAM} ${JAMARG} install
post-install:
@${CAT} ${PKGMESSAGE}
.include <bsd.port.post.mk>