wok-next annotate db5/receipt @ rev 21099

Update doxygen (1.8.15), git (2.20.1); add db5 (5.3.28)
TODO: switch to using /etc/daemons.conf.d/ in other packages too.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Tue Jan 01 22:49:19 2019 +0200 (2019-01-01)
parents
children 1bccb307f229
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@21099 27
al@21099 28 CAT_libdb5="libs|libraries"
al@21099 29 CAT_libdb5_cxx="libs|libraries for C++ support"
al@21099 30
al@21099 31 TAGS_std="database"
al@21099 32
al@21099 33 compile_rules() {
al@21099 34 # fix for compilation with current versions of g++
al@21099 35 sed -i 's/\(__atomic_compare_exchange\)/\1_db/' src/dbinc/atomic.h
al@21099 36
al@21099 37 cd $src/build_unix
al@21099 38 ../dist/configure \
al@21099 39 --enable-cxx \
al@21099 40 --enable-compat185 \
al@21099 41 --enable-dbm \
al@21099 42 --disable-static \
al@21099 43 $CONFIGURE_ARGS &&
al@21099 44 make &&
al@21099 45 make docdir=/usr/share/doc/$PACKAGE-$VERSION install || return 1
al@21099 46
al@21099 47 find $install -type f -exec chmod u+w '{}' \; # 444->644, 555->755
al@21099 48 find $install -type d -exec chmod g-w '{}' \; # 775->755
al@21099 49 chown -R 0:0 $install
al@21099 50 }