openbsd-ports/textproc/xerces/Makefile
2016-12-19 16:44:50 +00:00

42 lines
1004 B
Makefile

# $OpenBSD: Makefile,v 1.42 2016/12/19 16:44:50 kurt Exp $
COMMENT= xml parser for Java
V= 2.11.0
DISTNAME= Xerces-J-bin.${V}
PKGNAME= xerces-${V}
CATEGORIES= textproc
HOMEPAGE= http://xml.apache.org/xerces2-j/index.html
# Apache
PERMIT_PACKAGE_CDROM= Yes
MASTER_SITES= http://xml.apache.org/dist/xerces-j/ \
http://xml.apache.org/dist/xerces-j/old_xerces2/
TAR= ${LOCALBASE}/bin/gtar
MODULES= java
MODJAVA_VER= 1.7+
MODJAVA_JRERUN= Yes
BUILD_DEPENDS= archivers/gtar
NO_BUILD= Yes
NO_TEST= Yes
VFLAT= ${V:S/./_/g}
SUBST_VARS= VFLAT
WRKDIST= ${WRKDIR}/xerces-${VFLAT}
do-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/java/classes/xerces-${VFLAT}
${INSTALL_DATA_DIR} ${PREFIX}/share/java/xerces-${VFLAT}
${INSTALL_DATA} ${WRKSRC}/*.jar ${PREFIX}/share/java/classes/xerces-${VFLAT}
cp -R ${WRKSRC}/docs ${PREFIX}/share/java/xerces-${VFLAT}
cp -R ${WRKSRC}/data ${PREFIX}/share/java/xerces-${VFLAT}
cp -R ${WRKSRC}/samples ${PREFIX}/share/java/xerces-${VFLAT}
.include <bsd.port.mk>