source: trunk/dports/databases/tcl-sqlite3/Portfile

Last change on this file was 102747, checked in by g5pw@…, 5 years ago

databases/tcl-sqlite3:

revbump to build against tcl8.6

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.4 KB
Line 
1# $Id: Portfile 102747 2013-02-07 22:43:13Z ryandesign@macports.org $
2
3PortSystem 1.0
4
5name                tcl-sqlite3
6version             3.6.22
7revision            2
8categories          databases
9platforms           darwin
10maintainers         mww
11description         Tcl bindings for SQLite3
12long_description    ${description}. SQLite3 is an SQL database engine in a C library. \
13                    Programs that link the SQLite3 library can have SQL \
14                    database access without running a separate RDBMS \
15                    process. The distribution comes with a standalone \
16                    command-line access program (sqlite3) that can be used \
17                    to administer an SQLite3 database and which serves as \
18                    an example of how to use the SQLite3 library.
19
20homepage            http://www.sqlite.org/
21master_sites        ${homepage}
22distname            sqlite-${version}
23dist_subdir         sqlite3
24checksums           md5     a17bd53f1fde11f84adf79c6a1510ce5 \
25                    sha1    7a29a469d5e28040224a934ed0c28041412876d8 \
26                    rmd160  3de220362e58589649b068519b9d2aa021371ca4
27
28depends_lib         port:readline \
29                    port:sqlite3 \
30                    port:tcl
31
32patchfiles          tcl-shlib-suffix.diff
33
34post-patch {
35    reinplace "s|tclsh8.4|tclsh|g" ${worksrcpath}/configure
36}
37
38# '-lm' makes freebsd happy & darwin not angry (and makes variants unnecessary)
39configure.args      --enable-threadsafe --with-tcl=${prefix}/lib \
40                    --with-readline-inc="-I${prefix}/include" \
41                    --with-readline-lib="-L${prefix}/lib -lreadline -lm"
42configure.cppflags  "-DSQLITE_ENABLE_COLUMN_METADATA=1 -I${worksrcpath} -I${prefix}/include"
43
44use_parallel_build  yes
45build.type          gnu
46
47livecheck.type      regex
48livecheck.url       http://www.sqlite.org/download.html
49livecheck.regex     sqlite-(\[0-9\\.\]+\[0-9\])\\.
50
51post-destroot {
52    # Make sure the correct version is used, not sure why this is
53    # necessary.
54    reinplace "s|3.6|${version}|g" ${destroot}${prefix}/lib/tcl8.6/sqlite3/pkgIndex.tcl
55    # Delete all normal SQLite 3 files, they are installed by the sqlite3
56    # port.
57    file delete -force ${destroot}${prefix}/bin
58    file delete -force ${destroot}${prefix}/include
59    file delete -force ${destroot}${prefix}/share
60    file delete -force ${destroot}${prefix}/lib/pkgconfig
61    foreach file [glob ${destroot}${prefix}/lib/libsqlite*] {
62        file delete $file
63    }
64}
Note: See TracBrowser for help on using the repository browser.