the Fink project is an effort to port
popular Unix programs to Mac OS X
Info4: <<
Package: db53-aes%type_pkg[-64bit]
Version: 5.3.15
Revision: 1
Type: -64bit (boolean)
Architecture: ( %type_raw[-64bit] = -64bit ) powerpc, ( %type_raw[-64bit] = -64bit ) i386
License: BSD
Description: Berkeley DB embedded database - crypto
DescPackaging: <<
Downloading source now requires a login which breaks fink.
Source can be freely distributed however so I'm providing my own copy.
<<
Homepage: http://www.oracle.com/database/berkeley-db/index.html
Maintainer: Daniel Johnson
Source: http://dl.dropbox.com/u/9988666/db-%v.tar.gz
Source-MD5: 5493fb5f7cc3915887c836b096f18773
Replaces: <<
db, db3, db31 (<< 3.1.17-8),
db4-ssl, db4,
db41-ssl, db41,
db42-ssl, db42,
db43-ssl, db43,
db44-aes, db44,
db47-aes, db47, db47-aes-64bit, db47-64bit,
db48-aes, db48, db48-aes-64bit, db48-64bit,
db50-aes, db50, db50-aes-64bit, db50-64bit,
db51-aes, db51, db51-aes-64bit, db51-64bit,
db53-aes, db53-aes-64bit
<<
Conflicts: <<
db, db3, db31 (<< 3.1.17-8),
db4-ssl, db4,
db41-ssl, db41,
db42-ssl, db42,
db43-ssl, db43,
db44-aes, db44,
db47-aes, db47, db47-aes-64bit, db47-64bit,
db48-aes, db48, db48-aes-64bit, db48-64bit,
db50-aes, db50, db50-aes-64bit, db50-64bit,
db51-aes, db51, db51-aes-64bit, db51-64bit,
db53-aes, db53-aes-64bit
<<
Depends: db53-aes%type_pkg[-64bit]-shlibs (=%v-%r), ( %type_raw[-64bit] = -64bit ) 64bit-cpu
BuildDepends: fink (>= 0.26.2)
BuildDependsOnly: true
NoSetLDFlags: true
NoSetCPPFlags: true
SetCFlags: -Os
SetCXXFlags: -Os
UseMaxBuildJobs: true
ConfigureParams: <<
--includedir=%p/include/db4 \
--libdir='${prefix}/%lib' \
--disable-static \
--enable-compat185 \
--enable-dump185 \
--enable-cxx \
--enable-stl \
--enable-sql \
--enable-sql_codegen
<<
GCC: 4.0
CompileScript: <<
#! /bin/sh -ex
set +x
if [ -e /usr/local/include/db.h ]; then
echo "-----WARNING-----WARNING-----WARNING-----"
echo "You seem to have a Berkeley DB installation in /usr/local."
echo "This is known to cause %N to fail to build."
echo "Please rename /usr/local/include/db.h temporarily and try again."
echo "-----WARNING-----WARNING-----WARNING-----"
exit 1
fi
set -x
VERSIONS="-avoid-version -XCClinker -current_version -XCClinker %v -XCClinker -compatibility_version -XCClinker 5.3 -no-undefined"
LIBDB="libdb-5.3.la"
LIBDBCXX="libdb_cxx-5.3.la"
LIBDBSTL="libdb_stl-5.3.la"
LIBDBSQL="libdb_sql-5.3.la"
cd build_unix;
if [ "%type_raw[-64bit]" == "-64bit" ]; then
export CC="gcc -m64"
export CXX="g++ -m64"
else
export CC="gcc"
export CXX="g++"
fi
# On 10.4, libSystem does not contain _gethostuuid :
if [ `sw_vers -productVersion|cut -f2 -d.` -lt 5 ] ; then export CFLAGS="-DSQLITE_ENABLE_LOCKING_STYLE=0 $CFLAGS" ; fi
F77=no ../dist/configure %c
perl -pi.bak -e 's,api_java,,g' Makefile
make UTIL_PROGS=""
rm ".libs/$LIBDB" $LIBDB
make SOLINK="\$(LIBTOOL) --mode=link --tag=CC $CC $VERSIONS" UTIL_PROGS=""
rm ".libs/$LIBDBCXX" $LIBDBCXX
make XSOLINK="\$(LIBTOOL) --mode=link --tag=CXX $CXX $VERSIONS" UTIL_PROGS=""
rm ".libs/$LIBDBSTL" $LIBDBSTL
make XSOLINK="\$(LIBTOOL) --mode=link --tag=CXX $CXX $VERSIONS" UTIL_PROGS=""
rm ".libs/$LIBDBSQL" $LIBDBSQL
make SOLINK="\$(LIBTOOL) --mode=link --tag=CC $CC $VERSIONS" UTIL_PROGS=""
make
<<
InstallScript: <<
#! /bin/sh -ev
(cd build_unix; make install prefix=%I docdir=%I/share/doc/db53-doc/docs includedir=%I/include/db4 libdir=%I/%lib) || exit 1
binfiles="db_archive db_checkpoint dbsql db_deadlock db_dump db_dump185 db_hotbackup db_load db_printlog db_recover db_stat db_upgrade db_verify"
for binfile in $binfiles ; do
mv %i/bin/$binfile %i/bin/$binfile.%N
done
mkdir -p %I/include/db5
cp %I/include/db4/* %I/include/db5
<<
# I was an idiot. Clean up my mess.
PreInstScript: rm -rf %p/include/db4
SplitOff: <<
Package: %N-shlibs
Depends: ( %type_raw[-64bit] = -64bit ) 64bit-cpu
Description: Shared Libraries for %N
Files: %lib/libdb-5.3.dylib %lib/libdb_cxx-5.3.dylib %lib/libdb_stl-5.3.dylib %lib/libdb_sql-5.3.dylib %lib/libdb-5.3.la %lib/libdb_cxx-5.3.la %lib/libdb_stl-5.3.la %lib/libdb_sql-5.3.la
Shlibs: <<
%p/%lib/libdb-5.3.dylib 5.3.0 %n (>= 5.3.15-1) %type_num[-64bit]
%p/%lib/libdb_cxx-5.3.dylib 5.3.0 %n (>= 5.3.15-1) %type_num[-64bit]
%p/%lib/libdb_stl-5.3.dylib 5.3.0 %n (>= 5.3.15-1) %type_num[-64bit]
%p/%lib/libdb_sql-5.3.dylib 5.3.0 %n (>= 5.3.15-1) %type_num[-64bit]
<<
DocFiles: LICENSE
<<
SplitOff2: <<
Package: %N-bin
Depends: %N-shlibs (= %v-%r), ( %type_raw[-64bit] = -64bit ) 64bit-cpu
Conflicts: db3-bin (<< 3.3.11-25), db31 (<< 3.1.17-2), db4-ssl-bin (<< 4.0.14-24), db4-bin (<< 4.0.14-24), db41-ssl-bin (<< 4.1.25-20), db42-ssl-bin (<< 4.2.52-14), db41-bin (<< 4.1.25-20), db42-bin (<< 4.2.52-14), db43-ssl-bin
Replaces: db3-bin, db4 (<< 4.0.14-4), db31 (<< 3.1.17-2), db4-ssl-bin (<< 4.0.14-24), db4-bin (<< 4.0.14-24), db41-ssl-bin (<< 4.1.25-20), db42-ssl-bin (<< 4.2.52-14), db41-bin (<< 4.1.25-20), db42-bin (<< 4.2.52-14), db43-ssl-bin
Description: Binary utilities for %N
Files: bin
DocFiles: LICENSE
PostInstScript: <<
binfiles="db_archive db_checkpoint dbsql db_deadlock db_dump db_dump185 db_hotbackup db_load db_printlog db_recover db_stat db_upgrade db_verify"
priority=`echo %N | sed -e 's/[^0-9]//g'`
for binfile in $binfiles ; do
update-alternatives --install %p/bin/$binfile $binfile %p/bin/$binfile.%N $priority
done
<<
PreRmScript: <<
if [ $1 != "upgrade" ]; then
binfiles="db_archive db_checkpoint dbsql db_deadlock db_dump db_dump185 db_hotbackup db_load db_printlog db_recover db_stat db_upgrade db_verify"
for binfile in $binfiles ; do
update-alternatives --remove $binfile %p/bin/$binfile.%N
done
fi
<<
<<
SplitOff3: <<
Package: %N-doc
Description: Documentation for %N
Files: share/doc/db53-doc
DocFiles: LICENSE
<<
DocFiles: LICENSE README
InfoTest: TestScript: cd test/micro; sh test_micro || exit 2
<<