[Midnightbsd-cvs] mports [19728] trunk/devel/boost-all: update boost library to 1.55.0.
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Wed Aug 12 22:25:55 EDT 2015
Revision: 19728
http://svnweb.midnightbsd.org/mports/?rev=19728
Author: laffer1
Date: 2015-08-12 22:25:54 -0400 (Wed, 12 Aug 2015)
Log Message:
-----------
update boost library to 1.55.0. Based on FreeBSD port
Modified Paths:
--------------
trunk/devel/boost-all/Makefile
trunk/devel/boost-all/compiled.mk
trunk/devel/boost-all/pkg-message.threads
Added Paths:
-----------
trunk/devel/boost-all/common.mk
Modified: trunk/devel/boost-all/Makefile
===================================================================
--- trunk/devel/boost-all/Makefile 2015-08-13 02:03:37 UTC (rev 19727)
+++ trunk/devel/boost-all/Makefile 2015-08-13 02:25:54 UTC (rev 19728)
@@ -1,47 +1,25 @@
+# Created by: Alexander Churanov <churanov.port.maintainer at gmail.com>
# $MidnightBSD$
PORTNAME= boost-all
-PORTVERSION= 1.48.0
-PORTVERSUFFIX= ${PORTVERSION:C/\.[0-9]+$//}
-CATEGORIES= devel
-DISTNAME= boost_${PORTVERSION:S/./_/g}
-MASTER_SITES= # empty
-DISTFILES= # none
-EXTRACT_ONLY= # empty
+USES= metaport
-MAINTAINER= ports at MidnightBSD.org
COMMENT?= The "meta-port" for boost libraries
+
LICENSE= mit
-CONFLICTS= boost-python-1* boost-1*
+OPTIONS_DEFINE= JAM LIBRARIES PYTHON DOCS
+OPTIONS_DEFAULT= JAM LIBRARIES
+JAM_DESC= Boost.Jam - Build tool from the boost.org
+LIBRARIES_DESC= Free portable C++ libraries
+PYTHON_DESC= Boost.Python - interfacing Python and C++
-OPTIONS= JAM "Boost.Jam - Build tool from the boost.org" on \
- LIBRARIES "Free portable C++ libraries" on \
- PYTHON "Boost.Python - interfacing Python and C++" off \
- DOCS "Documentation & examples" on
+.include "common.mk"
-NO_BUILD= yes
+LIBRARIES_RUN_DEPENDS= ${LOCALBASE}/lib/libboost_thread.so:${PORTSDIR}/devel/boost-libs
+JAM_RUN_DEPENDS= ${LOCALBASE}/bin/bjam:${PORTSDIR}/devel/boost-jam
+PYTHON_RUN_DEPENDS= ${LOCALBASE}/lib/libboost_python.so:${PORTSDIR}/devel/boost-python-libs
+DOCS_RUN_DEPENDS= ${LOCALBASE}/share/doc/boost/doc/html/index.html:${PORTSDIR}/devel/boost-docs
-.include <bsd.port.pre.mk>
-
-.if !defined(WITHOUT_LIBRARIES)
-RUN_DEPENDS+= ${LOCALBASE}/lib/libboost_thread.so:${PORTSDIR}/devel/boost-libs
-.endif
-
-.if !defined(WITHOUT_JAM)
-RUN_DEPENDS+= ${LOCALBASE}/bin/bjam:${PORTSDIR}/devel/boost-jam
-.endif
-
-.if !defined(WITHOUT_PYTHON)
-RUN_DEPENDS+= ${LOCALBASE}/lib/libboost_python.so:${PORTSDIR}/devel/boost-python-libs
-.endif
-
-.if !defined(WITHOUT_DOCS)
-RUN_DEPENDS+= ${LOCALBASE}/share/doc/boost/doc/html/index.html:${PORTSDIR}/devel/boost-docs
-.endif
-
-do-install:
- ${DO_NADA}
-
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
Added: trunk/devel/boost-all/common.mk
===================================================================
--- trunk/devel/boost-all/common.mk (rev 0)
+++ trunk/devel/boost-all/common.mk 2015-08-13 02:25:54 UTC (rev 19728)
@@ -0,0 +1,13 @@
+# $MIdnightBSD$
+
+PORTVERSION= 1.55.0
+PORTVERSUFFIX= ${PORTVERSION:C/\.[0-9]+$//}
+DISTNAME= boost_${PORTVERSION:S/./_/g}
+
+CATEGORIES= devel
+MAINTAINER= ports at MidnightBSD.org
+
+CONFLICTS+= boost-python-1* boost-1*
+MASTER_SITES= SF/boost/boost/${PORTVERSION}
+
+USES+= tar:bzip2
Property changes on: trunk/devel/boost-all/common.mk
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Modified: trunk/devel/boost-all/compiled.mk
===================================================================
--- trunk/devel/boost-all/compiled.mk 2015-08-13 02:03:37 UTC (rev 19727)
+++ trunk/devel/boost-all/compiled.mk 2015-08-13 02:25:54 UTC (rev 19728)
@@ -1,51 +1,58 @@
-
-USE_GCC= 4.2+
USE_LDCONFIG= yes
-BOOST_SHARED_LIB_VER= 4
PKGMESSAGE= ${WRKDIR}/pkg-message
-MAKE_JOBS_SAFE= yes
BJAM= bjam
-CXXFLAGS+= -Wno-long-long
+USES+= compiler:c++11-lang
-PLIST_SUB+= BOOST_SHARED_LIB_VER=${BOOST_SHARED_LIB_VER}
+PLIST_SUB+= BOOST_SHARED_LIB_VER=${PORTVERSION} COMPAT_LIB_VER=5
PKG_MESSAGE_FILE_THREADS= ${PORTSDIR}/devel/boost-all/pkg-message.threads
PKG_MESSAGE_FILE_PYTHON= ${PORTSDIR}/devel/boost-all/pkg-message.python
-BOOST_TOOLS= gcc
+.include <bsd.port.pre.mk>
-BJAM_OPTIONS= --layout=system --disable-long-double
-BJAM_OPTIONS+= ${_MAKE_JOBS}
-.if defined (WITH_VERBOSE_BUILD)
-BJAM_OPTIONS+= -d2
+BJAM_ARGS= --layout=system \
+ --prefix=${PREFIX} \
+
+.if ${ARCH} == amd64
+BJAM_ARGS+= cxxflags=-fPIC
.endif
-.if defined (WITHOUT_DEBUG)
-BJAM_OPTIONS+= variant=release
+# Our compiler-flags will be added AFTER those set by bjam. We remove
+# the optimization level, because Boost sets it itself (to -O3 in case
+# of gcc/g++):
+BJAM_ARGS+= cxxflags="${CXXFLAGS:N-O*}" cflags="${CFLAGS:N-O*}"
+
+BOOST_TOOLSET= ${CHOSEN_COMPILER_TYPE}
+
+BJAM_ARGS+= --toolset=${BOOST_TOOLSET} \
+ ${_MAKE_JOBS}
+
+.if ${PORT_OPTIONS:MVERBOSE_BUILD}
+BJAM_ARGS+= -d2
+.endif
+
+.if ${PORT_OPTIONS:MDEBUG}
+BJAM_ARGS+= debug
.else
-BJAM_OPTIONS+= variant=debug
+BJAM_ARGS+= release
.endif
-BJAM_OPTIONS+= threading=multi
+BJAM_ARGS+= threading=multi \
+ link=shared,static
-# Unless WITH_OPTIMIZED_CFLAGS is defined, the port uses
-# CXXFLAGS as defined by the user (overridng Boost's 'speed'
-# configuration scheme
-BJAM_OPTIONS+= optimization=speed
-.if defined (WITH_OPTIMIZED_CFLAGS)
-BJAM_OPTIONS+= inlining=full
-CXXFLAGS+= -O3
+BJAM_ARGS+= optimization=speed
+.if ${PORT_OPTIONS:MOPTIMIZED_CFLAGS}
+BJAM_ARGS+= inlining=full
.endif
-customize-boost-build:
-# Do the right thing(tm) for pthread support and respect CXX
- @${REINPLACE_CMD}\
- -e 's|%%PTHREAD_CFLAGS%%|${PTHREAD_CFLAGS}|'\
- -e 's|%%PTHREAD_LIBS%%|${PTHREAD_LIBS}|'\
- -e 's|%%CXX%%|${CXX}|'\
- -e 's|%%CXXFLAGS%%|${CXXFLAGS}|'\
- ${WRKSRC}/tools/build/v2/tools/gcc.jam
+# ccache build fails when using precompiled headers, on a cached build.
+.if defined(WITH_CCACHE_BUILD)
+BJAM_ARGS+= pch=off
+.endif
- @${REINPLACE_CMD}\
- -e 's|%%PTHREAD_LIBS%%|${PTHREAD_LIBS:S/-//}|'\
- ${WRKSRC}/tools/build/v2/tools/python.jam
+post-patch:
+.if defined(USE_BINUTILS)
+ @${ECHO} "using ${BOOST_TOOLSET} : : ${CXX} : <linkflags>-B${LOCALBASE}/bin ;" >> ${WRKSRC}/tools/build/v2/user-config.jam
+.else
+ @${ECHO} "using ${BOOST_TOOLSET} : : ${CXX} ;" >> ${WRKSRC}/tools/build/v2/user-config.jam
+.endif
Modified: trunk/devel/boost-all/pkg-message.threads
===================================================================
--- trunk/devel/boost-all/pkg-message.threads 2015-08-13 02:03:37 UTC (rev 19727)
+++ trunk/devel/boost-all/pkg-message.threads 2015-08-13 02:25:54 UTC (rev 19728)
@@ -1,4 +1,4 @@
You have built the Boost library with thread support.
-Don't forget to add %%PTHREAD_LIBS%% to your linker options when
+Don't forget to add -pthread to your linker options when
linking your code.
More information about the Midnightbsd-cvs
mailing list