Ticket #16621: Portfile

File Portfile, 2.4 KB (added by darren.weber.lists@…, 16 years ago)

Portfile for libpqxx 2.6.9

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
3# $Id$
4
5PortSystem 1.0
6
7name        libpqxx
8version     2.6.9
9
10categories  databases devel
11
12maintainers gmail.com:darren.weber.lists
13
14description Official C++ client API for PostgreSQL
15
16long_description \
17libpqxx is the official C++ client API for PostgreSQL, \
18the enterprise-strength open-source database software. \
19There are many similar libraries for PostgreSQL and for other \
20databases, some of them database independent.  Most of these, however, \
21are fairly C like in their programming style, and fail to take \
22advantage of the full power of the C++ language as it has matured \
23since the acceptance of the Standard in 1996.  What libpqxx brings you \
24is effective use of templates to reduce the inconvenience of dealing \
25with type conversions, standard C++ strings to keep you from having \
26to worry about buffer allocation and overflow attacks, exceptions \
27to take the tedious and error prone plumbing around error handling out \
28of your hands, constructors and destructors to bring resource \
29management under control, and even basic object orientation to give \
30you some extra reliability features that would be hard to get with \
31most other database interfaces.
32
33
34homepage        http://pqxx.org/development/libpqxx/
35master_sites    http://pqxx.org/download/software/libpqxx/
36
37#distname   ${name}-${version}
38distfiles   ${distname}.tar.gz
39
40checksums \
41    ${distname}.tar.gz \
42        md5 0b0c64af41dfdeea8556dc359994e1cb \
43        sha1 8be9dcd0375337b170d5c94370fa896911d361f1 \
44        rmd160 c456b5a3ed3c96963aad334d3504ed0443a8f63e
45
46platforms       darwin
47depends_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:
64configure.args-append \
65    --enable-shared
66
67configure.env-append \
68    PG_CONFIG=${prefix}/lib/postgresql83/bin/pg_config
69