summaryrefslogtreecommitdiff
path: root/textproc/xerces-j
diff options
context:
space:
mode:
authorjoerg <joerg>2009-07-07 20:25:27 +0000
committerjoerg <joerg>2009-07-07 20:25:27 +0000
commit93279e1d5d880a9cb6c21bf1389d159c6159e5ac (patch)
treeac335c0ebabcd57ee27d323f97e1f7bfa7d54d6a /textproc/xerces-j
parentada690c5a8fc3eaea13a1d5ad2720ec10ff5113b (diff)
downloadpkgsrc-93279e1d5d880a9cb6c21bf1389d159c6159e5ac.tar.gz
user-destdir support
Diffstat (limited to 'textproc/xerces-j')
-rw-r--r--textproc/xerces-j/Makefile17
1 files changed, 9 insertions, 8 deletions
diff --git a/textproc/xerces-j/Makefile b/textproc/xerces-j/Makefile
index 6dbaf96b030..6fd78552c80 100644
--- a/textproc/xerces-j/Makefile
+++ b/textproc/xerces-j/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.27 2008/05/26 02:13:24 joerg Exp $
+# $NetBSD: Makefile,v 1.28 2009/07/07 20:29:41 joerg Exp $
#
# Note: we currently use the pre-built (-bin) distribution of Xerces-J,
# because although Xerces runs fine under JDK 1.1, JDK 1.2 or greater is
@@ -14,6 +14,8 @@ MAINTAINER= jwise@NetBSD.org
HOMEPAGE= http://xerces.apache.org/xerces-j/
COMMENT= The Apache Project's validating XML parser with DOM and SAX support
+PKG_DESTDIR_SUPPORT= user-destdir
+
WRKSRC= ${WRKDIR}/xerces-1_2_0
USE_JAVA= run
USE_TOOLS+= pax
@@ -23,14 +25,13 @@ NO_BUILD= yes
post-extract:
chmod -R u+w,go-w ${WRKSRC}
+INSTALLATION_DIRS= lib/java share/doc/java/xerces share/examples/java/xerces
+
do-install:
- ${INSTALL_DATA_DIR} ${PREFIX}/lib/java
- ${INSTALL_DATA} ${WRKSRC}/xerces.jar ${PREFIX}/lib/java
- ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/java/xerces
- cd ${WRKSRC}/docs && pax -rw -pp . ${PREFIX}/share/doc/java/xerces
- ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/java/xerces
- ${INSTALL_DATA} ${WRKSRC}/xercesSamples.jar ${PREFIX}/share/examples/java/xerces
- cd ${WRKSRC}/data && pax -rw -pp . ${PREFIX}/share/examples/java/xerces
+ ${INSTALL_DATA} ${WRKSRC}/xerces.jar ${DESTDIR}${PREFIX}/lib/java
+ cd ${WRKSRC}/docs && pax -rw -pp . ${DESTDIR}${PREFIX}/share/doc/java/xerces
+ ${INSTALL_DATA} ${WRKSRC}/xercesSamples.jar ${DESTDIR}${PREFIX}/share/examples/java/xerces
+ cd ${WRKSRC}/data && pax -rw -pp . ${DESTDIR}${PREFIX}/share/examples/java/xerces
.include "../../mk/java-vm.mk"
.include "../../mk/bsd.pkg.mk"