summaryrefslogtreecommitdiff
path: root/multimedia/gmplayer
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/gmplayer
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/gmplayer')
-rw-r--r--multimedia/gmplayer/Makefile22
1 files changed, 12 insertions, 10 deletions
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"