From 41d1c72eb6be8f27c07c1dd92cd44668e8dd6736 Mon Sep 17 00:00:00 2001 From: joerg Date: Wed, 8 Jul 2009 15:26:26 +0000 Subject: user-destdir support --- biology/rasmol/Makefile | 10 ++++++---- cad/dinotrace/Makefile | 4 +++- cad/dinotrace/distinfo | 3 ++- cad/dinotrace/patches/patch-ab | 27 +++++++++++++++++++++++++++ cad/electric/Makefile | 8 +++++--- 5 files changed, 43 insertions(+), 9 deletions(-) create mode 100644 cad/dinotrace/patches/patch-ab diff --git a/biology/rasmol/Makefile b/biology/rasmol/Makefile index 40575cfe575..41241651d6b 100644 --- a/biology/rasmol/Makefile +++ b/biology/rasmol/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.29 2007/01/11 11:38:50 joerg Exp $ +# $NetBSD: Makefile,v 1.30 2009/07/08 15:26:26 joerg Exp $ DISTNAME= RasMol_2.7.3 PKGNAME= rasmol-2.7.3 @@ -10,6 +10,8 @@ MAINTAINER= pkgsrc-users@NetBSD.org HOMEPAGE= http://www.bernstein-plus-sons.com/software/rasmol/ COMMENT= Molecular Graphics Visualisation Tool +PKG_DESTDIR_SUPPORT= user-destdir + WRKSRC= ${WRKDIR}/${DISTNAME}/src USE_IMAKE= YES USE_TOOLS+= gunzip mkdirhier @@ -38,20 +40,20 @@ pre-configure: rasmol.h.new && ${MV} rasmol.h.new rasmol.h post-install: - ${INSTALL_DATA} ${WRKDIR}/${DISTNAME}/NOTICE ${PREFIX}/share/doc/rasmol + ${INSTALL_DATA} ${WRKDIR}/${DISTNAME}/NOTICE ${DESTDIR}${PREFIX}/share/doc/rasmol for doc in manualA4.pdf.gz manualA4.ps.gz manualA4.rtf.gz \ manualUS.pdf.gz manualUS.ps.gz manualUS.rtf.gz \ refcardA4.pdf.gz refcardA4.ps.gz \ refcardA4.rtf.gz refcardUS.pdf.gz \ refcardUS.ps.gz refcardUS.rtf.gz; do \ ${INSTALL_DATA} ${WRKDIR}/${DISTNAME}/doc/$$doc \ - ${PREFIX}/share/doc/rasmol; \ + ${DESTDIR}${PREFIX}/share/doc/rasmol; \ done for data in 1crn.pdb 1gpd.pdb.gz 1ldb.pdb.gz 1ldm.pdb.gz \ 3cro.pdb 4hir.ent.gz 4ins.CIF 7lyz.pdb \ IUCR9800028.cif asprin.alc pdb2mcg.ent; do \ ${INSTALL_DATA} ${WRKDIR}/${DISTNAME}/data/$$data \ - ${PREFIX}/share/examples/rasmol; \ + ${DESTDIR}${PREFIX}/share/examples/rasmol; \ done .include "../../x11/libXext/buildlink3.mk" diff --git a/cad/dinotrace/Makefile b/cad/dinotrace/Makefile index b833f50760e..32e90d8fba7 100644 --- a/cad/dinotrace/Makefile +++ b/cad/dinotrace/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.40 2007/03/02 02:44:13 dmcmahill Exp $ +# $NetBSD: Makefile,v 1.41 2009/07/08 15:26:49 joerg Exp $ # DISTNAME= dinotrace-9.3c @@ -10,6 +10,8 @@ MAINTAINER= dmcmahill@NetBSD.org HOMEPAGE= http://www.veripool.com/dinotrace/ COMMENT= Tool for viewing the output of digital simulators +PKG_DESTDIR_SUPPORT= user-destdir + GNU_CONFIGURE= YES INFO_FILES= YES USE_TOOLS+= gmake perl diff --git a/cad/dinotrace/distinfo b/cad/dinotrace/distinfo index 37ac75a818d..4f6c400f7bd 100644 --- a/cad/dinotrace/distinfo +++ b/cad/dinotrace/distinfo @@ -1,6 +1,7 @@ -$NetBSD: distinfo,v 1.12 2007/03/02 02:44:13 dmcmahill Exp $ +$NetBSD: distinfo,v 1.13 2009/07/08 15:26:49 joerg Exp $ SHA1 (dinotrace-9.3c.tgz) = ed37f7fde4f69d42ee3904d363b35fd1be0a44bc RMD160 (dinotrace-9.3c.tgz) = 545d60ef99e7e878cc9380fef805deca6ad77cce Size (dinotrace-9.3c.tgz) = 521395 bytes SHA1 (patch-aa) = abe6d33f6788b6aaf418c0cc68bbd10dee44294b +SHA1 (patch-ab) = dc03d89769f987c55a3436fd3f665729ce4d0995 diff --git a/cad/dinotrace/patches/patch-ab b/cad/dinotrace/patches/patch-ab new file mode 100644 index 00000000000..ac1fb3398cd --- /dev/null +++ b/cad/dinotrace/patches/patch-ab @@ -0,0 +1,27 @@ +$NetBSD: patch-ab,v 1.4 2009/07/08 15:26:49 joerg Exp $ + +--- Makefile.in.orig 2009-07-08 17:24:49.000000000 +0200 ++++ Makefile.in +@@ -156,11 +156,11 @@ dinotrace.dvi: dinotrace.texi + $(TEXI2DVI) $(srcdir)/dinotrace.texi + + installdirs: +- $(SHELL) ${srcdir}/mkinstalldirs $(bindir) $(infodir) ++ $(SHELL) ${srcdir}/mkinstalldirs ${DESTDIR}$(bindir) ${DESTDIR}$(infodir) + + install: all info installdirs install-info + for p in dinotrace; do \ +- $(INSTALL_PROGRAM) $$p $(bindir)/$$p; \ ++ $(INSTALL_PROGRAM) $$p ${DESTDIR}$(bindir)/$$p; \ + done + @echo "" + @echo "*** Lisp files not installed, you may want to" +@@ -171,7 +171,7 @@ install: all info installdirs install-in + # Don't cd, to avoid breaking install-sh references. + install-info: info installdirs + for i in *.info*; do \ +- $(INSTALL_DATA) $$i $(infodir)/$$i; \ ++ $(INSTALL_DATA) $$i ${DESTDIR}$(infodir)/$$i; \ + done + + uninstall: diff --git a/cad/electric/Makefile b/cad/electric/Makefile index 05a0db9e4fc..f8a6714f33b 100644 --- a/cad/electric/Makefile +++ b/cad/electric/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.16 2007/05/09 02:42:25 dmcmahill Exp $ +# $NetBSD: Makefile,v 1.17 2009/07/08 15:35:48 joerg Exp $ # DISTNAME= electric-7.00 @@ -10,6 +10,8 @@ MAINTAINER= pkgsrc-users@NetBSD.org HOMEPAGE= http://www.gnu.org/software/electric/electric.html COMMENT= Electrical CAD system +PKG_DESTDIR_SUPPORT= user-destdir + GNU_CONFIGURE= YES USE_LANGUAGES= c c++ @@ -20,8 +22,8 @@ post-patch: < ${WRKSRC}/src/include/config.h.bak \ > ${WRKSRC}/src/include/config.h -post-install: - cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} install.html +INSTALL_TARGET= install install.html +INSTALLATION_DIRS= bin .include "../../mk/motif.buildlink3.mk" .include "../../mk/pthread.buildlink3.mk" -- cgit v1.2.3