wok view libboost-dev/receipt @ rev 25570

created recipe for rubberband-dev
author Hans-G?nter Theisgen
date Sat May 13 10:31:53 2023 +0100 (18 months ago)
parents 754c91ee3cea
children d3556b8f5c3d
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.69.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_69_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 --without-icu &&
65 EXPAT_INCLUDE=/usr/include \
66 EXPAT_LIBPATH=/usr/lib \
67 ./bjam \
68 --prefix=$DESTDIR/usr \
69 --exec-prefix=$DESTDIR/usr \
70 --libdir=$DESTDIR/usr/lib \
71 --includedir=$DESTDIR/usr/include \
72 --build-type=minimal \
73 install
75 # create the missing links to the shared libs
76 cd $DESTDIR/usr/lib
77 #for i in `ls *-mt.so`; do
78 # boost_tmp=`echo $i | sed s/-gcc.*-mt//g`
79 # boost_tmp_mt=`echo $i | sed s/-gcc.*-mt/-mt/g`
80 # ln -s $i $boost_tmp
81 # ln -s $i $boost_tmp_mt
82 #done
83 #for i in `ls *-mt.a`; do
84 # boost_tmp=`echo $i | sed s/-gcc.*-mt//g`
85 # boost_tmp_mt=`echo $i | sed s/-gcc.*-mt/-mt/g`
86 # ln -s $i $boost_tmp
87 # ln -s $i $boost_tmp_mt
88 #done
89 }
91 # Rules to gen a SliTaz package suitable for Tazpkg.
92 genpkg_rules()
93 {
94 mkdir -p $fs/usr
96 cp -a $install/usr/lib $fs/usr
97 cp -a $install/usr/include $fs/usr
99 for i in $RELOCATE_LIBS; do
100 rm -f $fs/usr/lib/*$i*
101 rm -r -f $fs/usr/include/boost/*$i*
102 done
104 # libboost-chrono{-dev}
105 rm $fs/usr/lib/libboost_chrono*
106 rm $fs/usr/include/boost/chrono*
107 rm -r $fs/usr/include/boost/chrono
108 }