1 | # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 |
---|
2 | # $Id$ |
---|
3 | |
---|
4 | PortSystem 1.0 |
---|
5 | |
---|
6 | name dbxml |
---|
7 | |
---|
8 | version 2.4.16 |
---|
9 | |
---|
10 | revision 0 |
---|
11 | |
---|
12 | categories databases |
---|
13 | |
---|
14 | maintainers remy |
---|
15 | |
---|
16 | description Building Berkeley DB XML |
---|
17 | |
---|
18 | long_description Berkeley DB XML is an embedded XML database with XQuery-based access to documents stored in containers \ |
---|
19 | and indexed based on their content. Berkeley DB XML is built on top of Berkeley DB and inherits its rich \ |
---|
20 | features and attributes. Like Berkeley DB, Berkeley DB XML is a library, not a server, exposes a \ |
---|
21 | programmatic API for developers, and runs in process with the application with no need for human \ |
---|
22 | administration. |
---|
23 | |
---|
24 | homepage http://www.oracle.com/technology/products/berkeley-db/xml/index.html |
---|
25 | |
---|
26 | platforms darwin |
---|
27 | |
---|
28 | master_sites http://download.oracle.com/berkeley-db/ |
---|
29 | |
---|
30 | checksums md5 9d783769c484adeb50e2772203a4c56f \ |
---|
31 | sha1 023d0bab9791525d610c71cd5015771ed6b03334 \ |
---|
32 | rmd160 f469a17f9d05fcff3b2d83e4f7a429dbee1faee4 |
---|
33 | |
---|
34 | |
---|
35 | depends_lib port:db46 \ |
---|
36 | port:xercesc |
---|
37 | |
---|
38 | pre-configure { |
---|
39 | # compile xerces |
---|
40 | system "cd ${worksrcpath}/xerces-c-src && export XERCESCROOT=`pwd` && cd src/xercesc && ./runConfigure -plinux -d -cgcc -xg++ -minmem -nsocket -tnative -rnone -P${prefix} && make" |
---|
41 | # compile bdb |
---|
42 | system "cd ${worksrcpath}/db-4.6.21/build_unix && ../dist/configure --enable-cxx --prefix=${prefix} --enable-java --includedir=${prefix}/include/db46 --libdir=${prefix}/lib/db46 && make" |
---|
43 | |
---|
44 | |
---|
45 | } |
---|
46 | |
---|
47 | configure.pre_args |
---|
48 | |
---|
49 | configure.cmd cd xqilla && mkdir build && cd build && ../configure --prefix=${prefix} --with-xerces=${worksrcpath}/xerces-c-src && make && \ |
---|
50 | cd ${worksrcpath}/dbxml/build_unix && ../dist/configure --prefix=${destroot}${prefix} --with-berkeleydb=${worksrcpath}/db-4.6.21/build_unix --with-xqilla=${worksrcpath}/xqilla/build --with-xerces=${worksrcpath}/xerces-c-src LDFLAGS="-headerpad_max_install_names" |
---|
51 | build.cmd cd ${worksrcpath}/dbxml/build_unix && make |
---|
52 | build.target |
---|
53 | |
---|
54 | destroot.cmd cd ${worksrcpath}/xqilla/build && make install DESTDIR=${destroot} && cd ${worksrcpath}/dbxml/build_unix && make install |
---|
55 | destroot.type |
---|
56 | destroot.target |
---|
57 | |
---|
58 | post-destroot { |
---|
59 | # correct rpath (path to required libraries) as dbxml does not support DESTDIR |
---|
60 | system "cd ${destroot}${prefix}/bin && install_name_tool -change ${destroot}${prefix}/lib/libdbxml-2.4.dylib @executable_path/../lib/libdbxml-2.4.dylib dbxml" |
---|
61 | system "cd ${destroot}${prefix}/bin && install_name_tool -change ${destroot}${prefix}/lib/libdbxml-2.4.dylib @executable_path/../lib/libdbxml-2.4.dylib dbxml_dump" |
---|
62 | system "cd ${destroot}${prefix}/bin && install_name_tool -change ${destroot}${prefix}/lib/libdbxml-2.4.dylib @executable_path/../lib/libdbxml-2.4.dylib dbxml_load" |
---|
63 | system "cd ${destroot}${prefix}/bin && install_name_tool -change ${destroot}${prefix}/lib/libdbxml-2.4.dylib @executable_path/../lib/libdbxml-2.4.dylib dbxml_load_container" |
---|
64 | system "cd ${destroot}${prefix}/bin && install_name_tool -change ${destroot}${prefix}/lib/libdbxml-2.4.dylib @executable_path/../lib/libdbxml-2.4.dylib query_runner" |
---|
65 | # move docs folder to structure ${prefix}/share/doc/${name} |
---|
66 | system "mkdir -p ${destroot}${prefix}/share/doc/${name} && mv ${destroot}${prefix}/docs/* ${destroot}${prefix}/share/doc/${name}" |
---|
67 | } |
---|
68 | |
---|