From 7a24433f224ae449d94a502f8eefbd2b13810db3 Mon Sep 17 00:00:00 2001 From: joerg Date: Thu, 11 Feb 2010 21:22:17 +0000 Subject: DESTDIR support --- net/gtk_wicontrol/Makefile | 4 +++- net/gtk_wicontrol/distinfo | 3 ++- net/gtk_wicontrol/patches/patch-af | 25 +++++++++++++++++++++++++ 3 files changed, 30 insertions(+), 2 deletions(-) create mode 100644 net/gtk_wicontrol/patches/patch-af (limited to 'net/gtk_wicontrol') diff --git a/net/gtk_wicontrol/Makefile b/net/gtk_wicontrol/Makefile index ab208e217c7..0e8abc767b7 100644 --- a/net/gtk_wicontrol/Makefile +++ b/net/gtk_wicontrol/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.22 2007/01/08 16:16:38 joerg Exp $ +# $NetBSD: Makefile,v 1.23 2010/02/11 21:30:54 joerg Exp $ DISTNAME= gtk_wicontrol-0.17 PKGREVISION= 4 @@ -9,6 +9,8 @@ MAINTAINER= pkgsrc-users@NetBSD.org HOMEPAGE= http://www.izawa.org/software/gtk_wicontrol/ COMMENT= GTK+-based Wavelan status meter +PKG_DESTDIR_SUPPORT= user-destdir + ONLY_FOR_PLATFORM= *BSD-*-* DragonFly-*-* USE_PKGLOCALEDIR= yes diff --git a/net/gtk_wicontrol/distinfo b/net/gtk_wicontrol/distinfo index 32a92b70eea..6aff2613bb4 100644 --- a/net/gtk_wicontrol/distinfo +++ b/net/gtk_wicontrol/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.9 2006/03/22 22:03:46 joerg Exp $ +$NetBSD: distinfo,v 1.10 2010/02/11 21:30:54 joerg Exp $ SHA1 (gtk_wicontrol-0.17.tar.gz) = be477075dcc82b6a549d1d6b8f4bb6ef7be2bfc5 RMD160 (gtk_wicontrol-0.17.tar.gz) = b2b36c9b7810c28fea48e505d48768b125500a42 @@ -8,3 +8,4 @@ SHA1 (patch-ab) = 57fa282111a8d0f65aeda5336830f17db49d96cf SHA1 (patch-ac) = 740009f59c72526511c2b8b5f330dafa36593a36 SHA1 (patch-ad) = 1f3e7780f83efd666cef444c0d2c3c8b5383e9eb SHA1 (patch-ae) = 7975912eefe0c015f6737388866ca017b3724799 +SHA1 (patch-af) = 9fd14fbb5ab19e27c2a19d0be3ea2c899c0397d1 diff --git a/net/gtk_wicontrol/patches/patch-af b/net/gtk_wicontrol/patches/patch-af new file mode 100644 index 00000000000..039116e9360 --- /dev/null +++ b/net/gtk_wicontrol/patches/patch-af @@ -0,0 +1,25 @@ +$NetBSD: patch-af,v 1.3 2010/02/11 21:30:54 joerg Exp $ + +--- po/Makefile.in.in.orig 2010-02-11 21:25:50.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; \ -- cgit v1.2.3