diff --git a/srcpkgs/boost-build b/srcpkgs/boost-build new file mode 120000 index 0000000000..baef819c48 --- /dev/null +++ b/srcpkgs/boost-build @@ -0,0 +1 @@ +boost \ No newline at end of file diff --git a/srcpkgs/boost-devel b/srcpkgs/boost-devel new file mode 120000 index 0000000000..baef819c48 --- /dev/null +++ b/srcpkgs/boost-devel @@ -0,0 +1 @@ +boost \ No newline at end of file diff --git a/srcpkgs/boost-jam b/srcpkgs/boost-jam new file mode 120000 index 0000000000..baef819c48 --- /dev/null +++ b/srcpkgs/boost-jam @@ -0,0 +1 @@ +boost \ No newline at end of file diff --git a/srcpkgs/boost-python b/srcpkgs/boost-python new file mode 120000 index 0000000000..baef819c48 --- /dev/null +++ b/srcpkgs/boost-python @@ -0,0 +1 @@ +boost \ No newline at end of file diff --git a/srcpkgs/boost/boost-build.template b/srcpkgs/boost/boost-build.template new file mode 100644 index 0000000000..3d8ee967d2 --- /dev/null +++ b/srcpkgs/boost/boost-build.template @@ -0,0 +1,22 @@ +# Template file for 'boost-build'. +# +short_desc="${short_desc} (Boost.Build framework)" +long_desc=" + Boost is a set of free, peer-reviewed, C++ libraries. The emphasis is on + portable libraries which work well with the ISO C++ Standard Library. + + This package provides the Boost.Build module, which includes bjam. This + is the tool used to build Boost itself, and is based on Perforce Jam." + +conf_files="/etc/site-config.jam" +noarch=yes + +Add_dependency run bjam +Add_dependency run boost-devel + +do_install() +{ + mkdir -p ${DESTDIR}/usr/share + mv ${SRCPKGDESTDIR}/usr/share/boost-build ${DESTDIR}/usr/share + mv ${SRCPKGDESTDIR}/etc ${DESTDIR} +} diff --git a/srcpkgs/boost/boost-devel.template b/srcpkgs/boost/boost-devel.template new file mode 100644 index 0000000000..f257fab534 --- /dev/null +++ b/srcpkgs/boost/boost-devel.template @@ -0,0 +1,21 @@ +# Template file for 'boost-devel'. +# +short_desc="${sourcepkg} development files" +long_desc="${long_desc} + + This package contains files for development, headers, static libs, etc." + +noverifyrdeps=yes + +Add_dependency run libstdc++-devel +Add_dependency run zlib-devel +Add_dependency run bzip2-devel +Add_dependency run python-devel +Add_dependency run boost + +do_install() +{ + mkdir -p ${DESTDIR}/usr/lib + mv ${SRCPKGDESTDIR}/usr/include ${DESTDIR}/usr + mv ${SRCPKGDESTDIR}/usr/lib/lib*.{a,so} ${DESTDIR}/usr/lib +} diff --git a/srcpkgs/boost/boost-jam.template b/srcpkgs/boost/boost-jam.template new file mode 100644 index 0000000000..d1c0811e36 --- /dev/null +++ b/srcpkgs/boost/boost-jam.template @@ -0,0 +1,17 @@ +# Template file for 'boost-jam'. +# +short_desc="${short_desc} (Boost.Jam utility)" +long_desc=" + Boost is a set of free, peer-reviewed, C++ libraries. The emphasis is on + portable libraries which work well with the ISO C++ Standard Library. + + This package provides the Boost.Jam module, a make-like utility. This + is the tool used to build Boost itself, and is based on Perforce Jam." + +Add_dependency run glibc + +do_install() +{ + mkdir -p ${DESTDIR}/usr/bin + mv ${SRCPKGDESTDIR}/usr/bin/bjam ${DESTDIR}/usr/bin +} diff --git a/srcpkgs/boost/boost-python.template b/srcpkgs/boost/boost-python.template new file mode 100644 index 0000000000..6d44e96902 --- /dev/null +++ b/srcpkgs/boost/boost-python.template @@ -0,0 +1,21 @@ +# Template file for 'boost-python'. +# +short_desc="${short_desc} - python bindings" +long_desc=" + Boost is a set of free, peer-reviewed, C++ libraries. The emphasis is on + portable libraries which work well with the ISO C++ Standard Library. + + This package adds static and shared binary libraries providing support for + the Boost Python library." + +Add_dependency run libgcc +Add_dependency run glibc +Add_dependency run libstdc++ +Add_dependency run boost +Add_dependency run python + +do_install() +{ + mkdir -p ${DESTDIR}/usr/lib + mv ${SRCPKGDESTDIR}/usr/lib/libboost_python* ${DESTDIR}/usr/lib +} diff --git a/srcpkgs/boost/depends b/srcpkgs/boost/depends new file mode 100644 index 0000000000..cdaf9e8cb2 --- /dev/null +++ b/srcpkgs/boost/depends @@ -0,0 +1,2 @@ +abi_depends=">=1.41.0" +api_depends="${abi_depends}" diff --git a/srcpkgs/boost/template b/srcpkgs/boost/template new file mode 100644 index 0000000000..a82886ce72 --- /dev/null +++ b/srcpkgs/boost/template @@ -0,0 +1,63 @@ +# Template file for 'boost' +pkgname=boost +version=1.42.0 +_boostver="$(echo $version|sed 's|\.|_|g')" +wrksrc=${pkgname}_${_boostver} +distfiles="${SOURCEFORGE_SITE}/$pkgname/${pkgname}_${_boostver}.tar.bz2" +build_style=custom-install +short_desc="Free peer-reviewed portable C++ source libraries" +maintainer="Juan RP " +checksum=4b1eb95bd250ce15ac66435d6167f225b072b0d3a7eb72477a31847a9ca9e609 +long_desc=" + boost is a library for applications dealing with netlink sockets. + The library provides an interface for raw netlink messaging and various + netlink family specific interfaces." + +subpackages="boost-build boost-devel boost-jam boost-python" +Add_dependency run libgcc +Add_dependency run glibc +Add_dependency run libstdc++ +Add_dependency run zlib +Add_dependency run bzip2 +Add_dependency run icu-libs +Add_dependency build zlib-devel +Add_dependency build bzip2-devel +Add_dependency build icu-devel +Add_dependency build python + +do_build() +{ + [ -n "${XBPS_MAKEJOBS}" ] && _jobs="-j${XBPS_MAKEJOBS}" + + cd ${wrksrc} && ./bootstrap.sh -prefix=${DESTDIR}/usr || return 1 + cd ${wrksrc} && ./bjam cflags=-fno-strict-aliasing ${_jobs} || return 1 +} + +do_install() +{ + # Install bjam + _bindir="bin.linuxx86" + [ "${xbps_machine}" = "x86_64" ] && _bindir="bin.linuxx86_64" + install -m755 -d ${DESTDIR}/usr/bin + install -m755 ${wrksrc}/tools/jam/src/${_bindir}/bjam \ + ${DESTDIR}/usr/bin || return 1 + + # Install headers/libs + cd ${wrksrc} && ./bjam --prefix=${DESTDIR}/usr install || return 1 + + # Install Boost.Build stuff. + install -d ${DESTDIR}/usr/share/boost-build + cd ${wrksrc}/tools/build/v2 && cp -a . ${DESTDIR}/usr/share/boost-build + find ${DESTDIR}/usr/share/boost-build \ + -type f -name \*.orig -exec rm -f {} \; + ( echo '# System wide configuration file for Boost.Build.' ; \ + echo ; \ + echo 'using gcc ;' ; ) >${wrksrc}/site-config.jam + install -m644 -D ${wrksrc}/site-config.jam \ + ${DESTDIR}/etc/site-config.jam + + # license + install -d ${DESTDIR}/usr/share/licenses/${pkgname} + install -m644 ${wrksrc}/LICENSE_1_0.txt \ + ${DESTDIR}/usr/share/licenses/${pkgname}/ || return 1 +} diff --git a/xbps-src/common/mapping_shlib_binpkg.txt b/xbps-src/common/mapping_shlib_binpkg.txt index c6e45e0e9e..ab64b0863d 100644 --- a/xbps-src/common/mapping_shlib_binpkg.txt +++ b/xbps-src/common/mapping_shlib_binpkg.txt @@ -566,3 +566,24 @@ libnm-glib.so NetworkManager NetworkManager-devel libnm-glib-vpn.so NetworkManager NetworkManager-devel libpanel-applet-2.so gnome-panel gnome-panel-devel libgnome-window-settings.so gnome-control-center gnome-control-center-devel +libboost_date_time.so.1.42 boost boost-devel +libboost_math_tr1f.so.1.42 boost boost-devel +libboost_serialization.so.1.42 boost boost-devel +libboost_filesystem.so.1.42 boost boost-devel +libboost_math_tr1l.so.1.42 boost boost-devel +libboost_signals.so.1.42 boost boost-devel +libboost_graph.so.1.42 boost boost-devel +libboost_math_tr1.so.1.42 boost boost-devel +libboost_system.so.1.42 boost boost-devel +libboost_iostreams.so.1.42 boost boost-devel +libboost_prg_exec_monitor.so.1.42 boost boost-devel +libboost_thread.so.1.42 boost boost-devel +libboost_math_c99f.so.1.42 boost boost-devel +libboost_program_options.so.1.42 boost boost-devel +libboost_unit_test_framework.so.1.42 boost boost-devel +libboost_math_c99l.so.1.42 boost boost-devel +libboost_python.so.1.42 boost-python boost-devel +libboost_wave.so.1.42 boost boost-devel +libboost_math_c99.so.1.42 boost boost-devel +libboost_regex.so.1.42 boost boost-devel +libboost_wserialization.so.1.42 boost boost-devel