aboutsummaryrefslogtreecommitdiff
path: root/graphics/batik/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/batik/Makefile')
-rw-r--r--graphics/batik/Makefile34
1 files changed, 16 insertions, 18 deletions
diff --git a/graphics/batik/Makefile b/graphics/batik/Makefile
index c35a513de019..31d0a958c26b 100644
--- a/graphics/batik/Makefile
+++ b/graphics/batik/Makefile
@@ -2,42 +2,40 @@
# $FreeBSD$
PORTNAME= batik
-PORTVERSION= 1.7
-PORTREVISION= 3
+PORTVERSION= 1.11
CATEGORIES= graphics java
-MASTER_SITES= APACHE/xmlgraphics/${PORTNAME}
-DISTFILES= ${PORTNAME}-src-${PORTVERSION}${EXTRACT_SUFX}
+MASTER_SITES= APACHE/xmlgraphics/${PORTNAME}/binaries
+DISTNAME= ${PORTNAME}-bin-${PORTVERSION}
MAINTAINER= makc@FreeBSD.org
COMMENT= Java based SVG toolkit
LICENSE= APACHE20
+LICENSE_FILE= ${WRKSRC}/LICENSE
CPE_VENDOR= apache
-USES= cpe zip
-USE_JAVA= 1.6+
-USE_ANT= yes
-ALL_TARGET= jars all-jar
-# Prevent out of memory error during build
-MAKE_ENV+= "ANT_OPTS=-Xmx512m"
+USES= cpe
+USE_JAVA= 1.7+
+
+NO_ARCH= yes
+NO_BUILD= yes
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
-INSTALL_WRKSRC= ${WRKSRC}/${PORTNAME}-${PORTVERSION}
-DATADIR= ${JAVASHAREDIR}/${PORTNAME}
+JAVAJARDIR= ${JAVASHAREDIR}/${PORTNAME}
+
+PLIST_SUB= VERSION=${PORTVERSION}
-PORTDOCS= *
-DOC_FILES1= CHANGES NOTICE README
+PORTDOCS= CHANGES NOTICE README
OPTIONS_DEFINE= DOCS
-DOCS_DISTFILES= ${PORTNAME}-docs-${PORTVERSION}${EXTRACT_SUFX}
do-install:
- (cd ${INSTALL_WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR})
+ (cd ${INSTALL_WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${JAVAJARDIR} "-name *\.jar")
+ (cd ${STAGEDIR}${JAVAJARDIR}/lib && ${LN} batik-all-${PORTVERSION}.jar batik-all.jar)
do-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
- ${INSTALL_DATA} ${DOC_FILES1:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
- (cd ${WRKDIR}/docs && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR})
+ (cd ${INSTALL_WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR})
.include <bsd.port.mk>