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