ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/mports/trunk/databases/sqlite3/Makefile
Revision: 12834
Committed: Tue Jun 26 00:44:20 2012 UTC (11 years, 9 months ago) by laffer1
File size: 2456 byte(s)
Log Message:
3.7.12.1

File Contents

# Content
1 # $MidnightBSD: mports/databases/sqlite3/Makefile,v 1.17 2012/02/24 00:49:01 laffer1 Exp $
2
3 PORTNAME= sqlite
4 PORTVERSION= 3.7.12.1
5 CATEGORIES= databases lang tcl
6 MASTER_SITES= http://www.sqlite.org/ \
7 http://www2.sqlite.org/ \
8 http://www3.sqlite.org/
9 DISTNAME= sqlite-autoconf-3071201
10
11 MAINTAINER= ports@MidnightBSD.org
12 COMMENT= An SQL database engine in a C library w/ Tcl wrapper
13 LICENSE= publicdom
14
15 USE_GMAKE= YES
16 USE_AUTOTOOLS= libtool
17 USE_LDCONFIG= YES
18 GNU_CONFIGURE= YES
19 USE_GNOME= gnomehack pkgconfig
20 USE_TCL_BUILD= 84+
21 CONFIGURE_ARGS= --prefix=${PREFIX}
22 CONFIGURE_ENV+= TCLSH_CMD="${TCLSH}" \
23 TCLLIBDIR=${PREFIX}/lib/${PORTNAME} \
24 ac_cv_search_pthread_create=""
25 CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd7.0
26
27 MAN1= sqlite3.1
28
29 OPTIONS= DEBUG "Enable debugging & verbose explain" off \
30 FTS3 "Enable FTS3 (Full Text Search) module" off \
31 RTREE "Enable R*Tree module" off \
32 RAMTABLE "Store temporary tables in RAM" off \
33 TCLWRAPPER "Enable TCL wrapper" off \
34 METADATA "Enable column metadata" on \
35 THREADSAFE "Build thread-safe library" on \
36 EXTENSION "Allow loadable extensions" on
37
38 .include <bsd.port.pre.mk>
39
40 .if defined(WITH_DEBUG)
41 CONFIGURE_ARGS+= --enable-debug
42 .endif
43
44 .if defined(WITH_FTS3)
45 CFLAGS+= -DSQLITE_ENABLE_FTS3=1
46 .endif
47
48 .if defined(WITH_RTREE)
49 CFLAGS+= -DSQLITE_ENABLE_RTREE=1
50 .endif
51
52 .if defined(WITH_RAMTABLE)
53 CONFIGURE_ARGS+= --enable-tempstore=yes
54 .endif
55
56 .if defined(WITH_TCLWRAPPER)
57 CATEGORIES+= lang tcl
58 COMMENT+= with TCL Wrapper
59 USE_TCL_RUN= 84+
60 CONFIGURE_ARGS+= --with-tcl=${TCL_LIBDIR}
61 PLIST_SUB+= WITH_TCLWRAPPER=""
62 ALL_TARGET= all tclsqlite3
63 INSTALL_TARGET= install tcl_install
64 .else
65 CONFIGURE_ARGS+= --disable-tcl
66 PLIST_SUB+= WITH_TCLWRAPPER="@comment "
67 .endif
68
69 .if !defined(WITHOUT_METADATA)
70 CFLAGS+= -DSQLITE_ENABLE_COLUMN_METADATA=1
71 .endif
72
73 .if !defined(WITHOUT_THREADSAFE)
74 CONFIGURE_ARGS+= --enable-threadsafe \
75 --enable-threads-override-locks
76 .else
77 CONFIGURE_ARGS+= --disable-threadsafe
78 .endif
79
80 .if !defined(WITHOUT_EXTENSION)
81 CONFIGURE_ARGS+= --enable-load-extension
82 .else
83 CONFIGURE_ARGS+= --disable-load-extension
84 .endif
85
86 post-install:
87 .if defined(WITH_TCLWRAPPER)
88 @${INSTALL_PROGRAM} ${WRKSRC}/.libs/tclsqlite3 ${PREFIX}/bin
89 @${MKDIR} ${EXAMPLESDIR}
90 @${INSTALL_DATA} ${FILESDIR}/example.tcl ${EXAMPLESDIR}
91 .endif
92 .if !defined(NO_INSTALL_MANPAGES)
93 @${INSTALL_MAN} ${WRKSRC}/sqlite3.1 ${MANPREFIX}/man/man1
94 .endif
95
96 .include <bsd.port.post.mk>

Properties

Name Value
cvs2svn:cvs-rev 1.18