From yinjieh@csie.nctu.edu.tw  Fri Aug 20 17:22:34 2004
Return-Path: <yinjieh@csie.nctu.edu.tw>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id CD43F16A4CE
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 20 Aug 2004 17:22:34 +0000 (GMT)
Received: from alumni.csie.nctu.edu.tw (alumni.csie.nctu.edu.tw [140.113.209.4])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 4F36B43D46
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 20 Aug 2004 17:22:34 +0000 (GMT)
	(envelope-from yinjieh@csie.nctu.edu.tw)
Received: from alumni.csie.nctu.edu.tw (yinjieh@localhost [127.0.0.1])
	by alumni.csie.nctu.edu.tw (8.12.11/8.12.9) with ESMTP id i7KHMNWX058295
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 21 Aug 2004 01:22:23 +0800 (CST)
Received: (from yinjieh@localhost)
	by alumni.csie.nctu.edu.tw (8.12.11/8.12.3/Submit) id i7KHMNNh058294;
	Sat, 21 Aug 2004 01:22:23 +0800 (CST)
Message-Id: <200408201722.i7KHMNNh058294@alumni.csie.nctu.edu.tw>
Date: Sat, 21 Aug 2004 01:22:23 +0800 (CST)
From: Ying-Chieh Chen <yinjieh@csie.nctu.edu.tw>
Reply-To: Ying-Chieh Chen <yinjieh@csie.nctu.edu.tw>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: [UPDATE] Enable OPTIONS feature of ports/graphics/sane-frontends
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         70738
>Category:       ports
>Synopsis:       [UPDATE] Enable OPTIONS feature of ports/graphics/sane-frontends
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Fri Aug 20 17:30:21 GMT 2004
>Closed-Date:    Fri Aug 20 23:20:04 GMT 2004
>Last-Modified:  Fri Aug 20 23:20:04 GMT 2004
>Originator:     Ying-Chieh Chen
>Release:        FreeBSD 4.10-STABLE i386
>Organization:
NCTU CSIE
>Environment:
System: FreeBSD alumni 4.10-STABLE FreeBSD 4.10-STABLE #25: Fri Jul 2 07:46:15 CST 2004 wcpan@ccduty:/bsdhome/bsd4/obj/bsdhome/bsd4/src/sys/CSIEBSD i386


	
>Description:

	Enable OPTIONS feature of ports/graphics/sane-frontends

>How-To-Repeat:

	Apply the patch.

>Fix:

	

--- sane-frontends.patch begins here ---
diff -ruN /usr/ports/graphics/sane-frontends/Makefile sane-frontends/Makefile
--- /usr/ports/graphics/sane-frontends/Makefile	Sun Aug  1 00:00:03 2004
+++ sane-frontends/Makefile	Fri Aug 20 19:43:58 2004
@@ -26,6 +26,11 @@
 
 MAN1=		scanadf.1 xcam.1 xscanimage.1
 
+OPTIONS=	GTK1 "GTK1 support (Default is GTK2)" off \
+		GIMP "also build xscanimage as a GIMP plug-in" off
+
+.include <bsd.port.pre.mk>
+
 .if defined(WITH_GTK1)
 USE_GNOME+=	gtk12
 CONFIGURE_ARGS+=	--disable-gtk2
@@ -45,15 +50,7 @@
 .endif
 .endif
 
-pre-everything::
-.if !defined(WITH_GIMP)
-	@${ECHO_MSG} "*** Note: xscanimage can be built with a standalone"
-	@${ECHO_MSG} "*** X scanner interface as well as a GIMP plug-in."
-	@${ECHO_MSG} "*** If you wish to do this, hit Ctrl-C now and use"
-	@${ECHO_MSG} "*** \"WITH_GIMP=yes\""
-.endif
-
 post-install:
 	@${SED} 's:/usr/local:${PREFIX}:' ${PKGMESSAGE}
 
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
--- sane-frontends.patch ends here ---


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: pav 
State-Changed-When: Fri Aug 20 23:19:57 GMT 2004 
State-Changed-Why:  
Committed, thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=70738 
>Unformatted:
