wok-next view db5/receipt @ rev 21391
updated opencpn (1.3.2 -> 5.0.0)
author | Hans-G?nter Theisgen |
---|---|
date | Fri Apr 17 16:52:11 2020 +0100 (2020-04-17) |
parents | 20af6f0f7070 |
children |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="db5"
4 VERSION="5.3.28"
5 CATEGORY="misc"
6 SHORT_DESC="Berkeley database system"
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="BSD"
9 WEB_SITE="https://www.oracle.com/database/berkeley-db/db.html"
10 LFS="http://www.linuxfromscratch.org/blfs/view/svn/server/db.html"
12 TARBALL="db-$VERSION.tar.gz"
13 WGET_URL="https://download.oracle.com/berkeley-db/$TARBALL"
14 TARBALL_SHA1="fa3f8a41ad5101f43d08bc0efb6241c9b6fc1ae9"
16 COOKOPTS="force-arch" # different .h
18 SPLIT="$PACKAGE-dev lib$PACKAGE lib$PACKAGE-cxx $PACKAGE"
20 COPY_dev="@dev libdb.so libdb_cxx.so" # put unversioned symlinks here to avoid confision with db6
21 COPY_libdb5="libdb-*so"
22 COPY_libdb5_cxx="libdb_cxx-*so"
24 DEPENDS_std="lib$PACKAGE"
25 DEPENDS_libdb5=" "
26 DEPENDS_libdb5_cxx=" "
27 DEPENDS_dev="$PACKAGE lib$PACKAGE lib$PACKAGE-cxx"
29 CAT_libdb5="libs|shared libraries"
30 CAT_libdb5_cxx="libs|shared libraries for C++ support"
32 TAGS_std="database"
34 compile_rules() {
35 # fix for compilation with current versions of g++
36 sed -i 's/\(__atomic_compare_exchange\)/\1_db/' src/dbinc/atomic.h
38 cd $src/build_unix
39 ../dist/configure \
40 --enable-cxx \
41 --enable-compat185 \
42 --enable-dbm \
43 --disable-static \
44 $CONFIGURE_ARGS &&
45 make &&
46 make docdir=/usr/share/doc/$PACKAGE-$VERSION install || return 1
48 find $install -type f -exec chmod u+w '{}' \; # 444->644, 555->755
49 find $install -type d -exec chmod g-w '{}' \; # 775->755
50 chown -R 0:0 $install
51 }