From barner@in.tum.de  Tue Aug 24 10:53:28 2004
Return-Path: <barner@in.tum.de>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id BF73516A4CE
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 24 Aug 2004 10:53:28 +0000 (GMT)
Received: from tuminfo2.informatik.tu-muenchen.de (tuminfo2.informatik.tu-muenchen.de [131.159.0.81])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 30D1E43D5F
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 24 Aug 2004 10:53:28 +0000 (GMT)
	(envelope-from barner@in.tum.de)
Received: by zi025.glhnet.mhn.de (Postfix, from userid 1000)
	id 62A6BC1B9; Tue, 24 Aug 2004 12:53:29 +0200 (CEST)
Message-Id: <20040824105329.62A6BC1B9@zi025.glhnet.mhn.de>
Date: Tue, 24 Aug 2004 12:53:29 +0200 (CEST)
From: Simon Barner <barner@in.tum.de>
Reply-To: Simon Barner <barner@in.tum.de>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: devel/boost: convert to OPTIONS
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         70898
>Category:       ports
>Synopsis:       devel/boost: convert to OPTIONS
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    sem
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Tue Aug 24 11:00:32 GMT 2004
>Closed-Date:    Tue Aug 24 20:05:54 GMT 2004
>Last-Modified:  Tue Aug 24 20:05:54 GMT 2004
>Originator:     Simon Barner
>Release:        FreeBSD 5.3-ALPHA i386
>Organization:
>Environment:
FreeBSD zi025.glhnet.mhn.de 5.3-ALPHA FreeBSD 5.3-ALPHA #0: Mon Aug 23 14:34:13
CEST 2004     root@zi025.glhnet.mhn.de:/mnt/fbsd521/usr/src/sys/i386/compile/KIS
TE  i386

>Description:

I finally remembered to change the boost port to make use of the
OPTIONS infrastructure.

>How-To-Repeat:
N/A

>Fix:

--- Makefile.patch begins here ---
--- Makefile.orig	Tue Aug 24 12:41:57 2004
+++ Makefile	Tue Aug 24 12:43:36 2004
@@ -4,18 +4,6 @@
 # Whom:				  Paul Marquis <pmarquis@pobox.com>
 #
 # $FreeBSD: ports/devel/boost/Makefile,v 1.17 2004/05/29 21:06:36 pav Exp $
-#
-# This port has the following tunable options:
-#
-# option                | desscription                | default
-# ----------------------+-----------------------------+---------
-# WITH_PYTHON           | enable Python support       | off
-# WITH_DEBUG            | build debugging symbols     | off
-# WITHOUT_THREADS       | turn off threading support  | off
-# WITH_OPTIMIZED_CFLAGS | enable -O3 optimization     | off
-#                       | (otherwise CFLAGS are       |
-#                       |  respected)                 |
-# VERBOSE_BUILD         | show compiler messages      | off
 
 PORTNAME=	boost
 PORTVERSION=	1.31.0
@@ -46,9 +34,15 @@
 PLIST_SUB=	BOOST_PYTHON="@comment "
 .endif
 
+OPTIONS=	VERBOSE_BUILD	"Show compiler messages"	off \
+		DEBUG		"Build debugging symbols"	off \
+		THREADS		"Thread support"		on  \
+		OPTIMIZED_CFLAGS "Enable -O3 optimization"	off \
+		PYTHON		"Build Python bindings"		off
+
 .include <bsd.port.pre.mk>
 
-.if defined (VERBOSE_BUILD)
+.if defined (WITH_VERBOSE_BUILD)
 BJAM_OPTIONS=	-d2
 .endif
 
@@ -109,41 +103,6 @@
 		${WRKSRC}/tools/build/v1/gcc-tools.jam
 
 do-build:
-# Print configuration
-	@${ECHO_CMD}
-	@${ECHO_CMD} Selected options:
-	@${ECHO_CMD} \(see the Makefile for a description of available tunables\)
-	@${ECHO_CMD}
-	@${ECHO_CMD} -n o Debugging symbols....
-.if defined (WITH_DEBUG)
-	@${ECHO_CMD} yes
-.else
-	@${ECHO_CMD} no
-.endif
-
-	@${ECHO_CMD} -n o Thread support.......
-.if defined (WITHOUT_THREADS)
-	@${ECHO_CMD} no
-.else
-	@${ECHO_CMD} yes
-.endif
-
-	@${ECHO_CMD} -n o Extra optimization...
-.if defined (WITH_OPTIMIZED_CFLAGS)
-	@${ECHO_CMD} yes
-.else
-	@${ECHO_CMD} no
-.endif
-
-	@${ECHO_CMD} -n o Python support.......
-.if defined (WITH_PYTHON)
-	@${ECHO_CMD} yes
-.else
-	@${RM} -rf ${WRKSRC}/libs/python
-	@${ECHO_CMD} no
-.endif
-	@${ECHO_CMD}
-
 # build the bjam project build tool
 	@cd ${WRKSRC}/tools/build/jam_src && ./build.sh gcc
 
--- Makefile.patch ends here ---

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->sem 
Responsible-Changed-By: sem 
Responsible-Changed-When: Tue Aug 24 19:46:17 GMT 2004 
Responsible-Changed-Why:  
Take it. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=70898 
State-Changed-From-To: open->closed 
State-Changed-By: sem 
State-Changed-When: Tue Aug 24 20:05:45 GMT 2004 
State-Changed-Why:  
Committed, thanks! 

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