diff options
author | Volker Stolz <vs@FreeBSD.org> | 2005-04-11 18:23:21 +0000 |
---|---|---|
committer | Volker Stolz <vs@FreeBSD.org> | 2005-04-11 18:23:21 +0000 |
commit | e404df93747922570700e9c2347974656051a059 (patch) | |
tree | 2403af9442f3474de19fa03133e38410b9586896 /graphics/gocr | |
parent | 3848e3a8b6f82a42e1e1ea6aa484b6a7779a7fad (diff) | |
download | ports-e404df93747922570700e9c2347974656051a059.tar.gz ports-e404df93747922570700e9c2347974656051a059.zip |
Notes
Diffstat (limited to 'graphics/gocr')
-rw-r--r-- | graphics/gocr/Makefile | 22 | ||||
-rw-r--r-- | graphics/gocr/distinfo | 4 | ||||
-rw-r--r-- | graphics/gocr/pkg-plist | 3 |
3 files changed, 20 insertions, 9 deletions
diff --git a/graphics/gocr/Makefile b/graphics/gocr/Makefile index c5f160283de2..cfd63039463c 100644 --- a/graphics/gocr/Makefile +++ b/graphics/gocr/Makefile @@ -6,7 +6,7 @@ # PORTNAME= gocr -PORTVERSION= 0.39 +PORTVERSION= 0.40 CATEGORIES= graphics MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= jocr @@ -15,20 +15,34 @@ MAINTAINER= kay_lehmann@web.de COMMENT= GOCR/JOCR is an OCR (Optical Character Recognition) program BUILD_DEPENDS= latex:${PORTSDIR}/print/teTeX +LIB_DEPENDS= netpbm.1:${PORTSDIR}/graphics/netpbm USE_GMAKE= yes GNU_CONFIGURE= yes +USE_REINPLACE= yes +CONFIGURE_ARGS+= --with-netpbm=${LOCALBASE} + +.if !defined(WITHOUT_X11) +RUN_DEPENDS= wish8.4:${PORTSDIR}/x11-toolkits/tk84 +PLIST_FILES+= bin/gocr.tcl +.endif MAN1= gocr.1 PORTDOCS= examples.txt gocr.html unicode.txt +PLIST_FILES+= bin/gocr include/gocr.h lib/libPgm2asc.a + +post-patch: +.if defined(WITHOUT_X11) + @${REINPLACE_CMD} -e '/gocr.tcl/d' ${WRKSRC}/src/Makefile.in +.else + @${REINPLACE_CMD} -e 's/exec wish/exec wish8.4/' ${WRKSRC}/bin/gocr.tcl +.endif post-install: .if !defined(NOPORTDOCS) @${MKDIR} ${DOCSDIR} -.for file in ${PORTDOCS} - @${INSTALL_DATA} ${WRKSRC}/doc/${file} ${DOCSDIR} -.endfor + @(cd ${WRKSRC}/doc && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}) .endif .include <bsd.port.mk> diff --git a/graphics/gocr/distinfo b/graphics/gocr/distinfo index 42e963a58dcf..17afdb3d017e 100644 --- a/graphics/gocr/distinfo +++ b/graphics/gocr/distinfo @@ -1,2 +1,2 @@ -MD5 (gocr-0.39.tar.gz) = 35b024988af7d3ddb00971db4e6d53a1 -SIZE (gocr-0.39.tar.gz) = 720915 +MD5 (gocr-0.40.tar.gz) = 13cc0d008747f5bb56d8b17be9b61859 +SIZE (gocr-0.40.tar.gz) = 780744 diff --git a/graphics/gocr/pkg-plist b/graphics/gocr/pkg-plist deleted file mode 100644 index 94988c8cd462..000000000000 --- a/graphics/gocr/pkg-plist +++ /dev/null @@ -1,3 +0,0 @@ -bin/gocr -include/gocr.h -lib/libPgm2asc.a |