2013-08-30 03:47:21 +02:00
|
|
|
# Created by: Ashish SHUKLA <ashish@FreeBSD.org>
|
2010-10-03 15:24:47 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= archiveopteryx
|
2014-03-06 22:13:02 +01:00
|
|
|
PORTVERSION= 3.2.0
|
2017-01-10 16:12:44 +01:00
|
|
|
PORTREVISION= 7
|
2010-10-03 15:24:47 +02:00
|
|
|
CATEGORIES= mail
|
2014-03-10 20:50:53 +01:00
|
|
|
MASTER_SITES= http://archiveopteryx.org/download/
|
2010-10-03 15:24:47 +02:00
|
|
|
|
2013-07-29 17:03:58 +02:00
|
|
|
MAINTAINER= feld@FreeBSD.org
|
2013-08-30 16:42:06 +02:00
|
|
|
COMMENT= Advanced PostgreSQL-based IMAP/POP server
|
2010-10-03 15:24:47 +02:00
|
|
|
|
2014-03-06 22:13:02 +01:00
|
|
|
LICENSE= MIT
|
2012-06-11 04:30:33 +02:00
|
|
|
|
2016-04-01 16:16:16 +02:00
|
|
|
BUILD_DEPENDS= jam:devel/jam
|
2010-10-03 15:24:47 +02:00
|
|
|
|
2017-04-30 03:12:10 +02:00
|
|
|
BROKEN_powerpc64= Does not build: /bin/sh: clang: not found
|
|
|
|
|
2016-10-04 17:55:45 +02:00
|
|
|
USES= perl5 ssl tar:bzip2
|
2013-08-30 16:42:06 +02:00
|
|
|
USE_PERL5= build
|
2016-10-04 17:46:00 +02:00
|
|
|
WITH_PGSQL= client
|
2010-10-03 15:24:47 +02:00
|
|
|
|
2012-06-11 04:30:33 +02:00
|
|
|
PORTDOCS= COPYING README bsd.txt
|
|
|
|
|
2010-10-03 15:24:47 +02:00
|
|
|
SUB_FILES= pkg-message
|
|
|
|
|
|
|
|
USE_RC_SUBR= ${PORTNAME}
|
|
|
|
|
|
|
|
USERS= aox
|
|
|
|
GROUPS= aox
|
2014-03-06 22:13:02 +01:00
|
|
|
PLIST_SUB+= USERS="${USERS}"
|
|
|
|
PLIST_SUB+= GROUPS="${GROUPS}"
|
2010-10-03 15:24:47 +02:00
|
|
|
|
|
|
|
JAM?= ${LOCALBASE}/bin/jam
|
2017-12-14 14:53:49 +01:00
|
|
|
JAMARG+= -dx
|
2010-10-03 15:24:47 +02:00
|
|
|
|
2011-05-02 00:29:52 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2017-01-12 12:30:50 +01:00
|
|
|
# force Clang when on FreeBSD
|
|
|
|
.if ${OPSYS} == FreeBSD
|
2017-12-14 14:53:49 +01:00
|
|
|
JAMARG+= "-sCLANG=1"
|
2014-03-06 22:13:02 +01:00
|
|
|
.endif
|
|
|
|
|
2010-10-03 15:24:47 +02:00
|
|
|
post-patch:
|
2017-04-25 18:10:39 +02:00
|
|
|
@${EGREP} -Rl '%%[[:alpha:]]+%%' ${WRKSRC} |${XARGS} ${REINPLACE_CMD} \
|
2010-10-03 15:24:47 +02:00
|
|
|
-e 's,%%PREFIX%%,${PREFIX},g'
|
2016-09-10 21:37:13 +02:00
|
|
|
${REINPLACE_CMD} -e "s|\(C++FLAGS =\)|\1 -I${OPENSSLINC}|g" \
|
|
|
|
-e"s|INSTALLROOT ?= \"\" ;|INSTALLROOT = \"${STAGEDIR}\" ;|" \
|
|
|
|
${WRKSRC}/Jamsettings
|
|
|
|
${REINPLACE_CMD} -e "s|\(-lcrypto\)|-L${OPENSSLLIB} \1|g" \
|
|
|
|
${WRKSRC}/server/Jamfile
|
2010-10-03 15:24:47 +02:00
|
|
|
|
|
|
|
do-build:
|
2014-03-06 22:13:02 +01:00
|
|
|
@cd ${WRKSRC} && ${JAM} ${JAMARG}
|
2010-10-03 15:24:47 +02:00
|
|
|
|
|
|
|
do-install:
|
2014-03-06 22:13:02 +01:00
|
|
|
@cd ${WRKSRC} && ${JAM} ${JAMARG} install
|
2010-10-03 15:24:47 +02:00
|
|
|
|
2011-05-02 00:29:52 +02:00
|
|
|
.include <bsd.port.post.mk>
|