source: trunk/dports/databases/soci/Portfile

Last change on this file was 104524, checked in by ryandesign@…, 4 years ago

soci: update to 3.2.0 which now builds with oracle-instantclient 11 which now allows 64-bit builds even on Lion and up (#37880); fix livecheck

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 4.1 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 104524 2013-03-27 00:37:39Z ryandesign@macports.org $
3
4PortSystem                  1.0
5PortGroup                   cmake 1.0
6
7name                        soci
8version                     3.2.0
9license                     Boost-1
10categories                  databases devel
11platforms                   darwin
12maintainers                 rmh.de:g.lorenz openmaintainer
13
14description                 SOCI - The C++ Database Access Library
15
16long_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
23homepage                    http://soci.sourceforge.net/
24master_sites                sourceforge:project/soci/soci/soci-${version}
25
26checksums                   rmd160  9dd5f9ac9d5364606f4fc7bc988f6f700a965361 \
27                            sha256  5ee765fdb65e50f2f5109b484417506d5550ba69b51f9a15bdce0f471e550e32
28
29configure.args-append       -DWITH_BOOST=OFF \
30                            -DWITH_MYSQL=OFF \
31                            -DWITH_ODBC=OFF \
32                            -DWITH_ORACLE=OFF \
33                            -DWITH_POSTGRESQL=OFF \
34                            -DWITH_SQLITE3=OFF
35
36default_variants            +boost
37
38variant boost description {Build with Boost integration} {
39    depends_lib-append          port:boost
40    configure.args-delete       -DWITH_BOOST=OFF
41}
42
43variant mysql4 conflicts mysql5 description {Build MySQL 4 backend} {
44    depends_lib-append          port:mysql4
45    configure.args-delete       -DWITH_MYSQL=OFF
46    configure.args-append       -DMYSQL_INCLUDE_DIR=${prefix}/include/mysql
47    configure.args-append       -DMYSQL_LIBRARY=${prefix}/lib/mysql/libmysqlclient_r.dylib
48}
49
50variant mysql5 conflicts mysql4 description {Build MySQL 5 backend} {
51    depends_lib-append          port:mysql5
52    configure.args-delete       -DWITH_MYSQL=OFF
53    configure.args-append       -DMYSQL_INCLUDE_DIR=${prefix}/include/mysql5/mysql
54    configure.args-append       -DMYSQL_LIBRARY=${prefix}/lib/mysql5/mysql/libmysqlclient_r.dylib
55}
56
57variant odbc description {Build ODBC backend} {
58    depends_lib-append          port:libiodbc
59    configure.args-delete       -DWITH_ODBC=OFF
60}
61
62variant 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
68variant postgresql84 conflicts postgresql90 \
69        description {Build PostgreSQL 8.4 backend, using MacPorts postgresql84 port} {
70    depends_lib-append           port:postgresql84
71    configure.args-append       -DPG_CONFIG=${prefix}/lib/postgresql84/bin/pg_config
72    configure.args-append       -DPOSTGRESQL_INCLUDE_DIR=${prefix}/include/postgresql84
73    configure.args-append       -DPOSTGRESQL_LIBRARIES=${prefix}/lib/postgresql84/libpq.dylib
74    configure.args-delete       -DWITH_POSTGRESQL=OFF
75}
76
77variant postgresql90 conflicts postgresql84 \
78        description {Build PostgreSQL 9.0 backend, using MacPorts postgresql90 port} {
79    depends_lib-append          port:postgresql90
80    configure.args-append       -DPG_CONFIG=${prefix}/lib/postgresql90/bin/pg_config
81    configure.args-append       -DPOSTGRESQL_INCLUDE_DIR=${prefix}/include/postgresql90
82    configure.args-append       -DPOSTGRESQL_LIBRARIES=${prefix}/lib/postgresql90/libpq.dylib
83    configure.args-delete       -DWITH_POSTGRESQL=OFF
84}
85
86variant sqlite3 description {Build SQLite 3 backend, using MacPorts sqlite3 port} {
87    depends_lib-append          port:sqlite3
88    configure.args-delete       -DWITH_SQLITE3=OFF
89}
90
91livecheck.regex             /${name}-(\[0-9.\]+)${extract.suffix}
Note: See TracBrowser for help on using the repository browser.