From owner-freebsd-ports@FreeBSD.ORG Tue Mar 31 23:02:53 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 4CBED1065672; Tue, 31 Mar 2009 23:02:53 +0000 (UTC) (envelope-from amdmi3@amdmi3.ru) Received: from smtp.timeweb.ru (smtp.timeweb.ru [217.170.79.85]) by mx1.freebsd.org (Postfix) with ESMTP id 0605D8FC1E; Tue, 31 Mar 2009 23:02:52 +0000 (UTC) (envelope-from amdmi3@amdmi3.ru) Received: from [213.148.20.85] (helo=hive.panopticon) by smtp.timeweb.ru with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.69) (envelope-from ) id 1Lomyo-0003NS-UJ; Wed, 01 Apr 2009 03:02:50 +0400 Received: from hades.panopticon (hades.panopticon [192.168.0.32]) by hive.panopticon (Postfix) with ESMTP id 1B1971826; Wed, 1 Apr 2009 03:02:53 +0400 (MSD) Received: by hades.panopticon (Postfix, from userid 1000) id 8A38E10883C; Wed, 1 Apr 2009 03:02:46 +0400 (MSD) Date: Wed, 1 Apr 2009 03:02:46 +0400 From: Dmitry Marakasov To: Alexander Churanov Message-ID: <20090331230246.GN1964@hades.panopticon> References: <3cb459ed0903270809s2da0fce7i66686a176d369931@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <3cb459ed0903270809s2da0fce7i66686a176d369931@mail.gmail.com> User-Agent: Mutt/1.5.19 (2009-01-05) Cc: ports@freebsd.org, 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: Tue, 31 Mar 2009 23:02:53 -0000 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 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 -- Dmitry Marakasov . 55B5 0596 FF1E 8D84 5F56 9510 D35A 80DD F9D2 F77D amdmi3@amdmi3.ru ..: jabber: amdmi3@jabber.ru http://www.amdmi3.ru