pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/graphics DESTDIR support



details:   https://anonhg.NetBSD.org/pkgsrc/rev/bf77bfc74280
branches:  trunk
changeset: 570824:bf77bfc74280
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Wed Feb 03 22:58:38 2010 +0000

description:
DESTDIR support

diffstat:

 graphics/gtksee/Makefile         |  15 +++++++++------
 graphics/gtksee/distinfo         |   3 ++-
 graphics/gtksee/patches/patch-aa |  25 +++++++++++++++++++++++++
 graphics/hp2xx/Makefile          |  14 ++++++++++----
 graphics/impress/Makefile        |   7 ++++++-
 5 files changed, 52 insertions(+), 12 deletions(-)

diffs (135 lines):

diff -r 7b9dae1ef04d -r bf77bfc74280 graphics/gtksee/Makefile
--- a/graphics/gtksee/Makefile  Wed Feb 03 22:53:39 2010 +0000
+++ b/graphics/gtksee/Makefile  Wed Feb 03 22:58:38 2010 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.18 2010/01/18 09:59:02 wiz Exp $
+# $NetBSD: Makefile,v 1.19 2010/02/03 23:03:26 joerg Exp $
 #
 
 DISTNAME=              gtksee-0.5.6
@@ -10,16 +10,19 @@
 HOMEPAGE=              http://developer.berlios.de/projects/gtksee/
 COMMENT=               Gtk-based image viewing and cataloging program
 
+PKG_DESTDIR_SUPPORT=   user-destdir
+
 GNU_CONFIGURE=         YES
 USE_TOOLS+=            gmake msgfmt
 USE_PKGLOCALEDIR=      YES
 
+INSTALLATION_DIRS+=    ${PKGMANDIR}/man1 share/doc/gtksee
+
 post-install:
-       ${INSTALL_MAN} ${WRKSRC}/man/gtksee.1 ${PREFIX}/${PKGMANDIR}/man1/gtksee.1
-       ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/gtksee
-       ${INSTALL_DATA} ${WRKSRC}/README  ${PREFIX}/share/doc/gtksee
-       ${INSTALL_DATA} ${WRKSRC}/COPYING ${PREFIX}/share/doc/gtksee
-       ${INSTALL_DATA} ${WRKSRC}/TODO    ${PREFIX}/share/doc/gtksee
+       ${INSTALL_MAN} ${WRKSRC}/man/gtksee.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/gtksee.1
+       ${INSTALL_DATA} ${WRKSRC}/README  ${DESTDIR}${PREFIX}/share/doc/gtksee
+       ${INSTALL_DATA} ${WRKSRC}/COPYING ${DESTDIR}${PREFIX}/share/doc/gtksee
+       ${INSTALL_DATA} ${WRKSRC}/TODO    ${DESTDIR}${PREFIX}/share/doc/gtksee
 
 .include "../../x11/gtk/buildlink3.mk"
 .include "../../graphics/jpeg/buildlink3.mk"
diff -r 7b9dae1ef04d -r bf77bfc74280 graphics/gtksee/distinfo
--- a/graphics/gtksee/distinfo  Wed Feb 03 22:53:39 2010 +0000
+++ b/graphics/gtksee/distinfo  Wed Feb 03 22:58:38 2010 +0000
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.3 2005/02/24 08:45:07 agc Exp $
+$NetBSD: distinfo,v 1.4 2010/02/03 23:03:26 joerg Exp $
 
 SHA1 (gtksee-0.5.6.tar.gz) = 7e1050d26b8fea0403e2e9124956478828e58e0f
 RMD160 (gtksee-0.5.6.tar.gz) = 0df689de66212445bfdcdfaa9dbb65792e1c3efd
 Size (gtksee-0.5.6.tar.gz) = 322313 bytes
