aboutsummaryrefslogblamecommitdiff
path: root/mail/davmail/Makefile
blob: 2efae7b8c3a0919462ddb819f687694e4696d20c (plain) (tree)
1
2
3
4
5
6
7
8
9
                       
                     

                                                 
                                                          
 
                                 
                                                                  
                                               
 

                     
                                
 
                         

                   
                       

                    

                                        
                                                



                                      
 


                       

                                           
                                            
 
           
                                                                   

                                   


                                                       
           
                                                 
                                                           
                                                 
                                    

                                    




                                        
                                    
                                        
                                                                      
                                                                     

                                                
                                                              
                                                                  

                                                               

                      
PORTNAME=	davmail
PORTVERSION=	6.1.0
CATEGORIES=	mail java
MASTER_SITES=	SF/davmail/davmail/${PORTVERSION}
DISTNAME=	${PORTNAME}-src-${PORTVERSION}-${REVISION}

MAINTAINER=	ports@FreeBSD.org
COMMENT=	POP/IMAP/SMTP/Caldav/Carddav/LDAP Exchange Gateway
WWW=		http://davmail.sourceforge.net/

LICENSE=	GPLv2

USES=		dos2unix tar:tgz

DOS2UNIX_FILES=	build.xml
USE_ANT=	yes
USE_JAVA=	yes
USE_RC_SUBR=	davmail
# 6.1.0
REVISION=	3423
# port build number, same as on DISTNAME
MAKE_ARGS=	-Drevision=${REVISION}
MAKE_ENV+=	"ANT_OPTS=-Dfile.encoding=UTF-8"
ALL_TARGET=	release

NO_ARCH=	yes
SUB_FILES=	davmail.sh pkg-message

USERS=		davmail
GROUPS=		davmail

DATADIR=	${JAVASHAREDIR}/${PORTNAME}

PLIST_SUB+=	PORTVERSION="${PORTVERSION}"

post-patch:
	@${REINPLACE_CMD} -e 's#prefix=\"usr#prefix=\"${PREFIX}#' \
		${WRKSRC}/build.xml

# Azul JRE FX has been disabled by removing the target:
# <antcall target="download-jre"/>
# in files/patch-build.xml patch.
do-install:
	@cd ${WRKSRC}/dist && ${FIND} . -type d \
		-exec ${MKDIR} ${STAGEDIR}${DATADIR}/\{} \;
	@cd ${WRKSRC}/dist && ${FIND} . -type f \
		-not -name "*.deb" \
		-not -name "*.md5" \
		-not -name "*.MD5" \
		-not -name "*.tgz" \
		-not -name "*.exe" \
		-not -name "swt-*.jar" \
		-not -name "*.zip" \
		-not -name "*.war" \
		-not -name "*.rpm" \
		-not -name "*.desktop" \
		-exec ${INSTALL_DATA} \{} ${STAGEDIR}${DATADIR}/\{} \;
	@${FIND} ${STAGEDIR}/${DATADIR} -depth -empty -type d -delete
	${INSTALL_SCRIPT} ${WRKDIR}/davmail.sh \
		${STAGEDIR}${PREFIX}/bin/davmail
	${INSTALL_DATA} ${WRKSRC}/src/etc/davmail.properties \
		${STAGEDIR}${PREFIX}/etc/davmail.properties.sample
	${INSTALL_DATA} ${WRKSRC}/src/desktop/davmail.desktop \
		${STAGEDIR}${PREFIX}/share/applications/

.include <bsd.port.mk>