1 | # $Id$ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | |
---|
5 | name postgresql-devel |
---|
6 | version devel |
---|
7 | maintainers nomaintainer |
---|
8 | categories databases |
---|
9 | platforms darwin |
---|
10 | description The most advanced open-source database available anywhere. |
---|
11 | long_description PostgreSQL is Object-Relational Database Management System. \ |
---|
12 | It supports almost all SQL constructs, including transactions, \ |
---|
13 | subselects, and user-defined types and functions. Write-ahead \ |
---|
14 | logging means increased performance while retaining data \ |
---|
15 | integrity. |
---|
16 | |
---|
17 | homepage http://www.postgresql.org/ |
---|
18 | distname pgsql |
---|
19 | |
---|
20 | fetch.type cvs |
---|
21 | cvs.root :pserver:anoncvs@anoncvs.postgresql.org:/projects/cvsroot |
---|
22 | cvs.password macportrules |
---|
23 | cvs.date "13-March-2009" |
---|
24 | |
---|
25 | depends_lib port:readline port:openssl port:zlib port:libxml2 port:libxslt port:ossp-uuid |
---|
26 | depends_build port:bison |
---|
27 | |
---|
28 | worksrcdir ${distname} |
---|
29 | |
---|
30 | set libdir ${prefix}/lib/${name} |
---|
31 | configure.args --sysconfdir=${prefix}/etc/${name} \ |
---|
32 | --bindir=${libdir}/bin \ |
---|
33 | --libdir=${libdir} \ |
---|
34 | --includedir=${prefix}/include/${name} \ |
---|
35 | --datadir=${prefix}/share/${name} \ |
---|
36 | --mandir=${prefix}/share/man \ |
---|
37 | --without-docdir \ |
---|
38 | --with-includes=${prefix}/include \ |
---|
39 | --with-libraries=${prefix}/lib \ |
---|
40 | --with-openssl \ |
---|
41 | --with-bonjour \ |
---|
42 | --with-readline \ |
---|
43 | --with-zlib \ |
---|
44 | --with-libxml \ |
---|
45 | --with-libxslt \ |
---|
46 | --enable-thread-safety \ |
---|
47 | --enable-integer-datetimes \ |
---|
48 | --with-ossp-uuid |
---|
49 | configure.cppflags-append -I${prefix}/include/ossp |
---|
50 | |
---|
51 | build.type gnu |
---|
52 | build.target |
---|
53 | |
---|
54 | test.run yes |
---|
55 | test.target check |
---|
56 | |
---|
57 | livecheck.check regex |
---|
58 | livecheck.url ${homepage} |
---|
59 | livecheck.regex (8.4.\[0-9\]+) |
---|
60 | |
---|
61 | set contribs "adminpack dblink fuzzystrmatch lo uuid-ossp pg_buffercache pg_trgm pgcrypto tsearch2 vacuumlo xml2" |
---|
62 | |
---|
63 | post-build { |
---|
64 | foreach contrib ${contribs} { |
---|
65 | system "cd ${worksrcpath}/contrib/${contrib}/ && ${build.cmd}" |
---|
66 | } |
---|
67 | } |
---|
68 | |
---|
69 | post-destroot { |
---|
70 | foreach contrib ${contribs} { |
---|
71 | system "echo contrib: \"${contrib}\"" |
---|
72 | system "cd ${worksrcpath}/contrib/${contrib}/ && \ |
---|
73 | ${destroot.cmd} install ${destroot.destdir} && touch DONE" |
---|
74 | } |
---|
75 | system "cd ${destroot}${prefix}/bin && ln -sf ${libdir}/bin/psql psql-devel" |
---|
76 | file delete -force ${destroot}${prefix}/share/doc/${name} \ |
---|
77 | ${destroot}${prefix}/share/man |
---|
78 | } |
---|
79 | |
---|
80 | variant python description {add support for python} { |
---|
81 | depends_lib-append port:python25 |
---|
82 | configure.args-append --with-python |
---|
83 | configure.env-append PYTHON=${prefix}/bin/python2.5 |
---|
84 | } |
---|
85 | |
---|
86 | variant krb5 description {add support for Kerberos 5 authentication} { |
---|
87 | configure.args-append --with-krb5 |
---|
88 | } |
---|
89 | |
---|
90 | variant perl description {add Perl support} { |
---|
91 | depends_lib-append bin:perl:perl5 |
---|
92 | configure.args-append --with-perl |
---|
93 | } |
---|
94 | |
---|
95 | variant tcl description {add Tcl support} { |
---|
96 | depends_lib-append port:tcl |
---|
97 | configure.args-append --with-tcl --with-tclconfig=${prefix}/lib |
---|
98 | configure.env-append TCLSH=${prefix}/bin/tclsh |
---|
99 | } |
---|
100 | |
---|
101 | post-install { |
---|
102 | ui_msg "\nTo use the postgresql server, install the postgresql-server-devel port" |
---|
103 | } |
---|
104 | |
---|