pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/audio Added support for installation to DESTDIR.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/09caba663bb6
branches:  trunk
changeset: 537956:09caba663bb6
user:      heinz <heinz%pkgsrc.org@localhost>
date:      Mon Jan 21 21:19:41 2008 +0000

description:
Added support for installation to DESTDIR.
No compiler necessary.

diffstat:

 audio/eawpatches/Makefile |  15 +++++++++------
 audio/guspatches/Makefile |  26 ++++++++++++++++----------
 2 files changed, 25 insertions(+), 16 deletions(-)

diffs (82 lines):

diff -r b1f71fc1664e -r 09caba663bb6 audio/eawpatches/Makefile
--- a/audio/eawpatches/Makefile Mon Jan 21 21:07:29 2008 +0000
+++ b/audio/eawpatches/Makefile Mon Jan 21 21:19:41 2008 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.20 2007/02/22 16:42:10 drochner Exp $
+# $NetBSD: Makefile,v 1.21 2008/01/21 21:19:41 heinz Exp $
 #
 
 DISTNAME=      eawpats12_full
@@ -13,11 +13,14 @@
 RESTRICTED=    Some patches are copyrighted, some marked no-commercial-use
 NO_BIN_ON_FTP=         ${RESTRICTED}
 NO_BIN_ON_CDROM=       ${RESTRICTED}
-LICENSE=       generic-nonlicense
+LICENSE=               generic-nonlicense
+
+PKG_DESTDIR_SUPPORT=   user-destdir
 
-WRKSRC=                ${WRKDIR}
-NO_BUILD=      yes
-MESSAGE_SUBST+=        PKG_SYSCONFDIR=${PKG_SYSCONFDIR}
+WRKSRC=                        ${WRKDIR}
+NO_BUILD=              yes
+USE_LANGUAGES=         # empty
+MESSAGE_SUBST+=                PKG_SYSCONFDIR=${PKG_SYSCONFDIR}
 
 post-extract:
        chmod go-w ${WRKSRC}/eawpats/gravis.cfg
@@ -30,6 +33,6 @@
                ${WRKSRC}/eawpats/winconfig
 
 do-install:
-       cd ${WRKSRC} && pax -wr eawpats ${PREFIX}/share
+       cd ${WRKSRC} && pax -wr eawpats ${DESTDIR}${PREFIX}/share
 
 .include "../../mk/bsd.pkg.mk"
diff -r b1f71fc1664e -r 09caba663bb6 audio/guspatches/Makefile
--- a/audio/guspatches/Makefile Mon Jan 21 21:07:29 2008 +0000
+++ b/audio/guspatches/Makefile Mon Jan 21 21:19:41 2008 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.17 2007/02/22 19:26:05 wiz Exp $
+# $NetBSD: Makefile,v 1.18 2008/01/21 21:21:50 heinz Exp $
 #
 
 DISTNAME=      dgguspat
@@ -15,10 +15,12 @@
 NO_BIN_ON_FTP=         ${RESTRICTED}
 NO_BIN_ON_CDROM=       ${RESTRICTED}
 
-EXTRACT_ONLY=  # empty
-NO_BUILD=      yes
-USE_TOOLS+=    unzip
-MESSAGE_SUBST+=        PKG_SYSCONFDIR=${PKG_SYSCONFDIR:Q}
+PKG_DESTDIR_SUPPORT=   user-destdir
+EXTRACT_ONLY=          # empty
+NO_BUILD=              yes
+USE_LANGUAGES=         # empty
+USE_TOOLS+=            unzip
+MESSAGE_SUBST+=                PKG_SYSCONFDIR=${PKG_SYSCONFDIR:Q}
 
 do-configure:
        ${SED} "s|@PREFIX@|${PREFIX}|" < ${FILESDIR}/gravis.cfg > \
@@ -27,10 +29,14 @@
                ${WRKDIR}/timidity.cfg
 
 do-install:
-       ${INSTALL_DATA_DIR} ${PREFIX}/share/guspatches
-       cd ${PREFIX}/share/guspatches && unzip -oqL ${DISTDIR}/${DISTFILES}
-       ${INSTALL_DATA} ${FILESDIR}/midia.cfg ${PREFIX}/share/guspatches
-       ${INSTALL_DATA} ${WRKDIR}/gravis.cfg ${PREFIX}/share/guspatches
-       ${INSTALL_DATA} ${WRKDIR}/timidity.cfg ${PREFIX}/share/guspatches
+       ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/guspatches
+       cd ${DESTDIR}${PREFIX}/share/guspatches && \
+               unzip -oqL ${DISTDIR}/${DISTFILES}
+       ${INSTALL_DATA} ${FILESDIR}/midia.cfg \
+               ${DESTDIR}${PREFIX}/share/guspatches
+       ${INSTALL_DATA} ${WRKDIR}/gravis.cfg \
+               ${DESTDIR}${PREFIX}/share/guspatches
+       ${INSTALL_DATA} ${WRKDIR}/timidity.cfg \
+               ${DESTDIR}${PREFIX}/share/guspatches
 
 .include "../../mk/bsd.pkg.mk"



Home | Main Index | Thread Index | Old Index