Ticket #24429: Portfile.2

File Portfile.2, 2.8 KB (added by remy.apfelbacher@…, 15 years ago)

dbxml-third-party-libs (dependent Portfile for dbxml)

Line 
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
4PortSystem          1.0
5
6name                dbxml-third-party-libs
7
8version             2.5.16
9
10revision                        1
11
12categories          databases
13
14maintainers         remy
15
16description         Berkeley DB XML - third-party libraries
17
18long_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                                        This packages provides requires third-party-libraries
25
26homepage            http://www.oracle.com/technology/products/berkeley-db/xml/index.html
27
28platforms           darwin
29
30master_sites        http://download.oracle.com/berkeley-db/
31
32distfiles                       dbxml-2.5.16.tar.gz
33
34worksrcdir                      dbxml-2.5.16
35
36checksums           md5         2732618d5c4f642fba3d2a564a025986 \
37                    sha1        46f0e6b301e556c2502e4da0cd96a599acc53837 \
38                    rmd160      fdb4c85271cb84a8e31931d8fb287ad17fafff9c
39
40# empty configure args as we don't do anything
41configure                       {}
42
43# compile/make bdb, xerces and xqilla
44use_parallel_build  no
45
46build.cmd                       ./buildall.sh --prefix=${prefix} --enable-java --with-berkeleydb-prefix=${prefix}/share/dbxml/bdb --with-xerces-prefix=${prefix}/share/dbxml/xerces --with-xqilla-prefix=${prefix}/share/dbxml/xqilla -m 'make DESTDIR=${destroot}' --build-one=berkeleydb && \
47                                        ./buildall.sh --prefix=${prefix} --enable-java --with-berkeleydb-prefix=${prefix}/share/dbxml/bdb --with-xerces-prefix=${prefix}/share/dbxml/xerces --with-xqilla-prefix=${prefix}/share/dbxml/xqilla -m 'make DESTDIR=${destroot}' --build-one=xerces && \
48                                        ./buildall.sh --prefix=${prefix} --enable-java --with-berkeleydb-prefix=${prefix}/share/dbxml/bdb --with-xerces-prefix=${prefix}/share/dbxml/xerces --with-xqilla-prefix=${prefix}/share/dbxml/xqilla -m 'make DESTDIR=${destroot}' --build-one=xqilla
49
50build.target
51
52destroot.cmd           
53
54destroot.type
55
56destroot.target
57
58post-destroot {
59    # copy docs folder to structure ${prefix}/share/dbxml/<lib>/docs within destroot
60    system "mkdir -p ${destroot}${prefix}/share/dbxml/bdb/doc    && cp -R ${worksrcpath}/db-4.8.26/docs/*   ${destroot}${prefix}/share/dbxml/bdb/doc"
61    system "mkdir -p ${destroot}${prefix}/share/dbxml/xerces/doc && cp -R ${worksrcpath}/xerces-c-src/doc/* ${destroot}${prefix}/share/dbxml/xerces/doc"
62    system "mkdir -p ${destroot}${prefix}/share/dbxml/xqilla/doc && cp -R ${worksrcpath}/xqilla/docs/*      ${destroot}${prefix}/share/dbxml/xqilla/doc"
63}