2009-10-13 04:54:09 +00:00
|
|
|
# Template file for 'db'
|
|
|
|
pkgname=db
|
2013-05-09 14:13:04 +00:00
|
|
|
version=5.3.21
|
|
|
|
revision=1
|
2010-01-13 23:16:21 +00:00
|
|
|
wrksrc="db-${version}"
|
2013-05-09 14:13:04 +00:00
|
|
|
short_desc="The Berkeley DB embedded database system"
|
2009-10-13 04:54:09 +00:00
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2013-02-06 23:59:18 +00: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"
|
2013-05-09 14:13:04 +00:00
|
|
|
checksum=ddd92a930317df92021054c03992392db9ea5cddba43bef8920d392a82114fb8
|
|
|
|
|
|
|
|
do_configure() {
|
|
|
|
cd build_unix
|
2013-05-26 08:41:55 +00:00
|
|
|
../dist/configure ${configure_args} --enable-compat185 \
|
2013-05-09 14:13:04 +00:00
|
|
|
--enable-cxx --enable-static --enable-dbm
|
|
|
|
}
|
|
|
|
|
|
|
|
do_build() {
|
|
|
|
cd build_unix
|
|
|
|
make LIBSO_LIBS=-lpthread ${makejobs}
|
|
|
|
}
|
|
|
|
|
|
|
|
do_install() {
|
|
|
|
cd build_unix
|
|
|
|
make DESTDIR=${DESTDIR} install
|
2009-10-13 04:54:09 +00:00
|
|
|
|
2013-03-25 23:14:46 +00:00
|
|
|
chmod 755 ${DESTDIR}/usr/bin/*
|
2013-04-10 21:28:39 +00:00
|
|
|
vmkdir usr/share/doc/${pkgname}-${version}
|
|
|
|
mv ${DESTDIR}/usr/docs/* ${DESTDIR}/usr/share/doc/${pkgname}-${version}
|
2009-10-13 04:54:09 +00:00
|
|
|
rmdir ${DESTDIR}/usr/docs
|
|
|
|
}
|
2013-04-10 21:28:39 +00:00
|
|
|
|
|
|
|
db-devel_package() {
|
|
|
|
depends="libdb>=${version} libdb-cxx>=${version}"
|
2013-05-09 14:13:04 +00:00
|
|
|
short_desc+=" - development files"
|
2013-04-10 21:28:39 +00:00
|
|
|
pkg_install() {
|
|
|
|
vmove usr/include
|
2013-05-09 14:13:04 +00:00
|
|
|
vmove "usr/lib/*.a"
|
2013-04-10 21:28:39 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
db-docs_package() {
|
2013-05-09 14:13:04 +00:00
|
|
|
short_desc+=" - documentation files"
|
2013-04-10 21:28:39 +00:00
|
|
|
noarch=yes
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr/share/doc
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
libdb-cxx_package() {
|
2013-05-09 14:13:04 +00:00
|
|
|
short_desc+=" - C++ shared libraries"
|
2013-04-10 21:28:39 +00:00
|
|
|
pkg_install() {
|
|
|
|
vmove "usr/lib/libdb_cxx*.so*"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
libdb_package() {
|
2013-05-09 14:13:04 +00:00
|
|
|
short_desc+=" - C shared libraries"
|
2013-04-10 21:28:39 +00:00
|
|
|
pkg_install() {
|
|
|
|
vmove "usr/lib/libdb.so*"
|
|
|
|
vmove "usr/lib/libdb-*.so*"
|
|
|
|
}
|
|
|
|
}
|
2013-05-09 14:13:04 +00:00
|
|
|
|
|
|
|
db_package() {
|
|
|
|
pkg_install() {
|
|
|
|
vmove all
|
|
|
|
}
|
|
|
|
}
|