From yinjieh@csie.nctu.edu.tw  Fri Aug 20 15:41:22 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 4E0E716A4CE
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 20 Aug 2004 15:41:22 +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 C1FF643D48
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 20 Aug 2004 15:41:21 +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 i7KFfBSF055073
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 20 Aug 2004 23:41:11 +0800 (CST)
Received: (from yinjieh@localhost)
	by alumni.csie.nctu.edu.tw (8.12.11/8.12.3/Submit) id i7KFfBgE055072;
	Fri, 20 Aug 2004 23:41:11 +0800 (CST)
Message-Id: <200408201541.i7KFfBgE055072@alumni.csie.nctu.edu.tw>
Date: Fri, 20 Aug 2004 23:41:11 +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/x11/ggiterm
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         70728
>Category:       ports
>Synopsis:       [UPDATE] Enable OPTIONS feature of ports/x11/ggiterm
>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 15:50:31 GMT 2004
>Closed-Date:    Fri Aug 20 22:54:58 GMT 2004
>Last-Modified:  Fri Aug 20 22:54:58 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/x11/ggiterm

>How-To-Repeat:

	Apply the patch.

>Fix:

	

--- ggiterm.patch begins here ---
diff -ruN /usr/ports/x11/ggiterm/Makefile ggiterm/Makefile
--- /usr/ports/x11/ggiterm/Makefile	Wed Mar 31 03:56:43 2004
+++ ggiterm/Makefile	Fri Aug 20 21:05:45 2004
@@ -17,10 +17,6 @@
 COMMENT=	A terminal emulator for GGI
 
 LIB_DEPENDS=	ggi.2:${PORTSDIR}/graphics/libggi
-.if !defined(WITHOUT_FREETYPE)
-LIB_DEPENDS+=	freetype.9:${PORTSDIR}/print/freetype2
-USE_ICONV=	yes
-.endif
 
 USE_GMAKE=	yes
 USE_X_PREFIX=	yes
@@ -28,27 +24,19 @@
 
 GNU_CONFIGURE=	yes
 CONFIGURE_ARGS=	--with-ggi=${LOCALBASE}
+
+OPTIONS=	FREETYPE "build with Freetype support" on
+
+.include <bsd.port.pre.mk>
+
 .if !defined(WITHOUT_FREETYPE)
+LIB_DEPENDS+=	freetype.9:${PORTSDIR}/print/freetype2
+USE_ICONV=	yes
 CONFIGURE_ARGS+=--with-ft-prefix=${LOCALBASE}
 .endif
 
 WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}
 
-pre-everything::
-.if !defined(WITHOUT_FREETYPE)
-	@${ECHO_MSG} ""
-	@${ECHO_MSG} "ggiterm can be built without Freetype support. However, as the author says,"
-	@${ECHO_MSG} "'if you don't have freetype you lose much of the ggiterm reason for being,'"
-	@${ECHO_MSG} "so you probably don't want this. If you do, cancel now and build with:"
-	@${ECHO_MSG} "  WITHOUT_FREETYPE=yes"
-	@${ECHO_MSG} ""
-.else
-	@${ECHO_MSG} ""
-	@${ECHO_MSG} "You have chosen to build ggiterm without Freetype. If this wasn't your"
-	@${ECHO_MSG} "intention, cancel now and unset the 'WITHOUT_FREETYPE' variable."
-	@${ECHO_MSG} ""
-.endif
-
 post-install:
 .if !defined(NOPORTDOCS)
 	@${MKDIR} ${DOCSDIR}
@@ -56,4 +44,4 @@
 	@${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
 .endif
 
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
--- ggiterm.patch ends here ---


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

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