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 | |
---|
3 | # $Id$ |
---|
4 | |
---|
5 | PortSystem 1.0 |
---|
6 | |
---|
7 | name libpqxx |
---|
8 | version 2.6.9 |
---|
9 | |
---|
10 | categories databases devel |
---|
11 | |
---|
12 | maintainers gmail.com:darren.weber.lists |
---|
13 | |
---|
14 | description Official C++ client API for PostgreSQL |
---|
15 | |
---|
16 | long_description \ |
---|
17 | libpqxx is the official C++ client API for PostgreSQL, \ |
---|
18 | the enterprise-strength open-source database software. \ |
---|
19 | There are many similar libraries for PostgreSQL and for other \ |
---|
20 | databases, some of them database independent. Most of these, however, \ |
---|
21 | are fairly C like in their programming style, and fail to take \ |
---|
22 | advantage of the full power of the C++ language as it has matured \ |
---|
23 | since the acceptance of the Standard in 1996. What libpqxx brings you \ |
---|
24 | is effective use of templates to reduce the inconvenience of dealing \ |
---|
25 | with type conversions, standard C++ strings to keep you from having \ |
---|
26 | to worry about buffer allocation and overflow attacks, exceptions \ |
---|
27 | to take the tedious and error prone plumbing around error handling out \ |
---|
28 | of your hands, constructors and destructors to bring resource \ |
---|
29 | management under control, and even basic object orientation to give \ |
---|
30 | you some extra reliability features that would be hard to get with \ |
---|
31 | most other database interfaces. |
---|
32 | |
---|
33 | |
---|
34 | homepage http://pqxx.org/development/libpqxx/ |
---|
35 | master_sites http://pqxx.org/download/software/libpqxx/ |
---|
36 | |
---|
37 | #distname ${name}-${version} |
---|
38 | distfiles ${distname}.tar.gz |
---|
39 | |
---|
40 | checksums \ |
---|
41 | ${distname}.tar.gz \ |
---|
42 | md5 0b0c64af41dfdeea8556dc359994e1cb \ |
---|
43 | sha1 8be9dcd0375337b170d5c94370fa896911d361f1 \ |
---|
44 | rmd160 c456b5a3ed3c96963aad334d3504ed0443a8f63e |
---|
45 | |
---|
46 | platforms darwin |
---|
47 | depends_lib port:postgresql83 |
---|
48 | |
---|
49 | # The pg_config script must be available on the path, so |
---|
50 | # export PATH=/usr/local/pgsql/bin:${PATH}. |
---|
51 | # If using the macports install of postgresql83, then use |
---|
52 | # export PATH=/opt/local/lib/postgresql83/bin:${PATH}. |
---|
53 | # Then configure and build using shared libraries: |
---|
54 | # ./configure --enable-shared; make; sudo make install |
---|
55 | # will put the library into /usr/local/... |
---|
56 | |
---|
57 | # The $binpath is READ-ONLY, so how to add the pg_config to the path? |
---|
58 | #configure.env \ |
---|
59 | # PATH={$prefix}/lib/postgresql83/bin:${binpath} |
---|
60 | |
---|
61 | |
---|
62 | # The default configure stage works fine, no need to over-ride it here. |
---|
63 | # Just add an extra configure argument: |
---|
64 | configure.args-append \ |
---|
65 | --enable-shared |
---|
66 | |
---|
67 | configure.env-append \ |
---|
68 | PG_CONFIG=${prefix}/lib/postgresql83/bin/pg_config |
---|
69 | |
---|