wok-current view libboost-dev/receipt @ rev 25694
Fix cifs-utils, up grub2-efi-x64 stuff for iso EFI
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Sat Mar 30 18:05:22 2024 +0000 (7 months ago) |
parents | a23978bfa665 |
children |
line source
1 # SliTaz package receipt.
3 # Boost is a set of two types of libraries. Most of them are just
4 # headers with inline functions, these are included in this package
5 # named libboost-dev. Some few set of libraries require build and
6 # installation steps. These will be relocated and have their own two
7 # packages : libboost-name and libboost-name-dev.
9 PACKAGE="libboost-dev"
10 VERSION="1.78.0"
11 CATEGORY="development"
12 SHORT_DESC="Free peer-reviewed portable C++ source libraries."
13 MAINTAINER="chadi.elahmad@gmail.com"
14 LICENSE="MIT"
15 WEB_SITE="https://www.boost.org/"
17 # We have to do it this way because of the underscores
18 # to get a package with the slitaz version numbering
19 SOURCE="boost"
20 WGET_SOURCE="boost_1_78_0"
21 TARBALL="$WGET_SOURCE.tar.bz2"
22 #EXTRA_SOURCE_FILES="boost_changeset_75540.u"
23 WGET_URL="$SF_MIRROR/$SOURCE/$TARBALL"
25 DEPENDS="gcc-lib-base libboost-chrono-dev libboost-date-time-dev \
26 libboost-math-dev"
27 BUILD_DEPENDS="bzip2-dev expat expat-dev python python-dev zlib-dev"
28 RELOCATE_LIBS="{ date_time filesystem graph iostreams \
29 math program_options python regex serialization \
30 signal system test thread tr1 wave }"
33 # What is the latest version available today?
34 current_version()
35 {
36 wget -O - https://sourceforge.net/projects/boost/files/boost/ 2>/dev/null | \
37 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
38 sed '/scope="row/!d;s|.*/boost/||;s|/.*||;q'
39 }
41 # Rules to configure and make the package.
42 # Uses boost:build building tool for the compilation:
43 # Doesn't use DESTDIR.
44 # Doesn't recognize the $CONFIGURE_ARGS, gives an error back
45 # Have to add some params to get static libs compiled too
46 compile_rules()
47 {
48 # Determine if TOOLPREFIX has been defined in tazwok.conf as it should
49 if [ -z "$TOOLPREFIX" ] ; then
50 # Provide a default TOOLPREFIX value
51 TOOLPREFIX=$ARCH-pc-linux-gnu-
52 fi
54 # [ -s $SOURCES_REPOSITORY/boost_changeset_75540.u ] ||
55 # wget -O $SOURCES_REPOSITORY/boost_changeset_75540.u --no-check-certificate \
56 # 'https://svn.boost.org/trac/boost/changeset/75540?format=diff&new=75540'
57 # patch -p2 < $SOURCES_REPOSITORY/boost_changeset_75540.u || return 1
59 ./bootstrap.sh \
60 --prefix=$DESTDIR/usr \
61 --exec-prefix=$DESTDIR/usr \
62 --libdir=$DESTDIR/usr/lib \
63 --includedir=$DESTDIR/usr/include \
64 --with-toolset=gcc \
65 --without-icu &&
66 EXPAT_INCLUDE=/usr/include \
67 EXPAT_LIBPATH=/usr/lib \
68 ./b2 \
69 --prefix=$DESTDIR/usr \
70 --exec-prefix=$DESTDIR/usr \
71 --libdir=$DESTDIR/usr/lib \
72 --includedir=$DESTDIR/usr/include \
73 --build-type=minimal \
74 install
76 # create the missing links to the shared libs
77 cd $DESTDIR/usr/lib
78 #for i in `ls *-mt.so`; do
79 # boost_tmp=`echo $i | sed s/-gcc.*-mt//g`
80 # boost_tmp_mt=`echo $i | sed s/-gcc.*-mt/-mt/g`
81 # ln -s $i $boost_tmp
82 # ln -s $i $boost_tmp_mt
83 #done
84 #for i in `ls *-mt.a`; do
85 # boost_tmp=`echo $i | sed s/-gcc.*-mt//g`
86 # boost_tmp_mt=`echo $i | sed s/-gcc.*-mt/-mt/g`
87 # ln -s $i $boost_tmp
88 # ln -s $i $boost_tmp_mt
89 #done
90 }
92 # Rules to gen a SliTaz package suitable for Tazpkg.
93 genpkg_rules()
94 {
95 mkdir -p $fs/usr
97 cp -a $install/usr/lib $fs/usr
98 cp -a $install/usr/include $fs/usr
100 for i in $RELOCATE_LIBS; do
101 rm -f $fs/usr/lib/*$i*
102 rm -r -f $fs/usr/include/boost/*$i*
103 done
105 # libboost-chrono{-dev}
106 rm $fs/usr/lib/libboost_chrono*
107 rm $fs/usr/include/boost/chrono*
108 rm -r $fs/usr/include/boost/chrono
110 # Ensure remove .la files
111 find $fs -name "*.la" -delete
112 }