|
|
# --- ROCK-COPYRIGHT-NOTE-BEGIN --- # # This copyright note is auto-generated by ./scripts/Create-CopyPatch. # Please add additional copyright information _after_ the line containing # the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by # the ./scripts/Create-CopyPatch script. Do not edit this copyright text! # # ROCK Linux: rock-src/package/base/bdb/bdb.conf # ROCK Linux is Copyright (C) 1998 - 2004 Clifford Wolf # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. A copy of the GNU General Public # License can be found at Documentation/COPYING. # # Many people helped and are helping developing ROCK Linux. Please # have a look at http://www.rocklinux.org/ and the Documentation/TEAM # file for details. # # --- ROCK-COPYRIGHT-NOTE-END ---
case "$xpkg" in bdb33) ver=3.3.11 ;; bdb40) ver=4.0.14 ;; bdb41) ver=4.1.25 ;; bdb42) ver=4.2.52 ;; *) echo_error "Not supported bdb package name: $xpkg" exit 1 esac
echo_status "Set package version number based on name: $ver"
hook_add preconf 2 'cd build_unix' configscript="../dist/configure"
var_append confopt ' ' '--enable-compat185' var_append confopt ' ' '--enable-cxx' var_append confopt ' ' "--includedir=$root/$prefix/include/${xpkg:1}"
# we need the install-sh here, since our gnu-install does not # handle the transform-name ... var_append confopt ' ' "--program-transform-name='s/db/${xpkg:1}/'"
# bdb doesn't like some of our make options makeopt="docdir=$docdir all" makeinstopt="docdir=$docdir install"
hook_add postinstall 8 'chmod 755 $libdir/libdb-${xpkg:3:1}.${xpkg:4:1}.so \ $libdir/libdb_cxx-${xpkg:3:1}.${xpkg:4:1}.so'
# create yet another alternative library name some programs use # this will crate a symlinks in the form libdb-4.1.so -> libdb41.so hook_add postinstall 9 'ln -sfv libdb-${xpkg:3:1}.${xpkg:4:1}.so $libdir/libdb${xpkg:3}.so' hook_add postinstall 9 'ln -sfv libdb-${xpkg:3:1}.${xpkg:4:1}.a $libdir/libdb${xpkg:3}.a'
# bdb does copy the docs itself ... createdocs=0
if [ $xpkg = bdb33 ] then pkg_bdb33_pm() { # this job should be done by Makefile :( ln -svf libdb-3.3.a $libdir/libdb-3.a ln -svf libdb_cxx-3.3.a $libdir/libdb_cxx-3.a }
hook_add postmake 3 'pkg_bdb33_pm'
# default for it's mayor version hook_add postmake 4 '[ -e $includedir/${xpkg:1:3} ] || \ ln -svf ${xpkg:1} $includedir/${xpkg:1:3}' fi
if [ $xpkg = bdb41 ] then # default symlinks db.h db_185.h db/ for headers hook_add postmake 3 "ln -sfv ${xpkg:1}/db.h $root/$prefix/include/db.h" hook_add postmake 3 "ln -sfv ${xpkg:1}/db_185.h $root/$prefix/include/db_185.h" hook_add postmake 3 "[ -e $includedir/db ] || \ ln -sfv ${xpkg:1} $includedir/db"
# and default for it's mayor version hook_add postmake 3 "[ -e $includedir/${xpkg:1:3} ] || \ ln -sfv ${xpkg:1} $includedir/${xpkg:1:3}" fi
if [ $xpkg = bdb42 ] then : not yet the default ## default symlinks db.h db_185.h db/ for headers #hook_add postmake 3 "ln -sfv ${xpkg:1}/db.h $root/$prefix/include/db.h" #hook_add postmake 3 "ln -sfv ${xpkg:1}/db_185.h $root/$prefix/include/db_185.h" fi
|