From yinjieh@csie.nctu.edu.tw  Fri Aug 20 04:51:01 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 B0E0D16A4CE; Fri, 20 Aug 2004 04:51:01 +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 2EE5943D2D; Fri, 20 Aug 2004 04:51:01 +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 i7K4otgY003080;
	Fri, 20 Aug 2004 12:50:55 +0800 (CST)
Received: (from yinjieh@localhost)
	by alumni.csie.nctu.edu.tw (8.12.11/8.12.3/Submit) id i7K4otmt003079;
	Fri, 20 Aug 2004 12:50:55 +0800 (CST)
Message-Id: <200408200450.i7K4otmt003079@alumni.csie.nctu.edu.tw>
Date: Fri, 20 Aug 2004 12:50:55 +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: ports@freebsd.org
Subject: Enable OPTIONS feature of ports/chinese/moettf
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         70684
>Category:       ports
>Synopsis:       Enable OPTIONS feature of ports/chinese/moettf
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pav
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Fri Aug 20 05:00:32 GMT 2004
>Closed-Date:    Sat Aug 21 09:24:25 GMT 2004
>Last-Modified:  Sat Aug 21 09:24:25 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/chinese/moettf

	Please commit it, thanks!

>How-To-Repeat:

	cd /usr/ports/chinese/moettf
	Apply the following patch
	make install

>Fix:

--- moettf.patch begins here ---
diff -ruN /usr/ports/chinese/moettf/Makefile moettf/Makefile
--- /usr/ports/chinese/moettf/Makefile	Sat Aug 14 22:05:00 2004
+++ moettf/Makefile	Fri Aug 20 12:42:46 2004
@@ -32,39 +32,35 @@
 FONTDIR=	${PREFIX}/share/fonts/TrueType
 XFONTDIR=	${X11BASE}/lib/X11/fonts/TrueType
 INSTALL_ENV=	PKG_PREFIX=${PREFIX} \
-		DEFAULT=${DEFAULT} WANT_CJK=${WANT_CJK} WANT_GS=${WANT_GS} \
-		WITHOUT_X=${WITHOUT_X}
+		DEFAULT=${WITH_DEFAULT} WANT_CJK=${WITH_CJK} \
+		WANT_GS=${WITH_GS} WITHOUT_X=${WITHOUT_X}
+
+OPTIONS=	CJK "CJK support" off \
+		GS "Ghostscript support" off \
+		X "X Window support" on \
+		DEFAULT "set MOETTF the default font" off
 
 .include <bsd.port.pre.mk>
 
-.if defined(WANT_CJK)
+.if defined(WITH_CJK)
 RUN_DEPENDS+=	bg5latex:${PORTSDIR}/chinese/CJK
 .endif
-.if defined(WANT_GS)
+.if defined(WITH_GS)
 RUN_DEPENDS+=	${LOCALBASE}/share/ghostscript/Resource/ai0/CMap/Identity-H:${PORTSDIR}/print/adobe-cmaps
 .endif
 
 pre-fetch:
-.if defined(WANT_CJK)
+.if defined(WITH_CJK)
 	@${ECHO} "CJK support will be added."
 .endif
-.if defined(WANT_GS)
+.if defined(WITH_GS)
 	@${ECHO} "Ghostscript support will be added."
 .endif
 .if defined(WITHOUT_X)
 	@${ECHO} "X Window support will NOT be added."
 .endif
-.if defined(DEFAULT)
+.if defined(WITH_DEFAULT)
 	@${ECHO} "MOETTF will be set as default font."
-.endif
-.if !defined(WANT_CJK) && !defined(WANT_GS) && !defined(WITHOUT_X) && !defined(DEFAULT)
-	@${ECHO} --
-	@${ECHO} "Type \"make WANT_CJK=yes\" if you want CJK support."
-	@${ECHO} "Type \"make WANT_GS=yes\" if you want Ghostscript support."
-	@${ECHO} "Type \"make WITHOUT_X=yes\" if you DONT want X Window support."
-	@${ECHO} "Type \"make DEFAULT=yes\" to set MOETTF the default font."
-	@${ECHO} "You can use them in combinations."
-	@${ECHO} --
 .endif
 
 do-extract:
--- moettf.patch ends here ---


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: pav 
State-Changed-When: Fri Aug 20 22:15:44 GMT 2004 
State-Changed-Why:  
This will break INSTALL_ENV. You can't use OPTIONS-generated 
variables above .include <bsd.port.pre.mk> 


Responsible-Changed-From-To: freebsd-ports-bugs->pav 
Responsible-Changed-By: pav 
Responsible-Changed-When: Fri Aug 20 22:15:44 GMT 2004 
Responsible-Changed-Why:  
Handle. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=70684 
State-Changed-From-To: feedback->closed 
State-Changed-By: pav 
State-Changed-When: Sat Aug 21 09:23:38 GMT 2004 
State-Changed-Why:  
Committed, thanks! 

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