pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/multimedia/mediatomb Convert to user-destdir.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/5ddf77967686
branches:  trunk
changeset: 396397:5ddf77967686
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Thu Jul 23 12:36:56 2009 +0000

description:
Convert to user-destdir.

diffstat:

 multimedia/mediatomb/Makefile |  12 +++++++-----
 1 files changed, 7 insertions(+), 5 deletions(-)

diffs (40 lines):

diff -r d76a7983e96d -r 5ddf77967686 multimedia/mediatomb/Makefile
--- a/multimedia/mediatomb/Makefile     Thu Jul 23 12:20:39 2009 +0000
+++ b/multimedia/mediatomb/Makefile     Thu Jul 23 12:36:56 2009 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.11 2009/07/23 08:28:41 tron Exp $
+# $NetBSD: Makefile,v 1.12 2009/07/23 12:36:56 wiz Exp $
 
 DISTNAME=      mediatomb-0.11.0
 PKGREVISION=   6
@@ -10,6 +10,8 @@
 COMMENT=       UPnP MediaServer with a web user interface
 LICENSE=       gnu-gpl-v2
 
+PKG_DESTDIR_SUPPORT=   user-destdir
+
 GNU_CONFIGURE= yes
 
 USE_LANGUAGES+=        c c++
@@ -42,7 +44,7 @@
 SUBST_VARS.config=     MEDIATOMB_HOME PREFIX OPSYS
 SUBST_STAGE.config=    post-patch
 
-INSTALLATION_DIRS+=    share/applications
+INSTALLATION_DIRS+=    share/applications share/examples/mediatomb
 
 post-extract:
        ${CP} ${FILESDIR}/config.xml.in ${WRKSRC}/config.xml
@@ -52,9 +54,9 @@
        cd ${WRKSRC} && autoreconf -i
 
 post-install:
-       ${INSTALL_DATA_DIR} ${EGDIR}
-       ${INSTALL_DATA} ${WRKSRC}/config.xml ${EGDIR}/config.xml
-       ${INSTALL_DATA} ${WRKSRC}/mediatomb.desktop ${PREFIX}/share/applications/mediatomb.desktop
+       ${INSTALL_DATA} ${WRKSRC}/config.xml ${DESTDIR}${EGDIR}/config.xml
+       ${INSTALL_DATA} ${WRKSRC}/mediatomb.desktop \
+               ${DESTDIR}${PREFIX}/share/applications/mediatomb.desktop
 
 PREFER.bind=   pkgsrc  # we need the package for the lwres lib
 



Home | Main Index | Thread Index | Old Index