Ticket #1341: Portfile

File Portfile, 2.5 KB (added by danielluke (Daniel J. Luke), 17 years ago)

Updated portfile

Line 
1# $Id: Portfile,v 1.17 2003/11/03 16:51:28 wbb4 Exp $
2
3PortSystem 1.0
4name            db4
5version         4.2.52
6categories      databases
7maintainers     michaelm@opendarwin.org
8description     The Berkely DB package, revision 4
9homepage        http://www.sleepycat.com/update/
10platforms       darwin freebsd
11master_sites    http://www.sleepycat.com/update/snapshot/
12distname        db-${portversion}
13checksums       md5 cbc77517c9278cdb47613ce8cb55779f
14worksrcdir      ${distname}/build_unix
15configure.cmd   ../dist/configure
16configure.args  --enable-compat185 --enable-dump185 --enable-cxx \
17                                --includedir=${prefix}/include/db4 \
18                                --program-transform-name=s,^db,db4,
19
20platform darwin 7 { configure.args-append   --enable-tcl \
21                --with-tcl=/usr/lib }
22
23platform darwin 6 { depends_lib-append bin:tclsh8.4:tcl
24                                configure.args-append   --enable-tcl \
25                --with-tcl=${prefix}/lib }
26
27variant java { configure.args-append --enable-java }
28
29destroot.destdir  prefix=${destroot}${prefix} \
30                    includedir=${destroot}${prefix}/include/db4 \
31                    docdir=${destroot}${prefix}/share/${name}-${version}/
32
33post-destroot   { system "rm '${destroot}${prefix}/lib/libdb.a'
34                      rm '${destroot}${prefix}/lib/libdb.dylib'
35                      rm '${destroot}${prefix}/lib/libdb_cxx.a'
36                      rm '${destroot}${prefix}/lib/libdb_cxx.dylib'
37              cd '${destroot}${prefix}/bin/'
38              mv db_archive db4_archive
39                      mv db_dump db4_dump
40                      mv db_printlog db4_printlog
41                      mv db_upgrade db4_upgrade
42                      mv db_checkpoint db4_checkpoint
43                      mv db_dump185 db4_dump185
44                      mv db_recover db4_recover
45                      mv db_verify db4_verify
46                      mv db_deadlock db4_deadlock
47                      mv db_load db4_load
48                      mv db_stat db4_stat"
49}
50
51long_description Revision 4 of the Berkeley DB library. This version \
52                 uses an incompatible underlying database format than \
53                 revision 1 and a different standard API. Utilities are \
54                 included in the distribution to convert v1.85 databases \
55                 to v4 databases, and a backwards compatible API is \
56                 provided to maintain compatibility with programs using \
57                 the v1.85 interface.  There are minor interface changes \
58                 in this release which may require that DB applications \
59                 be modified and recompiled.  For a complete discussion \
60                 of interface changes, see: http://www.sleepycat.com/update/
61