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 | |
---|
6 | name soci |
---|
7 | version 3.0.0 |
---|
8 | |
---|
9 | categories databases |
---|
10 | |
---|
11 | platforms darwin |
---|
12 | |
---|
13 | maintainers mahlberg-online.net:devel |
---|
14 | |
---|
15 | description SOCI database access library |
---|
16 | |
---|
17 | long_description SOCI is a database access library for C++ \ |
---|
18 | that makes the illusion of embedding SQL queries \ |
---|
19 | in the regular C++ code, staying entirely within \ |
---|
20 | the Standard C++. |
---|
21 | |
---|
22 | homepage http://soci.sourceforge.net |
---|
23 | master_sites sourceforge:soci |
---|
24 | |
---|
25 | distname soci-${version} |
---|
26 | default_variants +mysql +postgresql |
---|
27 | |
---|
28 | checksums md5 1bf7dd244764e53557c1ecc01fdfac96 \ |
---|
29 | sha1 c49b6220bf7f67bb18588a640dd2b6455c97d588 \ |
---|
30 | rmd160 172f34a7a43bf1dbd57ff1e962f6688866d29705 |
---|
31 | |
---|
32 | configure.pre_args "" |
---|
33 | configure.args --include-prefix=${destroot}/${prefix}/include \ |
---|
34 | --lib-prefix=${destroot}/${prefix}/lib |
---|
35 | |
---|
36 | build.target "" |
---|
37 | |
---|
38 | variant mysql description {Add mysql5 backend} { |
---|
39 | |
---|
40 | depends_lib-append port:mysql5-devel |
---|
41 | configure.args-append \ |
---|
42 | --mysql-include=${prefix}/include/mysql5/mysql/ \ |
---|
43 | --mysql-lib=${prefix}/lib/mysql5/mysql/ |
---|
44 | } |
---|
45 | |
---|
46 | variant postgresql83 conflicts postgresql84 postgresql90 postgresql91 description {Add postgresql backend} { |
---|
47 | depends_lib-append port:postgresql83 |
---|
48 | configure.args-append \ |
---|
49 | --postgresql-include=${prefix}/include/postgresql \ |
---|
50 | --postgresql-lib=${prefix}/lib/postgres |
---|
51 | } |
---|
52 | |
---|
53 | variant postgresql84 conflicts postgresql83 postgresql90 postgresql91 description {Add postgresql backend} { |
---|
54 | depends_lib-append port:postgresql84 |
---|
55 | configure.args-append \ |
---|
56 | --postgresql-include=${prefix}/include/postgresql \ |
---|
57 | --postgresql-lib=${prefix}/lib/postgres |
---|
58 | } |
---|
59 | variant postgresql90 conflicts postgresql83 postgresql84 postgresql91 description {Add postgresql backend} { |
---|
60 | depends_lib-append port:postgresql90 |
---|
61 | configure.args-append \ |
---|
62 | --postgresql-include=${prefix}/include/postgresql \ |
---|
63 | --postgresql-lib=${prefix}/lib/postgres |
---|
64 | } |
---|
65 | variant postgresql91 conflicts postgresql83 postgresql84 postgresq90 description {Add postgresql backend} { |
---|
66 | depends_lib-append port:postgresql91 |
---|
67 | configure.args-append \ |
---|
68 | --postgresql-include=${prefix}/include/postgresql \ |
---|
69 | --postgresql-lib=${prefix}/lib/postgres |
---|
70 | } |
---|
71 | if {![variant_isset postgresql83] && ![variant_isset postgresql84] && ![variant_isset postgresql90] && ![variant_isset postgresql91] } { |
---|
72 | default_variants +postgresql83 |
---|
73 | } |
---|
74 | variant boost description {Add boost support} { |
---|
75 | depends_lib-append port:boost |
---|
76 | configure.args-append \ |
---|
77 | --boost-include=${prefix}/include/boost/ \ |
---|
78 | --boost-lib=${prefix}/lib/ |
---|
79 | } |
---|