Ticket #16990: Portfile

File Portfile, 2.4 KB (added by dweber@…, 16 years ago)

libpqxx26 Portfile

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 dweber
13
14description Official C++ client API for PostgreSQL
15
16long_description \
17libpqxx is the official C++ client API for PostgreSQL, the enterprise-strength \
18open-source database software.  There are many similar libraries for PostgreSQL \
19and for other databases, some of them database independent.  Most of these, \
20however, are fairly C like in their programming style, and fail to take \
21advantage of the full power of the C++ language as it has matured since \
22the acceptance of the Standard in 1996.  What libpqxx brings you is effective \
23use of templates to reduce the inconvenience of dealing with type conversions, \
24standard C++ strings to keep you from having to worry about buffer allocation \
25and overflow attacks, exceptions to take the tedious and error prone plumbing \
26around error handling out of your hands, constructors and destructors to bring \
27resource management under control, and even basic object orientation to give \
28you some extra reliability features that would be hard to get with most other \
29database interfaces.
30
31homepage        http://pqxx.org/development/libpqxx/
32master_sites    http://pqxx.org/download/software/libpqxx/
33
34checksums \
35    md5 0b0c64af41dfdeea8556dc359994e1cb \
36    sha1 8be9dcd0375337b170d5c94370fa896911d361f1 \
37    rmd160 c456b5a3ed3c96963aad334d3504ed0443a8f63e
38
39platforms       darwin
40depends_lib     port:pkgconfig \
41                port:postgresql83
42
43configure.env-append \
44    PG_CONFIG=${prefix}/lib/postgresql83/bin/pg_config
45
46configure.args-append \
47    --enable-shared
48
49# Could enable tests after the build phase, using
50# test.run, test.cmd, and test.target; see
51# http://guide.macports.org/#reference.phases.test
52# http://pqxx.org/development/libpqxx/browser/trunk/README?rev=latest
53# http://pqxx.org/development/libpqxx/wiki/TestDocs
54
55#PGDATABASE     (name of database; defaults to your user name)
56#PGDATABASE=pqxx
57# PGHOST        (database server; defaults to local machine)
58# PGHOST can be found with: echo `locate PGSQL.5432` | sed "s|/\.s.*||"
59#PGHOST=/private/tmp
60# PGPORT        (PostgreSQL port to connect to; default is 5432)
61# PGUSER        (your PostgreSQL user ID; defaults to your login name)
62#PGUSER
63# PGPASSWORD    (your PostgreSQL password, if needed)
64#PGPASSWORD
65
66#make check
67