e2c977d933
PR: 192043 Submitted by: maintainer (timeout)
54 lines
1.5 KiB
Makefile
54 lines
1.5 KiB
Makefile
# Created by: John Prather
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= davmail
|
|
PORTVERSION= 4.5.1
|
|
CATEGORIES= mail java
|
|
MASTER_SITES= SF/davmail/davmail/${PORTVERSION}
|
|
DISTNAME= ${PORTNAME}-src-${PORTVERSION}-${REVISION}
|
|
|
|
MAINTAINER= john.c.prather@gmail.com
|
|
COMMENT= POP/IMAP/SMTP/Caldav/Carddav/LDAP Exchange Gateway
|
|
|
|
LICENSE= GPLv2
|
|
|
|
USES= dos2unix tar:tgz
|
|
DOS2UNIX_FILES= build.xml
|
|
USE_ANT= yes
|
|
USE_JAVA= yes
|
|
JAVA_VERSION= 1.6+
|
|
ALL_TARGET= release
|
|
REVISION= 2303
|
|
# port build number, same as on DISTNAME
|
|
MAKE_ARGS= -Drevision=${REVISION}
|
|
MAKE_ENV+= "ANT_OPTS=-Dfile.encoding=UTF-8"
|
|
|
|
DATADIR= ${JAVASHAREDIR}/${PORTNAME}
|
|
|
|
USE_RC_SUBR= davmail
|
|
SUB_FILES= davmail.sh
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's#exec=\"davmail\"#exec=\"${PREFIX}/bin/davmail\"#' \
|
|
-e 's#icon=\"/usr/share/davmail/davmail.png\"#icon=\"${DATADIR}/davmail.png\"#' \
|
|
${WRKSRC}/build.xml
|
|
|
|
do-install:
|
|
@cd ${WRKSRC}/dist && ${FIND} . -type d \
|
|
-exec ${MKDIR} ${STAGEDIR}${DATADIR}/\{} \;
|
|
@cd ${WRKSRC}/dist && ${FIND} . -type f \
|
|
-not -name "*.deb" \
|
|
-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}/\{} \;
|
|
@${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}/dist/davmail.desktop ${STAGEDIR}${PREFIX}/share/applications/
|
|
|
|
.include <bsd.port.mk>
|