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 | # $Id$ |
---|
3 | |
---|
4 | PortSystem 1.0 |
---|
5 | PortGroup cmake 1.0 |
---|
6 | |
---|
7 | name soci-devel |
---|
8 | version 20110331 |
---|
9 | license Boost-1.0 |
---|
10 | categories databases devel |
---|
11 | platforms darwin |
---|
12 | maintainers rmh.de:g.lorenz openmaintainer |
---|
13 | |
---|
14 | description SOCI - The C++ Database Access Library |
---|
15 | |
---|
16 | long_description SOCI is a database access library for C++ that makes the illusion of \ |
---|
17 | embedding SQL queries in the regular C++ code, staying entirely within \ |
---|
18 | the Standard C++. The idea is to provide C++ programmers a way to \ |
---|
19 | access SQL databases in the most natural and intuitive way. If you \ |
---|
20 | find existing libraries too difficult for your needs or just \ |
---|
21 | distracting, SOCI can be a good alternative. |
---|
22 | |
---|
23 | homepage http://soci.sourceforge.net/ |
---|
24 | |
---|
25 | fetch.type git |
---|
26 | git.url git://soci.git.sourceforge.net/gitroot/soci/soci |
---|
27 | git.branch 0361be788aba57c6da8e0840c273a682ae3136f0 |
---|
28 | |
---|
29 | patchfiles patch-src-cmake-modules-FindOracle.cmake.diff |
---|
30 | |
---|
31 | configure.args-append ./src |
---|
32 | |
---|
33 | configure.args-append -DWITH_BOOST=OFF \ |
---|
34 | -DWITH_MYSQL=OFF \ |
---|
35 | -DWITH_ODBC=OFF \ |
---|
36 | -DWITH_ORACLE=OFF \ |
---|
37 | -DWITH_POSTGRESQL=OFF \ |
---|
38 | -DWITH_SQLITE3=OFF |
---|
39 | |
---|
40 | variant boost description {Build with Boost integration} { |
---|
41 | depends_lib-append port:boost |
---|
42 | configure.args-delete -DWITH_BOOST=OFF |
---|
43 | } |
---|
44 | |
---|
45 | variant mysql4 conflicts mysql5 description {Build MySQL 4 backend} { |
---|
46 | depends_lib-append port:mysql4 |
---|
47 | configure.args-delete -DWITH_MYSQL=OFF |
---|
48 | configure.args-append -DMYSQL_INCLUDE_DIR=/opt/local/include/mysql |
---|
49 | configure.args-append -DMYSQL_LIBRARY=/opt/local/lib/mysql/libmysqlclient_r.dylib |
---|
50 | } |
---|
51 | |
---|
52 | variant mysql5 conflicts mysql4 description {Build MySQL 5 backend} { |
---|
53 | depends_lib-append port:mysql5 |
---|
54 | configure.args-delete -DWITH_MYSQL=OFF |
---|
55 | configure.args-append -DMYSQL_INCLUDE_DIR=/opt/local/include/mysql5/mysql |
---|
56 | configure.args-append -DMYSQL_LIBRARY=/opt/local/lib/mysql5/mysql/libmysqlclient_r.dylib |
---|
57 | } |
---|
58 | |
---|
59 | variant odbc description {Build ODBC backend} { |
---|
60 | depends_lib-append port:libiodbc |
---|
61 | configure.args-delete -DWITH_ODBC=OFF |
---|
62 | } |
---|
63 | |
---|
64 | variant oracle description {Build Oracle backend} { |
---|
65 | depends_lib-append port:oracle-instantclient |
---|
66 | configure.args-delete -DWITH_ORACLE=OFF |
---|
67 | configure.env-append ORACLE_HOME=${prefix}/lib/oracle |
---|
68 | } |
---|
69 | |
---|
70 | variant postgresql84 conflicts postgresql90 description {Build PostgreSQL 8.4 backend} { |
---|
71 | depends_lib-append port:postgresql84 |
---|
72 | configure.args-append -DPG_CONFIG=${prefix}/lib/postgresql84/bin/pg_config |
---|
73 | configure.args-delete -DWITH_POSTGRESQL=OFF |
---|
74 | } |
---|
75 | |
---|
76 | variant postgresql90 conflicts postgresql84 description {Build PostgreSQL 9.0 backend} { |
---|
77 | depends_lib-append port:postgresql90 |
---|
78 | configure.args-append -DPG_CONFIG=${prefix}/lib/postgresql90/bin/pg_config |
---|
79 | configure.args-delete -DWITH_POSTGRESQL=OFF |
---|
80 | } |
---|
81 | |
---|
82 | variant sqlite3 description {Build SQLite 3 backend} { |
---|
83 | depends_lib-append port:sqlite3 |
---|
84 | configure.args-delete -DWITH_SQLITE3=OFF |
---|
85 | } |
---|