+SHA1 (patch-aa) = 0fd5b2367f5ee00d2a8a6b3d9c02725e5761f564
diff -r 7b9dae1ef04d -r bf77bfc74280 graphics/gtksee/patches/patch-aa
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/gtksee/patches/patch-aa  Wed Feb 03 22:58:38 2010 +0000
@@ -0,0 +1,25 @@
+$NetBSD: patch-aa,v 1.3 2010/02/03 23:03:26 joerg Exp $
+
+--- po/Makefile.in.in.orig     2010-02-03 23:01:02.000000000 +0000
++++ po/Makefile.in.in
+@@ -111,16 +111,16 @@ install-data: install-data-@USE_NLS@
+ install-data-no: all
+ install-data-yes: all
+       if test -r "$(MKINSTALLDIRS)"; then \
+-        $(MKINSTALLDIRS) $(datadir); \
++        $(MKINSTALLDIRS) ${DESTDIR}$(datadir); \
+       else \
+-        $(SHELL) $(top_srcdir)/mkinstalldirs $(datadir); \
++        $(SHELL) $(top_srcdir)/mkinstalldirs ${DESTDIR}$(datadir); \
+       fi
+       @catalogs='$(CATALOGS)'; \
+       for cat in $$catalogs; do \
+         cat=`basename $$cat`; \
+         case "$$cat" in \
+-          *.gmo) destdir=$(gnulocaledir);; \
+-          *)     destdir=$(localedir);; \
++          *.gmo) destdir=${DESTDIR}$(gnulocaledir);; \
++          *)     destdir=${DESTDIR}$(localedir);; \
+         esac; \
+         lang=`echo $$cat | sed 's/\$(CATOBJEXT)$$//'`; \
+         dir=$$destdir/$$lang/LC_MESSAGES; \
diff -r 7b9dae1ef04d -r bf77bfc74280 graphics/hp2xx/Makefile
--- a/graphics/hp2xx/Makefile   Wed Feb 03 22:53:39 2010 +0000
+++ b/graphics/hp2xx/Makefile   Wed Feb 03 22:58:38 2010 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.37 2010/01/18 09:59:02 wiz Exp $
+# $NetBSD: Makefile,v 1.38 2010/02/03 22:59:13 joerg Exp $
 #
 
 DISTNAME=      hp2xx-3.4.4
@@ -10,14 +10,20 @@
 HOMEPAGE=      http://www.gnu.org/software/hp2xx/hp2xx.html
 COMMENT=       HPGL converter and previewer
 
+PKG_DESTDIR_SUPPORT=   user-destdir
+
 BUILD_DIRS=    sources
 USE_TOOLS+=    makeinfo
-MAKE_FLAGS=    prefix=${PREFIX:Q}                                      \
-               mandir=${PREFIX:Q}/${PKGMANDIR:Q}                       \
-               infodir=${PREFIX:Q}/${PKGINFODIR:Q}
+MAKE_FLAGS=    prefix=${PREFIX}                                        \
+               mandir=${PREFIX}/${PKGMANDIR}                           \
+               infodir=${PREFIX}/${PKGINFODIR}
 MAKE_ENV+=     XLDFLAGS=${LDFLAGS:Q} XCPPFLAGS=${CPPFLAGS:Q}
 INFO_FILES=    # PLIST
 
+INSTALL_MAKE_FLAGS+=   prefix=${DESTDIR}${PREFIX}                      \
+               mandir=${DESTDIR}${PREFIX}/${PKGMANDIR}                 \
+               infodir=${DESTDIR}${PREFIX}/${PKGINFODIR}
+
 INSTALLATION_DIRS=     bin ${PKGINFODIR} ${PKGMANDIR}/man1
 
 post-extract:
diff -r 7b9dae1ef04d -r bf77bfc74280 graphics/impress/Makefile
--- a/graphics/impress/Makefile Wed Feb 03 22:53:39 2010 +0000
+++ b/graphics/impress/Makefile Wed Feb 03 22:58:38 2010 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.13 2009/03/22 04:53:39 manu Exp $
+# $NetBSD: Makefile,v 1.14 2010/02/03 22:58:38 joerg Exp $
 #
 
 DISTNAME=      imp1.1b9
@@ -12,6 +12,8 @@
 # AWOL, but ccox@ is listed as board member of ntlug.org
 COMMENT=       WYSIWYG vector graphics application
 
+PKG_DESTDIR_SUPPORT=   user-destdir
+
 DEPENDS+=      pstoedit>=3.19:../../graphics/pstoedit
 DEPENDS+=      tcl>=8.3.2nb2:../../lang/tcl
 DEPENDS+=      tk>=8.3.2nb1:../../x11/tk
@@ -20,6 +22,9 @@
 
 USE_LANGUAGES= c++
 
+INSTALL_MAKE_FLAGS+=   PREFIX=${DESTDIR}${PREFIX}
+INSTALLATION_DIRS+=    bin
+
 do-build:
        cd ${WRKSRC} && make make_impress make_font3d
 



Home | Main Index | Thread Index | Old Index