summaryrefslogtreecommitdiff
path: root/multimedia
diff options
context:
space:
mode:
authorjlam <jlam>2008-03-04 19:32:30 +0000
committerjlam <jlam>2008-03-04 19:32:30 +0000
commit05429946f7145ae1023594943f5884ac9703c8aa (patch)
treebe7fb221de1b1a2204c821c7626a52e6f564036b /multimedia
parent476429c9f7b93362ea027fafcaa1bb835868c0d1 (diff)
downloadpkgsrc-05429946f7145ae1023594943f5884ac9703c8aa.tar.gz
Mechanical changes to add DESTDIR support to packages that install
their files via a custom do-install target.
Diffstat (limited to 'multimedia')
-rw-r--r--multimedia/divxplayer/Makefile14
-rw-r--r--multimedia/dvdbackup/Makefile9
-rw-r--r--multimedia/ggrab/Makefile14
-rw-r--r--multimedia/gmplayer/Makefile22
-rw-r--r--multimedia/gtranscode/Makefile6
-rw-r--r--multimedia/libflashsupport/Makefile8
-rw-r--r--multimedia/libmpeg3/Makefile22
-rw-r--r--multimedia/mmg/Makefile15
-rw-r--r--multimedia/mpeg_encode/Makefile21
-rw-r--r--multimedia/mplayer-plugin-firefox/Makefile.common18
-rw-r--r--multimedia/ns-flash/Makefile8
-rw-r--r--multimedia/regionset/Makefile5
12 files changed, 93 insertions, 69 deletions
diff --git a/multimedia/divxplayer/Makefile b/multimedia/divxplayer/Makefile
index bdbe4a01282..bc874d7656d 100644
--- a/multimedia/divxplayer/Makefile
+++ b/multimedia/divxplayer/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.12 2007/07/29 05:19:45 jlam Exp $
+# $NetBSD: Makefile,v 1.13 2008/03/04 19:32:30 jlam Exp $
DISTNAME= divx-player-installer
PKGNAME= divxplayer-0.2.0
@@ -15,6 +15,8 @@ DIST_SUBDIR= ${PKGNAME_NOREV}
EMUL_PLATFORMS= linux-i386
EMUL_MODULES.linux= x11
+PKG_DESTDIR_SUPPORT= user-destdir
+
WRKSRC= ${WRKDIR}/divx-player-installer
BUILD_DIRS= # empty
@@ -28,11 +30,11 @@ post-patch:
> ${WRKDIR}/frontend.sh
do-install:
- ${MKDIR} ${DATADIR}
- ${MKDIR} ${DATADIR}/Skins
- ${INSTALL_DATA} ${WRKSRC}/Skins/* ${DATADIR}/Skins
- ${INSTALL_PROGRAM} ${WRKSRC}/${BINARY} ${PREFIX}/bin
+ ${MKDIR} ${DESTDIR}${DATADIR}
+ ${MKDIR} ${DESTDIR}${DATADIR}/Skins
+ ${INSTALL_DATA} ${WRKSRC}/Skins/* ${DESTDIR}${DATADIR}/Skins
+ ${INSTALL_PROGRAM} ${WRKSRC}/${BINARY} ${DESTDIR}${PREFIX}/bin
${INSTALL_SCRIPT} ${WRKDIR}/frontend.sh \
- ${PREFIX}/bin/${BINARY:S/.bin$//}
+ ${DESTDIR}${PREFIX}/bin/${BINARY:S/.bin$//}
.include "../../mk/bsd.pkg.mk"
diff --git a/multimedia/dvdbackup/Makefile b/multimedia/dvdbackup/Makefile
index 8fd5d8d8ff4..7a3ab563b9d 100644
--- a/multimedia/dvdbackup/Makefile
+++ b/multimedia/dvdbackup/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.2 2006/10/18 01:16:53 wiz Exp $
+# $NetBSD: Makefile,v 1.3 2008/03/04 19:32:30 jlam Exp $
DISTNAME= dvdbackup-0.1.1
PKGREVISION= 4
@@ -9,6 +9,8 @@ MAINTAINER= wulf@NetBSD.org
HOMEPAGE= http://dvd-create.sourceforge.net/
COMMENT= DVD backup utility
+PKG_DESTDIR_SUPPORT= user-destdir
+
WRKSRC= ${WRKDIR}/dvdbackup/src
INSTALLATION_DIRS= bin
@@ -19,8 +21,9 @@ do-build:
do-install:
cd ${WRKSRC}; \
- ${INSTALL_PROGRAM} dvdbackup ${PREFIX}/bin;
- ${INSTALL_MAN} ${FILESDIR}/dvdbackup.1 ${PREFIX}/${PKGMANDIR}/man1
+ ${INSTALL_PROGRAM} dvdbackup ${DESTDIR}${PREFIX}/bin;
+ ${INSTALL_MAN} ${FILESDIR}/dvdbackup.1 \
+ ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
.include "../../multimedia/libdvdread/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/multimedia/ggrab/Makefile b/multimedia/ggrab/Makefile
index 9975dd5c379..95243b3242f 100644
--- a/multimedia/ggrab/Makefile
+++ b/multimedia/ggrab/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.2 2006/04/09 19:35:10 joerg Exp $
+# $NetBSD: Makefile,v 1.3 2008/03/04 19:32:30 jlam Exp $
#
DISTNAME= ${PKGNAME}-linux
@@ -11,19 +11,19 @@ MAINTAINER= tech-pkg@NetBSD.org
HOMEPAGE= http://www.menzebach.de/ggrab/
COMMENT= Server for recording video streams from dream dvb-receivers
+PKG_DESTDIR_SUPPORT= user-destdir
+
USE_LANGUAGES= c++
WRKSRC= ${WRKDIR}/ggrab-0.22a
RCD_SCRIPTS= sserver
-EGDIR= ${PREFIX}/share/examples/${PKGBASE}
DOCDIR= ${PREFIX}/share/doc/${PKGBASE}
do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/ggrab ${PREFIX}/bin
- ${INSTALL_PROGRAM} ${WRKSRC}/sserver ${PREFIX}/bin
- ${INSTALL_DATA_DIR} ${DOCDIR}
- ${INSTALL_DATA} ${WRKSRC}/README ${DOCDIR}/
- ${INSTALL_DATA_DIR} ${EGDIR}
+ ${INSTALL_PROGRAM} ${WRKSRC}/ggrab ${DESTDIR}${PREFIX}/bin
+ ${INSTALL_PROGRAM} ${WRKSRC}/sserver ${DESTDIR}${PREFIX}/bin
+ ${INSTALL_DATA_DIR} ${DESTDIR}${DOCDIR}
+ ${INSTALL_DATA} ${WRKSRC}/README ${DESTDIR}${DOCDIR}/
.include "../../mk/pthread.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/multimedia/gmplayer/Makefile b/multimedia/gmplayer/Makefile
index 08a0cc1f899..d0efc28b05e 100644
--- a/multimedia/gmplayer/Makefile
+++ b/multimedia/gmplayer/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.67 2008/02/05 17:00:37 drochner Exp $
+# $NetBSD: Makefile,v 1.68 2008/03/04 19:32:30 jlam Exp $
#
# NOTE: if you are updating both mplayer and gmplayer, you must ensure
@@ -22,6 +22,8 @@ SKIN_SITES= http://www1.mplayerhq.hu/MPlayer/skins/ \
ftp://ftp.freebsd.org/pub/FreeBSD/ports/distfiles/mplayer/ \
${MASTER_SITE_LOCAL:=mplayer/}
+PKG_DESTDIR_SUPPORT= user-destdir
+
.include "../../multimedia/mplayer-share/Makefile.common"
COMMENT= Software only MPEG-1/2/4 video decoder with a GTK+ interface
@@ -65,19 +67,19 @@ CONFIGURE_ARGS+= --enable-gui --disable-mencoder \
INSTALLATION_DIRS= bin
do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/mplayer ${PREFIX}/bin/gmplayer
- ${INSTALL_DATA_DIR} ${PREFIX}/share/mplayer/Skin
+ ${INSTALL_PROGRAM} ${WRKSRC}/mplayer ${DESTDIR}${PREFIX}/bin/gmplayer
+ ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/mplayer/Skin
.for skin in ${SKINS}
@${ECHO_MSG} "Installing skin ${skin}..."
${BZCAT} ${DISTDIR}/${DIST_SUBDIR}/${skin} | \
- ${GTAR} xCmf ${PREFIX}/share/mplayer/Skin -
+ ${GTAR} xCmf ${DESTDIR}${PREFIX}/share/mplayer/Skin -
.endfor
- ${CHMOD} -R a+r ${PREFIX}/share/mplayer/Skin
- ${CHMOD} a+rx ${PREFIX}/share/mplayer/Skin/*
- ${RM} -f ${PREFIX}/share/mplayer/Skin/default
- ${LN} -s Blue ${PREFIX}/share/mplayer/Skin/default
- ${RM} -rf ${PREFIX}/share/mplayer/Skin/Blue/.svn
- ${RM} -rf ${PREFIX}/share/mplayer/Skin/Blue/icons/.svn
+ ${CHMOD} -R a+r ${DESTDIR}${PREFIX}/share/mplayer/Skin
+ ${CHMOD} a+rx ${DESTDIR}${PREFIX}/share/mplayer/Skin/*
+ ${RM} -f ${DESTDIR}${PREFIX}/share/mplayer/Skin/default
+ ${LN} -s Blue ${DESTDIR}${PREFIX}/share/mplayer/Skin/default
+ ${RM} -rf ${DESTDIR}${PREFIX}/share/mplayer/Skin/Blue/.svn
+ ${RM} -rf ${DESTDIR}${PREFIX}/share/mplayer/Skin/Blue/icons/.svn
.include "../../multimedia/libdvdnav/buildlink3.mk"
.include "../../x11/gtk2/buildlink3.mk"
diff --git a/multimedia/gtranscode/Makefile b/multimedia/gtranscode/Makefile
index 1baef79c610..24e0b54a9b1 100644
--- a/multimedia/gtranscode/Makefile
+++ b/multimedia/gtranscode/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.3 2006/10/04 21:50:08 wiz Exp $
+# $NetBSD: Makefile,v 1.4 2008/03/04 19:32:30 jlam Exp $
#
DISTNAME= gtranscode-v0.3
@@ -13,12 +13,14 @@ COMMENT= GTK+ GUI front-end for transcode
DEPENDS+= transcode-[0-9]*:../../multimedia/transcode
+PKG_DESTDIR_SUPPORT= user-destdir
+
WRKSRC= ${WRKDIR}/gtranscode
INSTALLATION_DIRS= bin
do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/gtranscode ${PREFIX}/bin
+ ${INSTALL_PROGRAM} ${WRKSRC}/gtranscode ${DESTDIR}${PREFIX}/bin
.include "../../x11/gtk/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/multimedia/libflashsupport/Makefile b/multimedia/libflashsupport/Makefile
index 135887b3c49..8409d061f34 100644
--- a/multimedia/libflashsupport/Makefile
+++ b/multimedia/libflashsupport/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.7 2007/08/23 18:20:33 jlam Exp $
+# $NetBSD: Makefile,v 1.8 2008/03/04 19:32:30 jlam Exp $
PKGNAME= libflashsupport-1.0.2098
DISTNAME= libflashsupport-1-0-2098-i586
@@ -19,6 +19,8 @@ EMUL_PKG_FMT= rpm
RPM2PKG_STRIP= 3
RPM2PKG_PLIST= # empty
+PKG_DESTDIR_SUPPORT= user-destdir
+
WRKSRC= ${WRKDIR}
BUILD_DIRS= # empty
@@ -26,8 +28,8 @@ INSTALLATION_DIRS= share/doc
do-install:
${INSTALL_LIB} ${WRKDIR}/libflashsupport.so \
- ${PREFIX}/${EMULSUBDIR}/usr/lib
+ ${DESTDIR}${PREFIX}/${EMULSUBDIR}/usr/lib
${INSTALL_DATA} ${WRKDIR}/doc/libflashsupport-1.0/README \
- ${PREFIX}/share/doc/libflashsupport.README
+ ${DESTDIR}${PREFIX}/share/doc/libflashsupport.README
.include "../../mk/bsd.pkg.mk"
diff --git a/multimedia/libmpeg3/Makefile b/multimedia/libmpeg3/Makefile
index d9b87b133f2..b79159447ae 100644
--- a/multimedia/libmpeg3/Makefile
+++ b/multimedia/libmpeg3/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.9 2008/02/20 09:56:44 xtraeme Exp $
+# $NetBSD: Makefile,v 1.10 2008/03/04 19:32:30 jlam Exp $
#
DISTNAME= libmpeg3-1.7-src
@@ -12,6 +12,8 @@ MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://heroines.sourceforge.net/libmpeg3.php3
COMMENT= MPEG decoding library
+PKG_DESTDIR_SUPPORT= user-destdir
+
.include "../../mk/bsd.prefs.mk"
.if (${MACHINE_ARCH} == "i386")
@@ -49,26 +51,26 @@ INSTALLATION_DIRS= bin lib
do-install:
for f in ${INSTBINS}; do \
- ${INSTALL_PROGRAM} ${WRKSRC}/work/$$f ${PREFIX}/bin; \
+ ${INSTALL_PROGRAM} ${WRKSRC}/work/$$f ${DESTDIR}${PREFIX}/bin; \
done
${INSTALL_DATA_DIR} ${PREFIX}/include/mpeg3
for f in ${INSTHDRS}; do \
- ${INSTALL_DATA} ${WRKSRC}/$$f ${PREFIX}/include/mpeg3; \
+ ${INSTALL_DATA} ${WRKSRC}/$$f ${DESTDIR}${PREFIX}/include/mpeg3; \
done
- ${INSTALL_DATA_DIR} ${PREFIX}/include/mpeg3/audio
+ ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/include/mpeg3/audio
for f in ${AINSTHDRS}; do \
${INSTALL_DATA} ${WRKSRC}/audio/$$f \
- ${PREFIX}/include/mpeg3/audio; \
+ ${DESTDIR}${PREFIX}/include/mpeg3/audio; \
done
- ${INSTALL_DATA_DIR} ${PREFIX}/include/mpeg3/video
+ ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/include/mpeg3/video
for f in ${VINSTHDRS}; do \
${INSTALL_DATA} ${WRKSRC}/video/$$f \
- ${PREFIX}/include/mpeg3/video; \
+ ${DESTDIR}${PREFIX}/include/mpeg3/video; \
done
- ${INSTALL_LIB} ${WRKSRC}/work/libmpeg3.a ${PREFIX}/lib
- ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/html/libmpeg3
+ ${INSTALL_LIB} ${WRKSRC}/work/libmpeg3.a ${DESTDIR}${PREFIX}/lib
+ ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/doc/html/libmpeg3
${INSTALL_DATA} ${WRKSRC}/docs/index.html \
- ${PREFIX}/share/doc/html/libmpeg3
+ ${DESTDIR}${PREFIX}/share/doc/html/libmpeg3
.include "../../mk/pthread.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/multimedia/mmg/Makefile b/multimedia/mmg/Makefile
index fb9b102ca94..1443c5a23c8 100644
--- a/multimedia/mmg/Makefile
+++ b/multimedia/mmg/Makefile
@@ -1,6 +1,8 @@
-# $NetBSD: Makefile,v 1.26 2007/02/22 19:26:51 wiz Exp $
+# $NetBSD: Makefile,v 1.27 2008/03/04 19:32:30 jlam Exp $
#
+PKG_DESTDIR_SUPPORT= user-destdir
+
.include "../../multimedia/mkvtoolnix/Makefile.dist"
PKGNAME= ${DISTNAME:S/mkvtoolnix/mmg/}
@@ -27,13 +29,14 @@ SUBST_MESSAGE.man= Fixing paths in manual page.
INSTALLATION_DIRS= bin ${PKGMANDIR}/man1
do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/src/mmg/mmg ${PREFIX}/bin/
- ${INSTALL_MAN} ${WRKSRC}/doc/mmg.1 ${PREFIX}/${PKGMANDIR}/man1/
- ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/mmg/images/
+ ${INSTALL_PROGRAM} ${WRKSRC}/src/mmg/mmg ${DESTDIR}${PREFIX}/bin/
+ ${INSTALL_MAN} ${WRKSRC}/doc/mmg.1 \
+ ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/
+ ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/doc/mmg/images/
${INSTALL_DATA} ${WRKSRC}/doc/images/*.gif \
- ${PREFIX}/share/doc/mmg/images/
+ ${DESTDIR}${PREFIX}/share/doc/mmg/images/
${INSTALL_DATA} ${WRKSRC}/doc/mkvmerge-gui.* \
- ${PREFIX}/share/doc/mmg/
+ ${DESTDIR}${PREFIX}/share/doc/mmg/
.include "../../converters/libiconv/buildlink3.mk"
.include "../../devel/libebml/buildlink3.mk"
diff --git a/multimedia/mpeg_encode/Makefile b/multimedia/mpeg_encode/Makefile
index 990796b788b..99238f1c1b0 100644
--- a/multimedia/mpeg_encode/Makefile
+++ b/multimedia/mpeg_encode/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.12 2007/01/07 09:14:01 rillig Exp $
+# $NetBSD: Makefile,v 1.13 2008/03/04 19:32:30 jlam Exp $
#
DISTNAME= mpeg_encode-1.5b-src
@@ -11,6 +11,8 @@ MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://bmrc.berkeley.edu/frame/research/mpeg/mpeg_encode.html
COMMENT= The Parallel Berkeley MPEG Encoder
+PKG_DESTDIR_SUPPORT= user-destdir
+
WRKSRC= ${WRKDIR}/mpeg_encode
USE_TOOLS+= gmake
INSTALLATION_DIRS= bin ${PKGMANDIR}/man1
@@ -20,20 +22,23 @@ post-build:
${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} ${MAKE_FLAGS}
do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/mpeg_encode ${PREFIX}/bin
+ ${INSTALL_PROGRAM} ${WRKSRC}/mpeg_encode ${DESTDIR}${PREFIX}/bin
.for i in eyuvtojpeg jmovie2jpeg mpeg_demux
- ${INSTALL_PROGRAM} ${WRKSRC}/convert/${i} ${PREFIX}/bin
+ ${INSTALL_PROGRAM} ${WRKSRC}/convert/${i} ${DESTDIR}${PREFIX}/bin
.endfor
- ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/mpeg_encode
+ ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/doc/mpeg_encode
.for i in EXTENSIONS INPUT.FORMAT mpeg_encode.1 parallel.param param-summary \
template.param users-guide.fm users-guide.mif users-guide.ps
- ${INSTALL_DATA} ${WRKSRC}/docs/${i} ${PREFIX}/share/doc/mpeg_encode
+ ${INSTALL_DATA} ${WRKSRC}/docs/${i} \
+ ${DESTDIR}${PREFIX}/share/doc/mpeg_encode
.endfor
- ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/mpeg_encode
+ ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/examples/mpeg_encode
cd ${WRKSRC}/examples ; for i in * ; do \
- ${INSTALL_DATA} $$i ${PREFIX}/share/examples/mpeg_encode; \
+ ${INSTALL_DATA} $$i \
+ ${DESTDIR}${PREFIX}/share/examples/mpeg_encode; \
done
- ${INSTALL_MAN} ${WRKSRC}/docs/mpeg_encode.1 ${PREFIX}/${PKGMANDIR}/man1
+ ${INSTALL_MAN} ${WRKSRC}/docs/mpeg_encode.1 \
+ ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
.include "../../graphics/jpeg/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/multimedia/mplayer-plugin-firefox/Makefile.common b/multimedia/mplayer-plugin-firefox/Makefile.common
index 0cb47eb7971..691e182e653 100644
--- a/multimedia/mplayer-plugin-firefox/Makefile.common
+++ b/multimedia/mplayer-plugin-firefox/Makefile.common
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.common,v 1.18 2007/12/11 21:46:51 xtraeme Exp $
+# $NetBSD: Makefile.common,v 1.19 2008/03/04 19:32:30 jlam Exp $
#
DISTNAME= mplayerplug-in-${DIST_VER}
@@ -12,6 +12,8 @@ COMMENT= Mplayer plug-in for ${BROWSER}
DEPENDS+= mplayer>=0.92:../../multimedia/mplayer
+PKG_DESTDIR_SUPPORT= user-destdir
+
WRKSRC= ${WRKDIR}/mplayerplug-in
GNU_CONFIGURE= yes
USE_TOOLS+= gmake pkg-config msgfmt
@@ -56,14 +58,12 @@ CONF_FILES+= ${EGDIR}/mplayerplug-in.${f} \
.endfor
do-install:
- ${INSTALL_DATA_DIR} ${EGDIR}
- ${INSTALL_DATA} ${WRKSRC}/mplayerplug-in.conf ${EGDIR}
- ${INSTALL_DATA} ${WRKSRC}/mplayerplug-in.types ${EGDIR}
-.if !exists(${PREFIX}/lib/${BROWSER}/plugins)
- ${INSTALL_DATA_DIR} ${PREFIX}/lib/${BROWSER}/plugins
-.endif
- ${INSTALL_LIB} ${WRKSRC}/*.so ${PREFIX}/lib/${BROWSER}/plugins
- ${INSTALL_DATA} ${WRKSRC}/*.xpt ${PREFIX}/lib/${BROWSER}/plugins
+ ${INSTALL_DATA_DIR} ${DESTDIR}${EGDIR}
+ ${INSTALL_DATA} ${WRKSRC}/mplayerplug-in.conf ${DESTDIR}${EGDIR}
+ ${INSTALL_DATA} ${WRKSRC}/mplayerplug-in.types ${DESTDIR}${EGDIR}
+ ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/lib/${BROWSER}/plugins
+ ${INSTALL_LIB} ${WRKSRC}/*.so ${DESTDIR}${PREFIX}/lib/${BROWSER}/plugins
+ ${INSTALL_DATA} ${WRKSRC}/*.xpt ${DESTDIR}${PREFIX}/lib/${BROWSER}/plugins
.include "../../x11/libXpm/buildlink3.mk"
.include "../../x11/libXt/buildlink3.mk"
diff --git a/multimedia/ns-flash/Makefile b/multimedia/ns-flash/Makefile
index cd83f615bb3..22f65e21a20 100644
--- a/multimedia/ns-flash/Makefile
+++ b/multimedia/ns-flash/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.27 2007/12/23 22:27:15 tnn Exp $
+# $NetBSD: Makefile,v 1.28 2008/03/04 19:32:30 jlam Exp $
CATEGORIES= multimedia www
MASTER_SITES= http://fpdownload.macromedia.com/get/flashplayer/current/
@@ -18,6 +18,8 @@ NO_SRC_ON_CDROM= ${RESTRICTED}
NO_BIN_ON_FTP= ${RESTRICTED}
NO_BIN_ON_CDROM= ${RESTRICTED}
+PKG_DESTDIR_SUPPORT= user-destdir
+
WRKSRC= ${WRKDIR}/${WRKNAME}
BUILD_DIRS= # empty
DIST_SUBDIR= flash/${FLASH_VERS}
@@ -52,7 +54,7 @@ NS_PLUGINS_DIR= ${PREFIX}/lib/netscape/plugins
.include "options.mk"
do-install:
- ${INSTALL_DATA_DIR} ${NS_PLUGINS_DIR}
- ${INSTALL_DATA} ${WRKSRC}/libflashplayer.so ${NS_PLUGINS_DIR}
+ ${INSTALL_DATA_DIR} ${DESTDIR}${NS_PLUGINS_DIR}
+ ${INSTALL_DATA} ${WRKSRC}/libflashplayer.so ${DESTDIR}${NS_PLUGINS_DIR}
.include "../../mk/bsd.pkg.mk"
diff --git a/multimedia/regionset/Makefile b/multimedia/regionset/Makefile
index 1a121ded75b..3a1a570bada 100644
--- a/multimedia/regionset/Makefile
+++ b/multimedia/regionset/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.4 2007/12/18 17:13:49 rumble Exp $
+# $NetBSD: Makefile,v 1.5 2008/03/04 19:32:30 jlam Exp $
#
DISTNAME= regionset-0.1
@@ -9,12 +9,13 @@ HOMEPAGE= http://linvdr.org/download/regionset/
COMMENT= Read and modify DVD drive region code
PKG_INSTALLATION_TYPES= overwrite pkgviews
+PKG_DESTDIR_SUPPORT= user-destdir
ONLY_FOR_PLATFORM+= NetBSD-*-* OpenBSD-*-* Linux-*-* DragonFly-*-*
INSTALLATION_DIRS= bin
do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/regionset ${PREFIX}/bin
+ ${INSTALL_PROGRAM} ${WRKSRC}/regionset ${DESTDIR}${PREFIX}/bin
.include "../../mk/bsd.pkg.mk"