summaryrefslogtreecommitdiff
path: root/devel/boost-python-libs/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'devel/boost-python-libs/Makefile')
-rw-r--r--devel/boost-python-libs/Makefile61
1 files changed, 14 insertions, 47 deletions
diff --git a/devel/boost-python-libs/Makefile b/devel/boost-python-libs/Makefile
index ab32735afab1..b951369a7ac3 100644
--- a/devel/boost-python-libs/Makefile
+++ b/devel/boost-python-libs/Makefile
@@ -1,22 +1,17 @@
-# Ports collection makefile for: boost-python-libs
-# Date Created: 18 March 2009
-# Whom: Alexander Churanov <churanov.port.maintainer@gmail.com>
-#
+# Created by: Alexander Churanov <churanov.port.maintainer@gmail.com>
# $FreeBSD$
-#
PORTNAME= boost-python-libs
COMMENT= Framework for interfacing Python and C++
-USE_BZIP2= yes
USE_PYTHON= yes
-OPTIONS= VERBOSE_BUILD "Show compiler messages" off \
- DEBUG "Build debugging symbols" off \
- OPTIMIZED_CFLAGS "Enable -O3 optimization" off
+OPTIONS_DEFINE= VERBOSE_BUILD DEBUG OPTIMIZED_CFLAGS
+VERBOSE_BUILD_DESC= Show compiler messages
+
+.include "${.CURDIR}/../boost-all/common.mk"
.include <bsd.port.pre.mk>
-.include "${PORTSDIR}/devel/boost-all/common.mk"
.include "${PORTSDIR}/devel/boost-all/compiled.mk"
.if ${ARCH} == "sparc64"
@@ -32,41 +27,18 @@ RUN_DEPENDS+= ${LOCALBASE}/lib/libboost_thread.so.${BOOST_SHARED_LIB_VER}:${PORT
BUILD_DEPENDS+= ${BJAM}:${PORTSDIR}/devel/boost-jam
-post-patch: customize-boost-build
-
do-build:
- ${ECHO_CMD} "using python : " ${PYTHON_VER} " : " ${PYTHON_CMD} " : " ${PYTHON_INCLUDEDIR} ";" >> ${WRKSRC}/tools/build/v2/site-config.jam
+ @${ECHO_CMD} "using python : " ${PYTHON_VER} " : " ${PYTHON_CMD} " : " ${PYTHON_INCLUDEDIR} ";" >> ${WRKSRC}/tools/build/v2/site-config.jam
# build the library
- cd ${WRKSRC} && \
- ${SETENV} ${MAKE_ENV} ${BJAM} ${BJAM_OPTIONS} --prefix=${PREFIX}\
- --toolset=${BOOST_TOOLS} --with-python
-
-# Remove non-python headers
- cd ${WRKSRC} && \
- ${FIND} boost -not -path '*boost/python*' -delete
+ @cd ${WRKSRC} && \
+ ${SETENV} ${MAKE_ENV} ${BJAM} ${BJAM_ARGS} --with-python stage
+ @cd ${WRKSRC}/stage/lib && \
+ ( for l in lib*.so.*; do ${LN} -sf $${l} $${l%.*}; done )
do-install:
-# Install libraries
- ${FIND} ${WRKSRC}/bin.v2/libs/python -type f -name "*.a"\
- -exec ${INSTALL_DATA} \{\} ${PREFIX}/lib \;
-
- ${FIND} -E ${WRKSRC}/bin.v2/libs/python -type f \
- -regex '.*so' \
- -exec ${INSTALL_DATA} \{\} ${PREFIX}/lib \;
-
-# Create symlink for shared library
- cd ${PREFIX}/lib/ && \
- ${MV} "libboost_python.so" "libboost_python.so.${BOOST_SHARED_LIB_VER}" && \
- ${LN} -fs "libboost_python.so.${BOOST_SHARED_LIB_VER}" "libboost_python.so"
-
-# Install headers
- cd ${WRKSRC} && \
- ${FIND} boost -type d -a \! -name "*.orig"\
- -exec ${MKDIR} ${PREFIX}/include/\{\} \;
-
- cd ${WRKSRC} && \
- ${FIND} boost -type f -a \! -name "*.orig"\
- -exec ${INSTALL_DATA} \{\} ${PREFIX}/include/\{\} \;
+ @cd ${WRKSRC}/stage/lib && ${PAX} -rw -p p libboost* ${PREFIX}/lib
+# For some reasons BJAM forget about the links
+ @cd ${WRKSRC}/stage/ && ${FIND} lib -type l | ${PAX} -rw -p p ${PREFIX}
post-install:
# display pkg-message
@@ -82,12 +54,7 @@ post-install:
-e "s|%%PYTHON_LIBDIR%%|${PYTHON_LIBDIR}|g" \
-e "s|%%PYTHON_VERSION%%|${PYTHON_VERSION}|g" ${PKGMESSAGE}
@if [ -s ${PKGMESSAGE} ]; then \
- ${ECHO_CMD} ; \
- ${ECHO_CMD} "===============================================================================" ; \
- ${ECHO_CMD} ; \
- ${CAT} ${PKGMESSAGE}; \
- ${ECHO_CMD} "===============================================================================" ; \
- ${ECHO_CMD} ; \
+ ${CAT} ${PKGMESSAGE}; \
fi
.include <bsd.port.post.mk>