Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 21 Aug 2007 23:47:11 +0800 (CST)
From:      Xin LI <delphij@FreeBSD.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        dinoex@FreeBSD.org
Subject:   ports/115688: [PATCH] OPTIONize graphics/gd
Message-ID:  <20070821154711.D0E8228449@tarsier.delphij.net>
Resent-Message-ID: <200708211550.l7LFo1rW002584@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         115688
>Category:       ports
>Synopsis:       [PATCH] OPTIONize graphics/gd
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Aug 21 15:50:01 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator:     Xin LI
>Release:        FreeBSD 6.2-RELEASE-p7 i386
>Organization:
The FreeBSD Project
>Environment:
System: FreeBSD tarsier.delphij.net 6.2-RELEASE-p7 FreeBSD 6.2-RELEASE-p7 #5: Thu Aug 2 22:09:50 CST 2007 delphij@tarsier.delphij.net:/usr/obj/usr/src/sys/TARSIER i386


>Description:
	The attached patch makes graphics/gd to use the OPTION infrastructure
	available from the ports collection, please consider.
>How-To-Repeat:
>Fix:

--- gd-optionize.diff begins here ---
Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/graphics/gd/Makefile,v
retrieving revision 1.84
diff -u -p -r1.84 Makefile
--- Makefile	28 Jun 2007 16:12:06 -0000	1.84
+++ Makefile	21 Aug 2007 15:41:25 -0000
@@ -31,6 +31,11 @@ LDFLAGS2=	-L${PREFIX}/lib -L${LOCALBASE}
 FEATURES=	GD_JPEG GD_FREETYPE GD_PNG GD_GIF GD_GIFANIM GD_OPENPOLYGON
 USE_LDCONFIG=	yes
 
+OPTIONS=	X11 "X11 support" off \
+		XPM "XPM color bitmap loading support (requires X11)" off \
+		FONTCONFIG "fontconfig library support (requires X11)" off \
+		ICONV "iconv support" off
+
 .include <bsd.port.pre.mk>
 
 .if !defined(WITHOUT_X11)
@@ -68,11 +73,7 @@ FONTBASE=	${X11BASE}/lib/X11/fonts
 
 pre-extract::
 	@${ECHO_MSG} ""
-	@${ECHO_MSG} "gd has the following tunables:"
-	@${ECHO_MSG} ""
-	@${ECHO_MSG} "	WITH_XPM=yes			Turns on Xpm support"
-	@${ECHO_MSG} "	WITH_FONTCONFIG=yes		Turns on Fontconfig support"
-	@${ECHO_MSG} "	WITH_ICONV=yes			Turns on iconv support"
+	@${ECHO_MSG} "GD_FONTS can be set to specify an alternative list of .bdf files"
 	@${ECHO_MSG} ""
 
 post-configure:
--- gd-optionize.diff ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



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