pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/audio/mstream DESTDIR support



details:   https://anonhg.NetBSD.org/pkgsrc/rev/8feaf3f522ff
branches:  trunk
changeset: 570561:8feaf3f522ff
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Mon Feb 01 00:40:32 2010 +0000

description:
DESTDIR support

diffstat:

 audio/mstream/Makefile |  18 ++++++++++++------
 1 files changed, 12 insertions(+), 6 deletions(-)

diffs (39 lines):

diff -r bffad8fa9f06 -r 8feaf3f522ff audio/mstream/Makefile
--- a/audio/mstream/Makefile    Mon Feb 01 00:38:36 2010 +0000
+++ b/audio/mstream/Makefile    Mon Feb 01 00:40:32 2010 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.13 2009/05/24 15:53:19 zafer Exp $
+# $NetBSD: Makefile,v 1.14 2010/02/01 00:40:32 joerg Exp $
 #
 
 DISTNAME=      mstream-1.3
@@ -9,18 +9,24 @@
 HOMEPAGE=      http://kimmo.suominen.com/gwradio/
 COMMENT=       Mserv player package to queue tracks to IceS
 
+PKG_DESTDIR_SUPPORT=   user-destdir
+
 DEPENDS+=      ices-mp3>=0.3:../../audio/ices-mp3
 DEPENDS+=      p5-MP3-Info>=1.0:../../audio/p5-MP3-Info
 
 NO_CONFIGURE=  yes
 USE_TOOLS+=    perl:run
 
-DATADIR=       ${LOCALBASE}/share/mstream
-MODDIR=                ${LOCALBASE}/share/ices-mp3
+DATADIR=       ${PREFIX}/share/mstream
+MODDIR=                ${PREFIX}/share/ices-mp3
 
-MAKE_FLAGS+=   PREFIX=${PREFIX:Q}
-MAKE_FLAGS+=   DATADIR=${DATADIR:Q}
-MAKE_FLAGS+=   MODDIR=${MODDIR:Q}
+MAKE_FLAGS+=   PREFIX=${PREFIX}
+MAKE_FLAGS+=   DATADIR=${DATADIR}
+MAKE_FLAGS+=   MODDIR=${MODDIR}
 MAKE_FLAGS+=   PERL=${PERL5:Q}
 
+INSTALL_MAKE_FLAGS+=   PREFIX=${DESTDIR}${PREFIX}
+INSTALL_MAKE_FLAGS+=   DATADIR=${DESTDIR}${DATADIR}
+INSTALL_MAKE_FLAGS+=   MODDIR=${DESTDIR}${MODDIR}
+
 .include "../../mk/bsd.pkg.mk"



Home | Main Index | Thread Index | Old Index