source: trunk/dports/databases/sqlite3/Portfile @ 11421

Last change on this file since 11421 was 11421, checked in by mww, 15 years ago

update to v3.2.0

  • Property svn:eol-style set to native
File size: 1.5 KB
Line 
1# $Id: Portfile,v 1.7 2005/03/23 18:13:15 mww Exp $
2
3PortSystem 1.0
4
5name                    sqlite3
6version                 3.2.0
7categories              databases
8platforms               darwin
9maintainers             mww@opendarwin.org
10description             an embedded SQL database engine
11long_description        SQLite3 is an SQL database engine in a C library. \
12                                Programs that link the SQLite3 library can have SQL \
13                                database access without running a separate RDBMS \
14                                process. The distribution comes with a standalone \
15                                command-line access program (sqlite3) that can be used \
16                                to administer an SQLite3 database and which serves as \
17                                an example of how to use the SQLite3 library.
18
19homepage                http://www.sqlite.org/
20master_sites    ${homepage}
21distname                sqlite-${version}
22checksums               md5 16d5ecaaa9eaccf2a9102bb9610f8c60
23patchfiles              patch-Makefile.in
24
25depends_lib             lib:XXX:readline
26
27build.type              gnu
28
29test.run                yes
30test.target             test
31
32post-destroot {
33        file delete -force ${destroot}/System
34}
35
36variant threadsafe {
37        configure.args-append   --enable-threadsafe
38}
39
40set pre /Library/OpenDarwin/Frameworks/${name}.framework/Versions/${version}
41variant framework {
42        configure.args --includedir=${pre}/Headers --libdir=${pre}/Libraries
43        post-patch {
44                cd ${worksrcpath}
45                reinplace "s|\$(prefix)/include|${pre}/Headers|g" Makefile.in
46        }
47        post-destroot {
48                system "cd ${destroot}${pre}/.. && ln -s ${version} Current"
49                system "cd ${destroot}${pre}/../.. && \
50                        ln -s Versions/Current/Headers && \
51                        ln -s Versions/Current/Libraries"
52                file delete -force ${destroot}${prefix}/lib
53        }
54}
Note: See TracBrowser for help on using the repository browser.