1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-07 06:40:06 +00:00
freebsd-ports/mail/archiveopteryx-devel/Makefile
2014-11-22 20:40:08 +00:00

62 lines
1.1 KiB
Makefile

# Created by: Ashish SHUKLA <ashish@FreeBSD.org>
# $FreeBSD$
PORTNAME= archiveopteryx
PORTVERSION= 3.2.99.20140730
CATEGORIES= mail
PKGNAMESUFFIX= -devel
MAINTAINER= feld@FreeBSD.org
COMMENT= Advanced PostgreSQL-based IMAP/POP server
LICENSE= MIT
BUILD_DEPENDS= jam:${PORTSDIR}/devel/jam
USE_GITHUB= yes
GH_ACCOUNT= aox
GH_PROJECT= aox
GH_TAGNAME= ${GH_COMMIT}
GH_COMMIT= 39bdb8b
USES= perl5 tar:bzip2 pgsql:9.1+
USE_PERL5= build
PORTDOCS= COPYING README bsd.txt
SUB_FILES= pkg-message
USE_RC_SUBR= ${PORTNAME}
CONFLICTS= archiveopteryx-[0-9]*
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>