You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
73 lines
2.2 KiB
73 lines
2.2 KiB
18 years ago
|
#!/bin/sh
|
||
|
# --- T2-COPYRIGHT-NOTE-BEGIN ---
|
||
|
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
|
||
|
#
|
||
|
# T2 SDE: package/.../bdb/bdb-conf.in
|
||
|
# Copyright (C) 2004 - 2006 The T2 SDE Project
|
||
|
# Copyright (C) 1998 - 2003 Clifford Wolf
|
||
|
#
|
||
|
# More information can be found in the files COPYING and README.
|
||
|
#
|
||
|
# 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; version 2 of the License. A copy of the
|
||
|
# GNU General Public License can be found in the file COPYING.
|
||
|
# --- T2-COPYRIGHT-NOTE-END ---
|
||
|
|
||
|
# oficial patches
|
||
|
bdb_autopatch() {
|
||
|
local x=
|
||
|
for x in `match_source_file -p patch ${pkg%-java}` ; do
|
||
|
patch -p0 < $x
|
||
|
done
|
||
|
}
|
||
|
hook_add prepatch 5 'bdb_autopatch'
|
||
|
|
||
|
hook_add preconf 5 'cd build_unix'
|
||
|
configscript="../dist/configure"
|
||
|
|
||
|
# explicitly link to pthread (required for --as-needed)
|
||
|
var_append GCC_WRAPPER_APPEND ' ' "-lpthread"
|
||
|
|
||
|
if [[ $pkg = *-java ]]; then
|
||
|
pkgprefix -t java-dirtree
|
||
|
prefix=$( pkgprefix java-dirtree )
|
||
|
set_confopt
|
||
|
|
||
|
var_append confopt ' ' '--enable-java'
|
||
|
|
||
|
libjso_base=libdb_java
|
||
|
libversion=${ver:0:3}
|
||
|
|
||
|
# bdb doesn't like some of our make options
|
||
|
makeopt="libj_jarfile=$libjso_base-${libversion}.jar"
|
||
|
makeinstopt="$makeopt"
|
||
|
|
||
|
var_append makeinstopt ' ' install_lib
|
||
|
var_append makeinstopt ' ' "install_docs docdir=$docdir DOCLIST=java"
|
||
|
|
||
|
var_append makeopt ' ' $libjso_base-${libversion}.la
|
||
|
var_append makeopt ' ' java
|
||
|
else
|
||
|
var_append confopt ' ' '--enable-compat185'
|
||
|
var_append confopt ' ' '--enable-cxx'
|
||
|
|
||
|
# we need the install-sh here, since our gnu-install does not
|
||
|
# handle the transform-name ...
|
||
|
var_append confopt ' ' "--program-transform-name='s/db/db${ver:0:1}/'"
|
||
|
|
||
|
# bdb doesn't like some of our make options
|
||
|
makeopt="docdir=$docdir all" ; makeinstopt="docdir=$docdir install"
|
||
|
|
||
|
# create yet another alternative library name some programs use
|
||
|
# this will crate a symlink in the form libdb-4.1.so -> libdb41.so
|
||
|
hook_add postinstall 9 'ln -sfv libdb-${ver:0:3}.so $root/$libdir/libdb${ver:0:1}.so'
|
||
|
fi
|
||
|
|
||
|
includedir=$includedir/db${ver:0:1}
|
||
|
|
||
|
# bdb does copy the docs itself ...
|
||
|
createdocs=0
|
||
|
|
||
|
var_append makeinstopt ' ' "DESTDIR=$root"
|