From owner-freebsd-ports@FreeBSD.ORG Wed Apr 1 03:11:39 2009 Return-Path: Delivered-To: ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5E6FE106566B for ; Wed, 1 Apr 2009 03:11:39 +0000 (UTC) (envelope-from mezz7@cox.net) Received: from eastrmmtao103.cox.net (eastrmmtao103.cox.net [68.230.240.9]) by mx1.freebsd.org (Postfix) with ESMTP id 03B098FC1B for ; Wed, 1 Apr 2009 03:11:38 +0000 (UTC) (envelope-from mezz7@cox.net) Received: from eastrmimpo01.cox.net ([68.1.16.119]) by eastrmmtao103.cox.net (InterMail vM.7.08.02.01 201-2186-121-102-20070209) with ESMTP id <20090401031138.TPXB21373.eastrmmtao103.cox.net@eastrmimpo01.cox.net>; Tue, 31 Mar 2009 23:11:38 -0400 Received: from localhost ([68.103.37.153]) by eastrmimpo01.cox.net with bizsmtp id a3Bd1b00D3JFCbG023BdMe; Tue, 31 Mar 2009 23:11:38 -0400 X-Authority-Analysis: v=1.0 c=1 a=kviXuzpPAAAA:8 a=6I5d2MoRAAAA:8 a=SlGrjBU4cTdN9dND4uMA:9 a=1d_fg1OtIQR4it2yKt-n3_ejD5EA:4 a=LY0hPdMaydYA:10 a=4vB-4DCPJfMA:10 a=SV7veod9ZcQA:10 X-CM-Score: 0.00 Date: Tue, 31 Mar 2009 21:12:33 -0600 To: "Dmitry Marakasov" From: "Jeremy Messenger" Content-Type: text/plain; format=flowed; delsp=yes; charset=utf-8 MIME-Version: 1.0 References: <3cb459ed0903270809s2da0fce7i66686a176d369931@mail.gmail.com> <20090331230246.GN1964@hades.panopticon> Content-Transfer-Encoding: 7bit Message-ID: In-Reply-To: <20090331230246.GN1964@hades.panopticon> User-Agent: Opera Mail/9.64 (Linux) Cc: ports@freebsd.org, Alexander Churanov , lwhsu@freebsd.org Subject: Re: Status of devel/boost upgrade X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Apr 2009 03:11:39 -0000 On Tue, 31 Mar 2009 17:02:46 -0600, Dmitry Marakasov wrote: > Hi! > > By the way, I've just ran into this sample of code in www/openvrml: > > .if exists(${LOCALBASE}/include/boost/python.hpp) > LIB_DEPENDS+= boost_python.4:${PORTSDIR}/devel/boost-python > .else > LIB_DEPENDS+= boost_regex.4:${PORTSDIR}/devel/boost > .endif > > and thought: why don't we create something like bsd.boost.mk so porters > don't have to invent a bicycle and add custom check for boost, and users > don't run into conflicts. > > Actually, it's going to be too little stuff there, so it may be > just included into port.mk, but I'd split it out for modularity. > The idea: > > ports: > USE_BOOST= yes|python No need bsd.boost.mk over that small stuff. How about resolve conflict for real by split boost and boost-python by have boost only install non-python stuff and boost-python install only python stuff? The USE_BOOST isn't going to solve anything either because the boost-check-python still stop and tell it's conflict. Cheers, Mezz > port.mk: > .if defined(USE_BOOST) > .include "${PORTSDIR}/Mk/bsd.boost.mk" > .endif > > bsd.boost.mk: > > .if defined(USE_BOOST) && ${USE_BOOST} == "python" > LIB_DEPENDS+= boost_python:${PORTSDIR}/devel/boost-python > do-configure: boost-check-python > .elif defined(USE_BOOST) > LIB_DEPENDS+= boost_thread:${PORTSDIR}/devel/boost > .endif > > boost-check-python: > .if !exists(${LOCALBASE}/include/boost/python.hpp) > @${ECHO_MSG} "This port requires boost built with python support." > @${ECHO_MSG} "Please uninstall boost and install boost-python." > @${FALSE} > .endif -- mezz7@cox.net - mezz@FreeBSD.org FreeBSD GNOME Team http://www.FreeBSD.org/gnome/ - gnome@FreeBSD.org