mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 09:49:18 -04:00
- Update to bsd.java.mk 2.0
- Use USE_ANT - Forbid the use of Jikes to build the port - Use INSTALL_DATA to install documentation and JAR files - Honor Porter's handbook guidelines for Java ports: install in DATADIR=${JAVASHAREDIR}/{PORTNAME} [1] - Build dynamic packing list from the distribution files (not from the installed files) to avoid inconsistencies - Bump PORTREVISION Approved by: ijliao [1]
This commit is contained in:
parent
83b062f45a
commit
93a957b92b
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=125032
1 changed files with 18 additions and 17 deletions
|
@ -8,6 +8,7 @@
|
||||||
|
|
||||||
PORTNAME= batik
|
PORTNAME= batik
|
||||||
PORTVERSION= 1.5.1
|
PORTVERSION= 1.5.1
|
||||||
|
PORTREVISION= 1
|
||||||
CATEGORIES= graphics java
|
CATEGORIES= graphics java
|
||||||
MASTER_SITES= ${MASTER_SITE_APACHE_XML}
|
MASTER_SITES= ${MASTER_SITE_APACHE_XML}
|
||||||
MASTER_SITE_SUBDIR= ${PORTNAME}
|
MASTER_SITE_SUBDIR= ${PORTNAME}
|
||||||
|
@ -16,18 +17,18 @@ DISTNAME= ${PORTNAME}-src-${PORTVERSION}
|
||||||
MAINTAINER= ports@FreeBSD.org
|
MAINTAINER= ports@FreeBSD.org
|
||||||
COMMENT= SVG Toolkit
|
COMMENT= SVG Toolkit
|
||||||
|
|
||||||
BUILD_DEPENDS= ${ANT}:${PORTSDIR}/devel/apache-ant
|
|
||||||
|
|
||||||
USE_ZIP= yes
|
USE_ZIP= yes
|
||||||
USE_JAVA= 1.3+
|
USE_JAVA= yes
|
||||||
NEED_JAVAC= yes
|
JAVA_VERSION= 1.3+
|
||||||
WRKSRC= ${WRKDIR}/xml-${PORTNAME}
|
WRKSRC= ${WRKDIR}/xml-${PORTNAME}
|
||||||
ANT?= /usr/local/bin/ant
|
USE_ANT= yes
|
||||||
ANT_ALL_TARGET= jars
|
USE_JIKES= no
|
||||||
BATIK_HOME= ${PREFIX}/batik
|
ALL_TARGET= jars
|
||||||
|
DATADIR= ${JAVASHAREDIR}/${PORTNAME}
|
||||||
|
TARGET_DIR= ${WRKSRC}/${PORTNAME}-${PORTVERSION}
|
||||||
|
|
||||||
.if !defined(NOPORTDOCS)
|
.if !defined(NOPORTDOCS)
|
||||||
ANT_ALL_TARGET+= html
|
ALL_TARGET+= html
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
.include <bsd.port.pre.mk>
|
.include <bsd.port.pre.mk>
|
||||||
|
@ -36,15 +37,15 @@ ANT_ALL_TARGET+= html
|
||||||
BROKEN= "Does not compile on 4.x"
|
BROKEN= "Does not compile on 4.x"
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
do-build:
|
|
||||||
@cd ${WRKSRC} && ${ANT} ${ANT_ALL_TARGET}
|
|
||||||
|
|
||||||
do-install:
|
do-install:
|
||||||
@${MKDIR} ${BATIK_HOME}
|
cd ${TARGET_DIR} \
|
||||||
@${CP} -R ${WRKSRC}/${PORTNAME}-${PORTVERSION} ${BATIK_HOME}
|
&& ${FIND} . -type d -exec ${MKDIR} ${DATADIR}/{} \; \
|
||||||
@${FIND} ${BATIK_HOME} -type f | \
|
&& ${FIND} . -type f -exec ${INSTALL_DATA} {} ${DATADIR}/{} \;
|
||||||
${SED} -e "s,^${PREFIX}/,," >> ${TMPPLIST}
|
|
||||||
@${FIND} ${BATIK_HOME} -type d | ${SORT} -r | \
|
post-install:
|
||||||
${SED} -e "s,^${PREFIX}/,@dirrm ," >> ${TMPPLIST}
|
@${FIND} -s ${TARGET_DIR} -type f | \
|
||||||
|
${SED} -e 's,^${TARGET_DIR},${DATADIR:S,${PREFIX}/,,},' >> ${TMPPLIST}
|
||||||
|
@${FIND} -s -d ${TARGET_DIR} -type d | \
|
||||||
|
${SED} -e 's,^${TARGET_DIR},@dirrm ${DATADIR:S,${PREFIX}/,,},' >> ${TMPPLIST}
|
||||||
|
|
||||||
.include <bsd.port.post.mk>
|
.include <bsd.port.post.mk>
|
||||||
|
|
Loading…
Add table
Reference in a new issue