summaryrefslogtreecommitdiff
path: root/graphics/g2
diff options
context:
space:
mode:
authorjoerg <joerg>2010-02-03 23:11:15 +0000
committerjoerg <joerg>2010-02-03 23:11:15 +0000
commit10860b2ec12de4b25cdae9a0c193b409fa28156d (patch)
treeeb337fe1cfa07e4af9a22f748ee53fc3c96e10b3 /graphics/g2
parent7b94beed0839d47ea8707dab0fc94f5b90eb76e0 (diff)
downloadpkgsrc-10860b2ec12de4b25cdae9a0c193b409fa28156d.tar.gz
DESTDIR support
Diffstat (limited to 'graphics/g2')
-rw-r--r--graphics/g2/Makefile8
-rw-r--r--graphics/g2/distinfo4
-rw-r--r--graphics/g2/patches/patch-ab17
3 files changed, 21 insertions, 8 deletions
diff --git a/graphics/g2/Makefile b/graphics/g2/Makefile
index 2c9237c33d9..923758a9fb8 100644
--- a/graphics/g2/Makefile
+++ b/graphics/g2/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.29 2010/01/18 09:58:59 wiz Exp $
+# $NetBSD: Makefile,v 1.30 2010/02/03 23:21:08 joerg Exp $
DISTNAME= g2-0.50
PKGREVISION= 3
@@ -9,6 +9,8 @@ MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://g2.sourceforge.net/
COMMENT= Powerful, easy to use 2D graphics library
+PKG_DESTDIR_SUPPORT= user-destdir
+
GNU_CONFIGURE= yes
USE_LANGUAGES= c c++
USE_LIBTOOL= yes
@@ -25,9 +27,9 @@ post-configure: perl5-configure
post-install:
cd ${WRKSRC} && ${INSTALL_DATA} doc/g2_ref.txt COPYING README \
- ${PREFIX}/share/doc/g2
+ ${DESTDIR}${PREFIX}/share/doc/g2
cd ${WRKSRC}/demo && ${INSTALL_DATA} *.c *.f *.inc \
- ${PREFIX}/share/examples/g2
+ ${DESTDIR}${PREFIX}/share/examples/g2
.include "../../graphics/gd/buildlink3.mk"
.include "../../lang/perl5/module.mk"
diff --git a/graphics/g2/distinfo b/graphics/g2/distinfo
index ef1cfa85318..e7bf6859e03 100644
--- a/graphics/g2/distinfo
+++ b/graphics/g2/distinfo
@@ -1,8 +1,8 @@
-$NetBSD: distinfo,v 1.6 2006/10/04 22:22:37 rillig Exp $
+$NetBSD: distinfo,v 1.7 2010/02/03 23:21:08 joerg Exp $
SHA1 (g2-0.50.tar.gz) = 41153f697e3b3e270319b8c99f575f2fccff39cc
RMD160 (g2-0.50.tar.gz) = c9a379b845da7da3d108c4f60446476d60d67091
Size (g2-0.50.tar.gz) = 132308 bytes
SHA1 (patch-aa) = 4691247328cb448c3478e189aba679091c77dca9
-SHA1 (patch-ab) = 627f3ec9b3cd81c431328c6b368f39588c6e8b7c
+SHA1 (patch-ab) = 9f7358c01232123f9f9101d2719382ac93d17abf
SHA1 (patch-ad) = 766b1063f690db1ea0c3587b4dd2319f678d54bf
diff --git a/graphics/g2/patches/patch-ab b/graphics/g2/patches/patch-ab
index 54144a40f7e..9ee9939fe02 100644
--- a/graphics/g2/patches/patch-ab
+++ b/graphics/g2/patches/patch-ab
@@ -1,7 +1,18 @@
-$NetBSD: patch-ab,v 1.3 2006/10/04 22:22:37 rillig Exp $
+$NetBSD: patch-ab,v 1.4 2010/02/03 23:21:08 joerg Exp $
---- Makefile.in.orig 2004-03-01 00:47:46.000000000 +0100
-+++ Makefile.in 2006-10-05 00:19:32.000000000 +0200
+--- Makefile.in.orig 2004-02-29 23:47:46.000000000 +0000
++++ Makefile.in
+@@ -9,8 +9,8 @@ G2_VERSION = 0.50
+ #
+ # g2 installation directories
+ #
+-LIBDIR = @prefix@/lib
+-INCDIR = @prefix@/include
++LIBDIR = ${DESTDIR}@prefix@/lib
++INCDIR = ${DESTDIR}@prefix@/include
+
+ #LIBDIR = $(HOME)/local/lib
+ #INCDIR = $(HOME)/local/include
@@ -66,30 +66,22 @@ OBJ = $(SRC:.c=.o)
INS = $(BASE_INS) $(PS_INS) $(X11_INS) $(WIN32_INS) $(GD_INS)