source: trunk/dports/databases/soci-devel/Portfile @ 98852

Last change on this file since 98852 was 98852, checked in by ryandesign@…, 7 years ago

soci-devel: fix git repository URL (#36642)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 4.3 KB
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# $Id: Portfile 98852 2012-10-18 16:21:21Z ryandesign@macports.org $
3
4PortSystem                  1.0
5PortGroup                   cmake 1.0
6
7name                        soci-devel
8version                     20110925
9revision                    2
10license                     Boost-1
11categories                  databases devel
12platforms                   darwin
13maintainers                 rmh.de:g.lorenz openmaintainer
14
15description                 SOCI - The C++ Database Access Library
16
17long_description            SOCI is a database access library for C++ that makes the illusion of \
18                            embedding SQL queries in the regular C++ code, staying entirely within \
19                            the Standard C++. The idea is to provide C++ programmers a way to \
20                            access SQL databases in the most natural and intuitive way. If you \
21                            find existing libraries too difficult for your needs or just \
22                            distracting, SOCI can be a good alternative.
23
24homepage                    http://soci.sourceforge.net/
25
26fetch.type                  git
27git.url                     git://git.code.sf.net/p/soci/code-0
28git.branch                  b08381512115ac4422f16aaf4a55896633040dee
29
30patchfiles                  patch-src-cmake-modules-FindOracle.cmake.diff
31
32configure.args-append       ./src
33
34configure.args-append       -DWITH_BOOST=OFF \
35                            -DWITH_MYSQL=OFF \
36                            -DWITH_ODBC=OFF \
37                            -DWITH_ORACLE=OFF \
38                            -DWITH_POSTGRESQL=OFF \
39                            -DWITH_SQLITE3=OFF
40
41default_variants            +boost
42
43variant boost description {Build with Boost integration} {
44    depends_lib-append          port:boost
45    configure.args-delete       -DWITH_BOOST=OFF
46}
47
48variant mysql4 conflicts mysql5 description {Build MySQL 4 backend} {
49    depends_lib-append          port:mysql4
50    configure.args-delete       -DWITH_MYSQL=OFF
51    configure.args-append       -DMYSQL_INCLUDE_DIR=${prefix}/include/mysql
52    configure.args-append       -DMYSQL_LIBRARY=${prefix}/lib/mysql/libmysqlclient_r.dylib
53}
54
55variant mysql5 conflicts mysql4 description {Build MySQL 5 backend} {
56    depends_lib-append          port:mysql5
57    configure.args-delete       -DWITH_MYSQL=OFF
58    configure.args-append       -DMYSQL_INCLUDE_DIR=${prefix}/include/mysql5/mysql
59    configure.args-append       -DMYSQL_LIBRARY=${prefix}/lib/mysql5/mysql/libmysqlclient_r.dylib
60}
61
62variant odbc description {Build ODBC backend} {
63    depends_lib-append          port:libiodbc
64    configure.args-delete       -DWITH_ODBC=OFF
65}
66
67variant oracle description {Build Oracle backend} {
68    depends_lib-append          port:oracle-instantclient
69    configure.args-delete       -DWITH_ORACLE=OFF
70    configure.env-append        ORACLE_HOME=${prefix}/lib/oracle
71}
72if {[variant_isset oracle] && ${os.platform} == "darwin" && ${os.major} > 10} {
73    # oracle-instantclient 10.2.0.4.0 crashes in 64-bit mode on Lion and up.
74    supported_archs i386
75}
76
77variant postgresql84 conflicts postgresql90 \
78        description {Build PostgreSQL 8.4 backend, using MacPorts postgresql84 port} {
79    depends_lib-append           port:postgresql84
80    configure.args-append       -DPG_CONFIG=${prefix}/lib/postgresql84/bin/pg_config
81    configure.args-append       -DPOSTGRESQL_INCLUDE_DIR=${prefix}/include/postgresql84
82    configure.args-append       -DPOSTGRESQL_LIBRARIES=${prefix}/lib/postgresql84/libpq.dylib
83    configure.args-delete       -DWITH_POSTGRESQL=OFF
84}
85
86variant postgresql90 conflicts postgresql84 \
87        description {Build PostgreSQL 9.0 backend, using MacPorts postgresql90 port} {
88    depends_lib-append          port:postgresql90
89    configure.args-append       -DPG_CONFIG=${prefix}/lib/postgresql90/bin/pg_config
90    configure.args-append       -DPOSTGRESQL_INCLUDE_DIR=${prefix}/include/postgresql90
91    configure.args-append       -DPOSTGRESQL_LIBRARIES=${prefix}/lib/postgresql90/libpq.dylib
92    configure.args-delete       -DWITH_POSTGRESQL=OFF
93}
94
95variant sqlite3 description {Build SQLite 3 backend, using MacPorts sqlite3 port} {
96    depends_lib-append          port:sqlite3
97    configure.args-delete       -DWITH_SQLITE3=OFF
98}
Note: See TracBrowser for help on using the repository browser.