summaryrefslogtreecommitdiff
path: root/graphics/gocr
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2008-06-20 01:09:05 +0000
committerjoerg <joerg@pkgsrc.org>2008-06-20 01:09:05 +0000
commit3b0d97b0de8516db29699676c860489da3f7f0e1 (patch)
treebb388f6b2532587595653e67cce25229ed050cb8 /graphics/gocr
parent10abca39942a8f34d088f39ccc073fee44271274 (diff)
downloadpkgsrc-3b0d97b0de8516db29699676c860489da3f7f0e1.tar.gz
Add DESTDIR support.
Diffstat (limited to 'graphics/gocr')
-rw-r--r--graphics/gocr/Makefile9
-rw-r--r--graphics/gocr/distinfo4
-rw-r--r--graphics/gocr/patches/patch-ab15
3 files changed, 21 insertions, 7 deletions
diff --git a/graphics/gocr/Makefile b/graphics/gocr/Makefile
index a8f5c96ef29..79e757c5d73 100644
--- a/graphics/gocr/Makefile
+++ b/graphics/gocr/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.6 2006/04/17 13:46:32 wiz Exp $
+# $NetBSD: Makefile,v 1.7 2008/06/20 01:09:22 joerg Exp $
DISTNAME= gocr-0.40
PKGREVISION= 2
@@ -9,12 +9,17 @@ MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://sourceforge.net/projects/jocr
COMMENT= GOCR is a set of OCR tools
+PKG_DESTDIR_SUPPORT= user-destdir
+
GNU_CONFIGURE= yes
USE_TOOLS+= gmake
CONFIGURE_HAS_MANDIR= no
-CONFIGURE_ARGS+= --mandir=/${PKGMANDIR}
+CONFIGURE_ARGS+= --mandir=${PREFIX}/${PKGMANDIR}
CONFIGURE_ARGS+= --with-netpbm=${BUILDLINK_PREFIX.netpbm}
+INSTALLATION_DIRS= bin include lib ${PKGMANDIR}/man1
+INSTALL_MAKE_FLAGS+= DESTDIR=${DESTDIR}
+
.include "options.mk"
.include "../../graphics/netpbm/buildlink3.mk"
diff --git a/graphics/gocr/distinfo b/graphics/gocr/distinfo
index 1e6e072545e..07322ec2c0b 100644
--- a/graphics/gocr/distinfo
+++ b/graphics/gocr/distinfo
@@ -1,7 +1,7 @@
-$NetBSD: distinfo,v 1.2 2005/10/25 02:06:57 wiz Exp $
+$NetBSD: distinfo,v 1.3 2008/06/20 01:09:22 joerg Exp $
SHA1 (gocr-0.40.tar.gz) = 6a5097281664ca3ffd01b11756f1dd5b565e673e
RMD160 (gocr-0.40.tar.gz) = 1e34277b7d923706789d6e5c85996968d8506427
Size (gocr-0.40.tar.gz) = 780744 bytes
SHA1 (patch-aa) = c6f235f82d6c53a52547225045808e595a33b810
-SHA1 (patch-ab) = 1f63e8963ec8bf7a672e04331b10c4df6c48dc1b
+SHA1 (patch-ab) = 45286b824b9ff310e0024896cb917db454755b09
diff --git a/graphics/gocr/patches/patch-ab b/graphics/gocr/patches/patch-ab
index 36289b429f7..2c65b69bcb0 100644
--- a/graphics/gocr/patches/patch-ab
+++ b/graphics/gocr/patches/patch-ab
@@ -1,8 +1,17 @@
-$NetBSD: patch-ab,v 1.2 2005/10/25 02:06:57 wiz Exp $
+$NetBSD: patch-ab,v 1.3 2008/06/20 01:09:22 joerg Exp $
---- src/Makefile.in.orig 2005-02-28 15:40:39.000000000 +0100
+--- src/Makefile.in.orig 2005-02-28 14:40:39.000000000 +0000
+++ src/Makefile.in
-@@ -67,9 +67,7 @@ $(LIBOBJS): Makefile
+@@ -30,6 +30,8 @@ LIBOBJS=pgm2asc.o \
+ # these two lines are for cross-compiling, not tested
+ #srcdir = @srcdir@
+ #VPATH = @srcdir@
++prefix = @prefix@
++exec_prefix = @exec_prefix@
+ bindir = @bindir@
+ libdir = @libdir@
+ includedir = @includedir@
+@@ -67,9 +69,7 @@ $(LIBOBJS): Makefile
# PHONY = don't look at file clean, -rm = start rm and ignore errors
.PHONY : clean proper install
install: all