Ticket #16619: Portfile

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

a new Portfile for libpqxx, to be tested

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,\
18\nthe enterprise-strength open-source database software.\
19\n(If \"PostgreSQL\" is too verbose, call it \"postgres\").
20
21homepage        http://pqxx.org/development/libpqxx/
22master_sites    http://pqxx.org/download/software/libpqxx/
23
24#distname   ${name}-${version}
25distfiles   ${distname}.tar.gz
26
27checksums \
28    ${distname}.tar.gz \
29        md5 0b0c64af41dfdeea8556dc359994e1cb \
30        sha1 8be9dcd0375337b170d5c94370fa896911d361f1 \
31        rmd160 c456b5a3ed3c96963aad334d3504ed0443a8f63e
32
33platforms       darwin
34depends_lib     port:postgresql83
35
36# The pg_config script must be available on the path, so
37# export PATH=/usr/local/pgsql/bin:${PATH}.
38# If using the macports install of postgresql83, then use
39# export PATH=/opt/local/lib/postgresql83/bin:${PATH}.
40# Then configure and build using shared libraries:
41# ./configure --enable-shared; make; sudo make install
42# will put the library into /usr/local/...
43
44#configure {
45#    system "cd ${worksrcpath} && ${configure.env} && ./configure ${configure.args}"
46#}
47
48configure.args-append \
49    --enable-shared
50
51configure.env-append \
52    PG_CONFIG=/opt/local/lib/postgresql83/bin/pg_config
53
54
55# The $binpath is READ-ONLY, so how to add the pg_config to the path?
56#configure.env \
57#   PATH={$prefix}/lib/postgresql83/bin:${binpath}
58