diff options
author | joerg <joerg@pkgsrc.org> | 2006-11-05 17:17:04 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2006-11-05 17:17:04 +0000 |
commit | 418fe86afdbec9fa506bf86e5650b99bab7fe52b (patch) | |
tree | 0b2c949e2e8f3922c9e8f781fdd6224546b5b3b7 /fonts | |
parent | e15e1a02c6e01276414304ead8f35fd1e9d45768 (diff) | |
download | pkgsrc-418fe86afdbec9fa506bf86e5650b99bab7fe52b.tar.gz |
DESTDIR support.
Diffstat (limited to 'fonts')
-rw-r--r-- | fonts/mplayer-fonts/Makefile | 12 | ||||
-rw-r--r-- | fonts/ms-ttf/Makefile | 12 |
2 files changed, 14 insertions, 10 deletions
diff --git a/fonts/mplayer-fonts/Makefile b/fonts/mplayer-fonts/Makefile index db37e997969..dfdcf4e9b38 100644 --- a/fonts/mplayer-fonts/Makefile +++ b/fonts/mplayer-fonts/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.3 2006/08/04 20:42:18 wiz Exp $ +# $NetBSD: Makefile,v 1.4 2006/11/05 17:17:04 joerg Exp $ DISTNAME= mplayer-fonts-20030714 PKGREVISION= 1 @@ -19,6 +19,8 @@ MAINTAINER= pkgsrc-users@NetBSD.org HOMEPAGE= http://www.mplayerhq.hu/ COMMENT= Fonts for mplayer and gmplayer +PKG_DESTDIR_SUPPORT= user-destdir + CONFLICTS= mplayer-share<1.0rc7nb2 DIST_SUBDIR= ${DISTNAME} @@ -26,15 +28,15 @@ DIST_SUBDIR= ${DISTNAME} NO_BUILD= YES NO_CONFIGURE= YES +INSTALLATION_DIRS= share/mplayer/fonts + do-install: - ${INSTALL_DATA_DIR} ${PREFIX}/share/mplayer - ${INSTALL_DATA_DIR} ${PREFIX}/share/mplayer/fonts for D in font-arial-cp1250 font-arial-iso-8859-1 \ font-arial-iso-8859-2 font-arial-iso-8859-7; do \ (cd ${WRKDIR}/$$D && \ - ${PAX} -rwpppm * ${PREFIX}/share/mplayer/fonts); \ + ${PAX} -rwpppm * ${DESTDIR}${PREFIX}/share/mplayer/fonts); \ done ${LN} -s ${PREFIX}/share/mplayer/fonts/font-arial-18-iso-8859-1 \ - ${PREFIX}/share/mplayer/font + ${DESTDIR}${PREFIX}/share/mplayer/font .include "../../mk/bsd.pkg.mk" diff --git a/fonts/ms-ttf/Makefile b/fonts/ms-ttf/Makefile index 34336ad1a74..dba3c4bcfff 100644 --- a/fonts/ms-ttf/Makefile +++ b/fonts/ms-ttf/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.14 2006/03/04 21:29:39 jlam Exp $ +# $NetBSD: Makefile,v 1.15 2006/11/05 17:17:04 joerg Exp $ DISTNAME= # empty PKGNAME= ms-ttf-20020306 @@ -13,6 +13,8 @@ MAINTAINER= pkgsrc-users@NetBSD.org HOMEPAGE= http://corefonts.sourceforge.net/ COMMENT= TrueType fonts from Microsoft +PKG_DESTDIR_SUPPORT= user-destdir + BUILD_DEPENDS+= cabextract-[0-9]*:../../archivers/cabextract LICENSE= ms-ttf-license @@ -34,6 +36,8 @@ FONTDIR= ${PREFIX}/lib/X11/fonts/TTF DOCDIR= ${PREFIX}/share/doc/ms-ttf FONTS_DIRS.ttf= ${FONTDIR} +INSTALLATION_DIRS= ${FONTDIR} ${DOCDIR} + post-extract: ${_PKG_SILENT}${_PKG_DEBUG} \ for f in ${WRKSRC}/*.TTF ; do \ @@ -41,11 +45,9 @@ post-extract: done do-install: - ${INSTALL_DATA_DIR} ${FONTDIR} - ${INSTALL_DATA_DIR} ${DOCDIR} cd ${WRKSRC} && for f in *.ttf ; do \ - ${INSTALL_DATA} $$f ${FONTDIR}/$$f; \ + ${INSTALL_DATA} $$f ${DESTDIR}${FONTDIR}/$$f; \ done - ${INSTALL_DATA} ${.CURDIR}/../../licenses/${LICENSE} ${DOCDIR} + ${INSTALL_DATA} ${.CURDIR}/../../licenses/${LICENSE} ${DESTDIR}${DOCDIR} .include "../../mk/bsd.pkg.mk" |