Skip to content
Permalink
Browse files

databases/db46:

new port submission
closes https://trac.macports.org/ticket/12557

git-svn-id: https://svn.macports.org/repository/macports/trunk/dports@28242 d073be05-634f-4543-b044-5fe20cf6d1d6
  • Loading branch information
raimue committed Aug 26, 2007
1 parent 84a7bda commit d9f713be41ffb8c65d81da6aa338502335b3a11b
Showing with 55 additions and 0 deletions.
  1. +55 −0 databases/db46/Portfile
@@ -0,0 +1,55 @@
# $Id$

PortSystem 1.0
name db46
version 4.6.19
categories databases
maintainers pumpkingod@gmail.com
platforms darwin
description The Berkeley DB package, version 4.6
long_description \
Version 4.6 of the Berkeley Data Base library which \
offers (key/value) storage with optional concurrent \
access or transactions interface. This port will \
install the AES (American Encryption Standard) \
enabled version.

homepage http://www.oracle.com/database/berkeley-db/index.html
master_sites http://download-west.oracle.com/berkeley-db/ \
http://download-east.oracle.com/berkeley-db/ \
http://download-uk.oracle.com/berkeley-db/
distname db-${version}
dist_subdir db4
checksums ${distname}${extract.suffix} \
md5 89c7390ff120d5ebf3eccc5f97249e79

worksrcdir ${distname}/build_unix

configure.cmd ../dist/configure
configure.args --enable-cxx \
--includedir=\\\${prefix}/include/db46 \
--libdir=\\\${prefix}/lib/db46 \
--program-transform-name="s,^db,db46," \
--disable-tcl

destroot.destdir prefix=${destroot}${prefix} \
docdir=${destroot}${prefix}/share/${name}-${version}/

post-destroot {
delete ${destroot}${prefix}/share
foreach lib { libdb.a libdb_cxx.a } {
delete ${destroot}${prefix}/lib/db46/${lib}
}
foreach bin { archive hotbackup dump printlog upgrade checkpoint recover verify deadlock load stat codegen } {
file rename ${destroot}${prefix}/bin/db_${bin} \
${destroot}${prefix}/bin/db46_${bin}
}
}

variant java {
configure.args-append --enable-java
}

platform darwin 8 {
configure.env CC=/usr/bin/gcc-4.0 CPP=/usr/bin/cpp-4.0 CXX=/usr/bin/g++-4.0
}

0 comments on commit d9f713b

Please sign in to comment.
You can’t perform that action at this time.