From 402372fe49d4b59bb5b59d809eaf138aa09cf34f Mon Sep 17 00:00:00 2001 From: Ying-Chieh Liao Date: Mon, 27 May 2002 02:42:11 +0000 Subject: [PATCH] If port is built with WITHOUT_PYTHON set, don't include Python libraries in package list PR: 38580 Submitted by: maintainer --- devel/boost/Makefile | 5 ++++- devel/boost/pkg-plist | 4 ++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/devel/boost/Makefile b/devel/boost/Makefile index a137578cb313..af1b25e6de71 100644 --- a/devel/boost/Makefile +++ b/devel/boost/Makefile @@ -15,7 +15,10 @@ DISTNAME= ${PORTNAME}_${PORTVERSION:S/./_/g} MAINTAINER= pmarquis@pobox.com MAKE_ENV= BOOST_ROOT=${WRKSRC} TOOLS=gcc BUILD="debug release" -.if !defined(WITHOUT_PYTHON) +.if defined(WITHOUT_PYTHON) +PLIST_SUB+= BOOST_PYTHON="@comment " +.else +PLIST_SUB+= BOOST_PYTHON="" USE_PYTHON= yes MAKE_ENV+= PYTHON=${PYTHON_CMD} PYTHON_VERSION=${_PYTHON_VERSION} \ PYTHON_INCLUDES="${PYTHON_INCLUDEDIR}" \ diff --git a/devel/boost/pkg-plist b/devel/boost/pkg-plist index 275503478b57..160030533e49 100644 --- a/devel/boost/pkg-plist +++ b/devel/boost/pkg-plist @@ -598,8 +598,8 @@ include/boost/utility/base_from_member.hpp include/boost/utility_fwd.hpp include/boost/version.hpp include/boost/weak_ptr.hpp -lib/libboost_python.so -lib/libboost_python_debug.so +%%BOOST_PYTHON%%lib/libboost_python.so +%%BOOST_PYTHON%%lib/libboost_python_debug.so lib/libboost_regex.a lib/libboost_regex.so lib/libboost_regex_debug.a