pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/graphics Add PKG_DESTDIR_SUPPORT.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/b0d1cb0a8f73
branches:  trunk
changeset: 555532:b0d1cb0a8f73
user:      minskim <minskim%pkgsrc.org@localhost>
date:      Wed Mar 04 17:01:39 2009 +0000

description:
Add PKG_DESTDIR_SUPPORT.

diffstat:

 graphics/silgraphite-ft/Makefile  |  8 ++++++--
 graphics/silgraphite-xft/Makefile |  9 +++++++--
 2 files changed, 13 insertions(+), 4 deletions(-)

diffs (66 lines):

diff -r afe10a4d9966 -r b0d1cb0a8f73 graphics/silgraphite-ft/Makefile
--- a/graphics/silgraphite-ft/Makefile  Wed Mar 04 17:00:37 2009 +0000
+++ b/graphics/silgraphite-ft/Makefile  Wed Mar 04 17:01:39 2009 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1.1.1 2008/12/13 06:58:01 minskim Exp $
+# $NetBSD: Makefile,v 1.2 2009/03/04 17:01:39 minskim Exp $
 
 DISTNAME=      silgraphite-2.3
 PKGNAME=       ${DISTNAME:S/silgraphite/silgraphite-ft/}
@@ -9,6 +9,8 @@
 HOMEPAGE=      http://silgraphite.sourceforge.net/
 COMMENT=       FreeType wrapper for SIL Graphite
 
+PKG_DESTDIR_SUPPORT=   user-destdir
+
 GNU_CONFIGURE= yes
 USE_LIBTOOL=   yes
 USE_TOOLS+=    pkg-config
@@ -16,11 +18,13 @@
 WRKSRC=                ${WRKDIR}/${DISTNAME}/wrappers/freetype
 
 PKGCONFIG_OVERRIDE+=   silgraphite-ft.pc
+INSTALLATION_DIRS+=    lib/pkgconfig
 
 .include "../../graphics/freetype2/buildlink3.mk"
 .include "../../graphics/silgraphite/buildlink3.mk"
 
 post-install:
-       ${INSTALL_DATA} ${WRKSRC}/silgraphite-ft.pc ${PREFIX}/lib/pkgconfig
+       ${INSTALL_DATA} ${WRKSRC}/silgraphite-ft.pc \
+               ${DESTDIR}${PREFIX}/lib/pkgconfig
 
 .include "../../mk/bsd.pkg.mk"
diff -r afe10a4d9966 -r b0d1cb0a8f73 graphics/silgraphite-xft/Makefile
--- a/graphics/silgraphite-xft/Makefile Wed Mar 04 17:00:37 2009 +0000
+++ b/graphics/silgraphite-xft/Makefile Wed Mar 04 17:01:39 2009 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1.1.1 2008/12/15 00:44:52 minskim Exp $
+# $NetBSD: Makefile,v 1.2 2009/03/04 17:05:12 minskim Exp $
 
 DISTNAME=      silgraphite-2.3
 PKGNAME=       ${DISTNAME:S/silgraphite/silgraphite-xft/}
@@ -9,17 +9,22 @@
 HOMEPAGE=      http://silgraphite.sourceforge.net/
 COMMENT=       Xft wrapper for SIL Graphite
 
+PKG_DESTDIR_SUPPORT=   user-destdir
+
 GNU_CONFIGURE= yes
 USE_LIBTOOL=   yes
 USE_TOOLS+=    pkg-config
 USE_LANGUAGES= c c++
 WRKSRC=                ${WRKDIR}/${DISTNAME}/wrappers/xft
 
+INSTALLATION_DIRS+=    lib/pkgconfig
+
 .include "../../graphics/silgraphite/buildlink3.mk"
 .include "../../graphics/silgraphite-ft/buildlink3.mk"
 .include "../../x11/libXft/buildlink3.mk"
 
 post-install:
-       ${INSTALL_DATA} ${WRKSRC}/silgraphite-xft.pc ${PREFIX}/lib/pkgconfig
+       ${INSTALL_DATA} ${WRKSRC}/silgraphite-xft.pc \
+               ${DESTDIR}${PREFIX}/lib/pkgconfig
 
 .include "../../mk/bsd.pkg.mk"



Home | Main Index | Thread Index | Old Index