diff options
author | joerg <joerg@pkgsrc.org> | 2010-02-01 02:41:52 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2010-02-01 02:41:52 +0000 |
commit | 91651adf9f2f8a6238c794fb3014724154881300 (patch) | |
tree | 3aaff12531427edcc8d39cf361a82a1a42a7450a /graphics/claraocr | |
parent | 2f592b429c064aa3f6c8befcb702b9328c0c1232 (diff) | |
download | pkgsrc-91651adf9f2f8a6238c794fb3014724154881300.tar.gz |
DESTDIR support
Diffstat (limited to 'graphics/claraocr')
-rw-r--r-- | graphics/claraocr/Makefile | 8 | ||||
-rw-r--r-- | graphics/claraocr/distinfo | 4 | ||||
-rw-r--r-- | graphics/claraocr/patches/patch-aa | 15 |
3 files changed, 15 insertions, 12 deletions
diff --git a/graphics/claraocr/Makefile b/graphics/claraocr/Makefile index 182ef0b9458..8b58f8f203d 100644 --- a/graphics/claraocr/Makefile +++ b/graphics/claraocr/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.13 2007/02/16 00:53:40 wiz Exp $ +# $NetBSD: Makefile,v 1.14 2010/02/01 02:51:29 joerg Exp $ # DISTNAME= clara-0.9.9 @@ -15,6 +15,8 @@ MAINTAINER= pkgsrc-users@NetBSD.org HOMEPAGE= http://www.geocities.com/claraocr/ COMMENT= Optical Character Recognition (OCR) program for books +PKG_DESTDIR_SUPPORT= user-destdir + DEPENDS+= netpbm-[0-9]*:../../graphics/netpbm USE_TOOLS+= perl:run @@ -22,9 +24,11 @@ REPLACE_PERL= clara.pl mkdoc.pl selthresh.pl CONFLICTS+= clara-[0-9]* +INSTALLATION_DIRS+= bin ${PKGMANDIR}/man1 share/doc/clara + # install a example input file post-install: - ${INSTALL_DATA} ${WRKSRC}/imre.pbm ${PREFIX}/share/doc/clara + ${INSTALL_DATA} ${WRKSRC}/imre.pbm ${DESTDIR}${PREFIX}/share/doc/clara .include "../../x11/libX11/buildlink3.mk" .include "../../mk/bsd.pkg.mk" diff --git a/graphics/claraocr/distinfo b/graphics/claraocr/distinfo index c6c99b12899..265becbcaa4 100644 --- a/graphics/claraocr/distinfo +++ b/graphics/claraocr/distinfo @@ -1,6 +1,6 @@ -$NetBSD: distinfo,v 1.4 2005/02/24 08:45:04 agc Exp $ +$NetBSD: distinfo,v 1.5 2010/02/01 02:51:29 joerg Exp $ SHA1 (clara-0.9.9.tar.gz) = 7d18088ad086d476cce2821497db16f4f444231e RMD160 (clara-0.9.9.tar.gz) = 6831d71a5ae383fd025d57050edbabe4a5359666 Size (clara-0.9.9.tar.gz) = 419529 bytes -SHA1 (patch-aa) = 3c8ae0031b579917299f314eb34918b7e2b955a1 +SHA1 (patch-aa) = bfabc610299887e9b8331357d457657aa8c0eb26 diff --git a/graphics/claraocr/patches/patch-aa b/graphics/claraocr/patches/patch-aa index c9619ac589c..3fdf219c356 100644 --- a/graphics/claraocr/patches/patch-aa +++ b/graphics/claraocr/patches/patch-aa @@ -1,4 +1,4 @@ -$NetBSD: patch-aa,v 1.3 2002/09/22 00:07:57 jlam Exp $ +$NetBSD: patch-aa,v 1.4 2010/02/01 02:51:30 joerg Exp $ --- Makefile.orig Sat May 4 03:45:07 2002 +++ Makefile @@ -11,7 +11,7 @@ $NetBSD: patch-aa,v 1.3 2002/09/22 00:07:57 jlam Exp $ #MANDIR=/usr/local/man/man1 -MANDIR=/usr/man/man1 -+MANDIR=${PREFIX}/man/man1 ++MANDIR=${PREFIX}/${PKGMANDIR}/man1 #DOCDIR=/usr/local/doc/clara #DOCDIR=/usr/doc/clara @@ -47,7 +47,7 @@ $NetBSD: patch-aa,v 1.3 2002/09/22 00:07:57 jlam Exp $ # # If your system requires additional libs, please add them: -@@ -175,13 +175,11 @@ +@@ -175,13 +175,10 @@ ./clara -p 2 install: all @@ -58,11 +58,10 @@ $NetBSD: patch-aa,v 1.3 2002/09/22 00:07:57 jlam Exp $ - install doc/clara.1 doc/clara-dev.1 doc/clara-adv.1 $(MANDIR) - install -d $(DOCDIR) - install ANNOUNCE CHANGELOG doc/FAQ doc/*.html $(DOCDIR) -+ ${BSD_INSTALL_PROGRAM} clara $(BINDIR) -+ ${BSD_INSTALL_SCRIPT} selthresh.pl $(BINDIR) -+ ${BSD_INSTALL_MAN} doc/clara.1 doc/clara-dev.1 doc/clara-adv.1 $(MANDIR) -+ ${BSD_INSTALL_DATA_DIR} $(DOCDIR) -+ ${BSD_INSTALL_DATA} ANNOUNCE CHANGELOG doc/FAQ doc/*.html $(DOCDIR) ++ ${BSD_INSTALL_PROGRAM} clara ${DESTDIR}$(BINDIR) ++ ${BSD_INSTALL_SCRIPT} selthresh.pl ${DESTDIR}$(BINDIR) ++ ${BSD_INSTALL_MAN} doc/clara.1 doc/clara-dev.1 doc/clara-adv.1 ${DESTDIR}$(MANDIR) ++ ${BSD_INSTALL_DATA} ANNOUNCE CHANGELOG doc/FAQ doc/*.html ${DESTDIR}$(DOCDIR) clean: rm -f clara sclara $(OBJS) doc/clara*.1 doc/clara*.html doc/FAQ |