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 20110125 |
---|
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 c50af8205b9d0020bb986e225e760c4685f87077 |
---|
28 | |
---|
29 | patchfiles patch-src-CMakeLists.txt.diff \ |
---|
30 | patch-src-cmake-modules-FindOracle.cmake.diff \ |
---|
31 | patch-src-backends-oracle-test-test-oracle.cpp.diff |
---|
32 | |
---|
33 | configure.args-append ./src |
---|
34 | |
---|
35 | configure.args-append -DWITH_BOOST=OFF \ |
---|
36 | -DWITH_MYSQL=OFF \ |
---|
37 | -DWITH_ODBC=OFF \ |
---|
38 | -DWITH_ORACLE=OFF \ |
---|
39 | -DWITH_POSTGRESQL=OFF \ |
---|
40 | -DWITH_SQLITE3=OFF |
---|
41 | |
---|
42 | variant boost description {Build with Boost integration} { |
---|
43 | depends_lib-append port:boost |
---|
44 | configure.args-delete -DWITH_BOOST=OFF |
---|
45 | } |
---|
46 | |
---|
47 | variant mysql4 conflicts mysql5 description {Build MySQL 4 backend} { |
---|
48 | depends_lib-append port:mysql4 |
---|
49 | configure.args-delete -DWITH_MYSQL=OFF |
---|
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 | } |
---|
56 | |
---|
57 | variant odbc description {Build ODBC backend} { |
---|
58 | depends_lib-append port:libiodbc |
---|
59 | configure.args-delete -DWITH_ODBC=OFF |
---|
60 | } |
---|
61 | |
---|
62 | variant oracle description {Build Oracle backend} { |
---|
63 | depends_lib-append port:oracle-instantclient |
---|
64 | configure.args-delete -DWITH_ORACLE=OFF |
---|
65 | configure.env-append ORACLE_HOME=${prefix}/lib/oracle |
---|
66 | } |
---|
67 | |
---|
68 | variant postgresql84 conflicts postgresql90 description {Build PostgreSQL 8.4 backend} { |
---|
69 | depends_lib-append port:postgresql84 |
---|
70 | configure.args-append -DPG_CONFIG=${prefix}/lib/postgresql84/bin/pg_config |
---|
71 | configure.args-delete -DWITH_POSTGRESQL=OFF |
---|
72 | } |
---|
73 | |
---|
74 | variant postgresql90 conflicts postgresql84 description {Build PostgreSQL 9.0 backend} { |
---|
75 | depends_lib-append port:postgresql90 |
---|
76 | configure.args-append -DPG_CONFIG=${prefix}/lib/postgresql90/bin/pg_config |
---|
77 | configure.args-delete -DWITH_POSTGRESQL=OFF |
---|
78 | } |
---|
79 | |
---|
80 | variant sqlite3 description {Build SQLite 3 backend} { |
---|
81 | depends_lib-append port:sqlite3 |
---|
82 | configure.args-delete -DWITH_SQLITE3=OFF |
---|
83 | } |
---|