summaryrefslogblamecommitdiff
path: root/mail/archiveopteryx/Makefile
blob: 100b6d4424852e6842b5d949c9ceea360f5e0da1 (plain) (tree)
1
2
3
4
5
6
7
8
9
                                                
           

                              
                     
                 
                    
                                                   
 
                                
                                                         
 
                   
 
                             
 
                                          
                   
                     
 

                                      





                           

                                  


                                    

                          




                                 


                                                                               
                                                                                                         

         
                                         

           
                                                 
 
                           
# Created by: Ashish SHUKLA <ashish@FreeBSD.org>
# $FreeBSD$

PORTNAME=	archiveopteryx
PORTVERSION=	3.2.0
PORTREVISION=	4
CATEGORIES=	mail
MASTER_SITES=	http://archiveopteryx.org/download/

MAINTAINER=	feld@FreeBSD.org
COMMENT=	Advanced PostgreSQL-based IMAP/POP server

LICENSE=	MIT

BUILD_DEPENDS=	jam:devel/jam

USES=		perl5 tar:bzip2 pgsql:9.1+
USE_OPENSSL=	yes
USE_PERL5=	build

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

.include <bsd.port.post.mk>