From owner-freebsd-ports-bugs@FreeBSD.ORG Sun Apr 10 08:57:13 2005 Return-Path: Delivered-To: freebsd-ports-bugs@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CDDE616A4CE; Sun, 10 Apr 2005 08:57:13 +0000 (GMT) Received: from smtp06.web.de (smtp06.web.de [217.72.192.224]) by mx1.FreeBSD.org (Postfix) with ESMTP id 772EB43D48; Sun, 10 Apr 2005 08:57:13 +0000 (GMT) (envelope-from kay_lehmann@web.de) Received: from [217.197.85.240] (helo=[192.168.1.3]) by smtp06.web.de with asmtp (TLSv1:RC4-MD5:128) (WEB.DE 4.104 #268) id 1DKYFh-0005m6-00; Sun, 10 Apr 2005 10:57:09 +0200 Message-ID: <4258EC56.1080206@web.de> Date: Sun, 10 Apr 2005 11:05:26 +0200 From: Kay Lehmann User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050330) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Volker Stolz References: <200504041455.j34Etmxn051516@freefall.freebsd.org> In-Reply-To: <200504041455.j34Etmxn051516@freefall.freebsd.org> Content-Type: multipart/mixed; boundary="------------050904080804080600030707" Sender: kay_lehmann@web.de X-Sender: kay_lehmann@web.de cc: freebsd-ports-bugs@FreeBSD.org Subject: Re: ports/79426: [Maintainer Update] graphics/gocr: Update from0.39 to 0.40 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 10 Apr 2005 08:57:13 -0000 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--