2009-10-13 06:54:09 +02:00
|
|
|
# Template file for 'db'
|
|
|
|
pkgname=db
|
2012-01-12 09:40:13 +01:00
|
|
|
version=4.8.30
|
2013-04-08 20:21:31 +02:00
|
|
|
revision=4
|
2010-01-14 00:16:21 +01:00
|
|
|
wrksrc="db-${version}"
|
2011-10-24 14:14:47 +02:00
|
|
|
build_style=gnu-configure
|
2010-01-14 00:16:21 +01:00
|
|
|
build_wrksrc="build_unix"
|
2009-10-13 06:54:09 +02:00
|
|
|
configure_script="../dist/configure"
|
|
|
|
configure_args="--enable-compat185 --enable-cxx --enable-o_direct
|
2013-02-07 00:59:18 +01:00
|
|
|
--enable-posixmutexes --disable-static"
|
2009-10-13 06:54:09 +02:00
|
|
|
make_build_args="LIBSO_LIBS=-lpthread"
|
|
|
|
short_desc="The Berkeley DB from Oracle"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2013-02-07 00:59:18 +01:00
|
|
|
homepage="http://www.oracle.com/technetwork/products/berkeleydb/overview/index.html"
|
|
|
|
license="BSD"
|
|
|
|
distfiles="http://download.oracle.com/berkeley-db/db-${version}.tar.gz"
|
2012-01-12 09:40:13 +01:00
|
|
|
checksum=e0491a07cdb21fb9aa82773bbbedaeb7639cbd0e7f96147ab46141e0045db72a
|
2009-10-13 06:54:09 +02:00
|
|
|
|
2012-02-06 16:51:04 +01:00
|
|
|
post_install() {
|
2013-03-26 00:14:46 +01:00
|
|
|
chmod 755 ${DESTDIR}/usr/bin/*
|
2013-04-10 23:28:39 +02:00
|
|
|
vmkdir usr/share/doc/${pkgname}-${version}
|
|
|
|
mv ${DESTDIR}/usr/docs/* ${DESTDIR}/usr/share/doc/${pkgname}-${version}
|
2009-10-13 06:54:09 +02:00
|
|
|
rmdir ${DESTDIR}/usr/docs
|
|
|
|
}
|
2013-04-10 23:28:39 +02:00
|
|
|
|
|
|
|
db-devel_package() {
|
|
|
|
depends="libdb>=${version} libdb-cxx>=${version}"
|
|
|
|
short_desc+=" -- development files"
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr/include
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
db-docs_package() {
|
|
|
|
short_desc+=" -- documentation files"
|
|
|
|
noarch=yes
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr/share/doc
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
db_package() {
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr/bin
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
libdb-cxx_package() {
|
|
|
|
short_desc+=" -- C++ shared libraries"
|
|
|
|
pkg_install() {
|
|
|
|
vmove "usr/lib/libdb_cxx*.so*"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
libdb_package() {
|
|
|
|
short_desc+=" -- C shared libraries"
|
|
|
|
replaces="db<4.8.26"
|
|
|
|
pkg_install() {
|
|
|
|
vmove "usr/lib/libdb.so*"
|
|
|
|
vmove "usr/lib/libdb-*.so*"
|
|
|
|
}
|
|
|
|
}
|