summaryrefslogtreecommitdiff
path: root/multimedia/divxplayer
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2008-03-04 19:32:30 +0000
committerjlam <jlam@pkgsrc.org>2008-03-04 19:32:30 +0000
commitf847dc9588e5531e66098b93bbc0c6e3812a799d (patch)
treebe7fb221de1b1a2204c821c7626a52e6f564036b /multimedia/divxplayer
parent39843c2c61acd3e8f1b7d0fa6eb0f76884067d10 (diff)
downloadpkgsrc-f847dc9588e5531e66098b93bbc0c6e3812a799d.tar.gz
Mechanical changes to add DESTDIR support to packages that install
their files via a custom do-install target.
Diffstat (limited to 'multimedia/divxplayer')
-rw-r--r--multimedia/divxplayer/Makefile14
1 files changed, 8 insertions, 6 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"