Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 10 Apr 2005 11:05:26 +0200
From:      Kay Lehmann <kay_lehmann@web.de>
To:        Volker Stolz <vs@FreeBSD.org>
Cc:        freebsd-ports-bugs@FreeBSD.org
Subject:   Re: ports/79426: [Maintainer Update] graphics/gocr: Update from0.39 to 0.40
Message-ID:  <4258EC56.1080206@web.de>
In-Reply-To: <200504041455.j34Etmxn051516@freefall.freebsd.org>
References:  <200504041455.j34Etmxn051516@freefall.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format.
--------------050904080804080600030707
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

Here is a small patch to turn on netpbm-support and make tk optional 
using WITHOUT_X11 as suggested by Volker.

Greets,
Kay

--------------050904080804080600030707
Content-Type: text/x-patch;
 name="gocr_0.40-without_x11.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="gocr_0.40-without_x11.patch"

Index: pkg-plist
===================================================================
--- pkg-plist	(Revision 22)
+++ pkg-plist	(Arbeitskopie)
@@ -1,4 +1,3 @@
 bin/gocr
-bin/gocr.tcl
 include/gocr.h
 lib/libPgm2asc.a
Index: Makefile
===================================================================
--- Makefile	(Revision 22)
+++ Makefile	(Arbeitskopie)
@@ -15,15 +15,27 @@
 COMMENT=	GOCR/JOCR is an OCR (Optical Character Recognition) program
 
 BUILD_DEPENDS=	latex:${PORTSDIR}/print/teTeX
-RUN_DEPENDS=	wish8.4:${PORTSDIR}/x11-toolkits/tk84
+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
 
+post-patch:
+.if defined(WITHOUT_X11)
+	@${REINPLACE_CMD} -e '/gocr.tcl/d' ${WRKSRC}/src/Makefile.in
+.endif
+
 post-install:
 .if !defined(NOPORTDOCS)
 	@${MKDIR} ${DOCSDIR}

--------------050904080804080600030707--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4258EC56.1080206>