# --- T2-COPYRIGHT-NOTE-BEGIN --- # T2 SDE: package/*/bdb/bdb-conf.in # Copyright (C) 2004 - 2023 The T2 SDE Project # Copyright (C) 1998 - 2003 ROCK Linux Project # # This Copyright note is generated by scripts/Create-CopyPatch, # 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 version 2. # --- T2-COPYRIGHT-NOTE-END --- # official 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' var_append confopt ' ' '--enable-dbm' # 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 -j$SDECFG_PARALLEL_MAX 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"