1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-11 02:50:24 +00:00
freebsd-ports/graphics/batik/Makefile
Herve Quiroz 93a957b92b - 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]
2004-12-24 04:26:09 +00:00

52 lines
1.1 KiB
Makefile

# ex:ts=8
# Ports collection makefile for: batik
# Date created: Feb 25, 2004
# Whom: ijliao
#
# $FreeBSD$
#
PORTNAME= batik
PORTVERSION= 1.5.1
PORTREVISION= 1
CATEGORIES= graphics java
MASTER_SITES= ${MASTER_SITE_APACHE_XML}
MASTER_SITE_SUBDIR= ${PORTNAME}
DISTNAME= ${PORTNAME}-src-${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= SVG Toolkit
USE_ZIP= yes
USE_JAVA= yes
JAVA_VERSION= 1.3+
WRKSRC= ${WRKDIR}/xml-${PORTNAME}
USE_ANT= yes
USE_JIKES= no
ALL_TARGET= jars
DATADIR= ${JAVASHAREDIR}/${PORTNAME}
TARGET_DIR= ${WRKSRC}/${PORTNAME}-${PORTVERSION}
.if !defined(NOPORTDOCS)
ALL_TARGET+= html
.endif
.include <bsd.port.pre.mk>
.if ${OSVERSION} < 500000
BROKEN= "Does not compile on 4.x"
.endif
do-install:
cd ${TARGET_DIR} \
&& ${FIND} . -type d -exec ${MKDIR} ${DATADIR}/{} \; \
&& ${FIND} . -type f -exec ${INSTALL_DATA} {} ${DATADIR}/{} \;
post-install:
@${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>