From f847dc9588e5531e66098b93bbc0c6e3812a799d Mon Sep 17 00:00:00 2001 From: jlam Date: Tue, 4 Mar 2008 19:32:30 +0000 Subject: Mechanical changes to add DESTDIR support to packages that install their files via a custom do-install target. --- multimedia/gmplayer/Makefile | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) (limited to 'multimedia/gmplayer') 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" -- cgit v1.2.3