DESTDIR support.

This commit is contained in:
ndb 2012-09-30 10:04:56 +00:00 committed by Thomas Klausner
parent cfb839c26f
commit 9333f737a9

View file

@ -1,9 +1,9 @@
# $NetBSD: Makefile,v 1.8 2012/09/24 16:56:39 asau Exp $
# $NetBSD: Makefile,v 1.9 2012/09/30 10:04:56 noud4 Exp $
#
DISTNAME= artemis_compiled_v6
PKGNAME= artemis-6
PKGREVISION= 1
PKGREVISION= 2
CATEGORIES= biology
MASTER_SITES= ftp://ftp.sanger.ac.uk/pub/pathogens/software/artemis/v6/
@ -17,10 +17,12 @@ USE_JAVA= yes
USE_JAVA2= yes
NO_BUILD= yes
INSTALL_DIR= ${PREFIX}/share/Artemis
INSTALL_DIR= ${DESTDIR}${PREFIX}/share/Artemis
USE_TOOLS+= gtar pax
INSTALLATION_DIRS= bin
do-install:
${INSTALL_DATA_DIR} ${INSTALL_DIR}
cd ${WRKSRC} && pax -rw . -s ',.*/CVS$$,,' -s ',.*/CVS/.*,,' ${INSTALL_DIR:Q}
@ -29,8 +31,8 @@ do-install:
-e 's:@INSTALL_DIR@:${INSTALL_DIR}:'
${SED} < ${FILESDIR}/art > ${WRKSRC}/qwerty/art \
-e 's:@INSTALL_DIR@:${INSTALL_DIR}:'
${INSTALL_SCRIPT} ${WRKSRC}/qwerty/art ${PREFIX}/bin/art
${INSTALL_SCRIPT} ${WRKSRC}/qwerty/act ${PREFIX}/bin/act
${INSTALL_SCRIPT} ${WRKSRC}/qwerty/art ${DESTDIR}${PREFIX}/bin/art
${INSTALL_SCRIPT} ${WRKSRC}/qwerty/act ${DESTDIR}${PREFIX}/bin/act
.include "../../mk/java-vm.mk"
.include "../../mk/bsd.pkg.mk"