source: trunk/dports/databases/libdbi-drivers/Portfile

Last change on this file was 97390, checked in by dports@…, 5 years ago

revbumps for many ports that depend indirectly against libpng and link
against it

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.0 KB
Line 
1# $Id: Portfile 97390 2012-09-04 20:32:38Z ryandesign@macports.org $
2
3PortSystem          1.0
4
5name                libdbi-drivers
6version             0.8.3-1
7revision        1
8categories          databases devel
9license             LGPL-2.1+
10maintainers         umich.edu:mta
11description         Drivers for libdbi
12long_description    $description
13homepage            http://libdbi-drivers.sourceforge.net/
14platforms           darwin
15master_sites        sourceforge
16
17checksums           md5     4de79b323162a5a7652b65b608eca6cd \
18                    sha1    599fbab115419e8fc88b3b31a38031584ee213b5 \
19                    rmd160  e0aa9e67f6560fb44018b1d35d90d4ac21b48597
20
21depends_lib         port:libdbi
22
23patchfiles          configure.patch
24
25configure.args      --with-dbi-incdir=${prefix}/include --with-dbi-libdir=${prefix}/lib \
26                    --disable-docs
27
28if {![variant_isset mysql5] && ![variant_isset postgresql83] &&
29        ![variant_isset sqlite2] && ![variant_isset sqlite3]} {
30        default_variants     +sqlite3
31}
32
33variant mysql5   description "Include drivers for MySQL" {
34        configure.args-append --with-mysql --with-mysql-incdir=${prefix}/include/mysql5 \
35                --with-mysql-libdir=${prefix}/lib/mysql5/mysql
36        depends_lib-append   path:bin/mysql_config5:mysql5
37}
38
39variant postgresql83 description "Include drivers for PostgreSQL" {
40        configure.args-append --with-pgsql --with-pgsql-incdir=${prefix}/include/postgresql83 \
41                --with-pgsql-libdir=${prefix}/lib/postgresql83
42        depends_lib-append   port:postgresql83
43}
44
45variant sqlite2 description "Include drivers for SQLite" {
46        configure.args-append --with-sqlite --with-sqlite-dir=${prefix}
47        depends_lib-append   port:sqlite2
48}
49
50variant sqlite3 description "Include drivers for SQLite3" {
51        configure.args-append --with-sqlite3 --with-sqlite3-dir=${prefix}
52        depends_lib-append   port:sqlite3
53}
54
55variant docs description "Build the documentation" {
56        configure.args-delete --disable-docs
57        depends_build-append port:openjade
58}
59
60variant debug description "Build debug version" {
61        build.target debug
62}
Note: See TracBrowser for help on using the repository browser.