ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/mports/trunk/databases/sqlite3/Makefile
(Generate patch)

Comparing trunk/databases/sqlite3/Makefile (file contents):
Revision 10704 by laffer1, Wed Feb 2 20:09:16 2011 UTC vs.
Revision 20953 by laffer1, Wed Feb 3 02:40:36 2016 UTC

# Line 1 | Line 1
1 < # $MidnightBSD: mports/databases/sqlite3/Makefile,v 1.11 2010/03/12 13:05:01 laffer1 Exp $
1 > # $MidnightBSD$
2  
3 < PORTNAME=       sqlite
4 < PORTVERSION=    3.6.15
5 < CATEGORIES=     databases lang tcl
6 < MASTER_SITES=   http://www.sqlite.org/
7 < .if defined(USE_THOL)
8 < PKGNAMESUFFIX=  -threads
9 < .endif
10 < DISTNAME=       sqlite-${PORTVERSION}
3 > PORTNAME=       sqlite3
4 > PORTVERSION=    3.9.1
5 > CATEGORIES=     databases
6 > MASTER_SITES=   https://www.sqlite.org/2015/ http://www2.sqlite.org/2015/ http://www3.sqlite.org/2015/
7 > DISTNAME=       sqlite-autoconf-${PORTVERSION:C/\.([[:digit:]])[[:>:]]/0\1/g:S/.//g}00
8  
9   MAINTAINER=     ports@MidnightBSD.org
10 < COMMENT=        An SQL database engine in a C library w/ Tcl wrapper
10 > COMMENT=        SQL database engine in a C library
11 >
12   LICENSE=        publicdom
13  
14 < SLAVEDIRS=      databases/sqlite3-threads
14 > CONFLICTS=      sqlite34-[0-9]* sqlcipher-[0-9]*
15  
16 < USE_GMAKE=      YES
19 < USE_GNOME=      pkgconfig
20 < USE_AUTOTOOLS=  libtool
16 > USES=           pathfix pkgconfig libtool ncurses
17   USE_LDCONFIG=   YES
18   GNU_CONFIGURE=  YES
19 < CONFIGURE_ARGS=         --prefix=${PREFIX} --with-hints=freebsd.hints
24 < CONFIGURE_ENV+=         TCLLIBDIR=${PREFIX}/lib/${PORTNAME}
25 < CONFIGURE_TARGET=       --build=${MACHINE_ARCH}-portbld-freebsd6.1
19 > INSTALL_TARGET= install-strip
20  
21 < OPTIONS=        DEBUG           "Enable debugging & verbose explain"    off \
28 <                FTS3            "Enable FTS3 (Full Text Search) module" off \
29 <                RAMTABLE        "Store temporary tables in RAM"         off \
30 <                TCLWRAPPER      "TCL wrapper for SQLITE"                off \
31 <                METADATA        "Enable column metadata"                on
21 > MAKE_JOBS_UNSAFE=       yes
22  
23 < .if !defined(USE_THOL)
24 < OPTIONS+=       THREADS         "Enable threads support"                off
25 < PLIST_SUB+=     THOL="@comment "
26 < CONFLICTS=      sqlite-threads-3*
27 < CONFIGURE_ARGS+=        --disable-threadsafe
28 < .else
29 < CONFIGURE_ARGS+=        --enable-threadsafe --enable-threads-override-locks \
40 <                        --enable-cross-thread-connections
41 < PLIST_SUB+=     THOL=""
42 < CONFLICTS=      sqlite-3*
43 < .endif
23 > # Compilation Options For SQLite http://www.sqlite.org/compile.html
24 > OPTIONS_DEFINE= FTS4 UPD_DEL_LIMIT URI URI_AUTHORITY SOUNDEX METADATA \
25 >                DIRECT_READ MEMMAN SECURE_DELETE UNLOCK_NOTIFY THREADS \
26 >                EXTENSION READLINE ARMOR STMT DBSTAT FTS5 JSON1 RBU
27 > OPTIONS_SINGLE= RAMT
28 > OPTIONS_RADIO=  STAT
29 > OPTIONS_GROUP=  UNICODE RTREEG
30  
31 < .include <bsd.port.pre.mk>
31 > UPD_DEL_LIMIT_DESC=     ORDER BY and LIMIT on UPDATE and DELETE
32 > URI_DESC=               Enable use the URI filename
33 > URI_AUTHORITY_DESC=     Allow convert URL into a UNC
34 > SOUNDEX_DESC=           Enables the soundex() SQL function
35 > METADATA_DESC=          Enable column metadata
36 > DIRECT_READ_DESC=       File is read directly from disk
37 > MEMMAN_DESC=            Allows it to release unused memory
38 > SECURE_DELETE_DESC=     Overwrite deleted information with zeros
39 > UNLOCK_NOTIFY_DESC=     Enable notification on unlocking
40 > EXTENSION_DESC=         Allow loadable extensions
41  
42 < .if defined(WITH_DEBUG)
43 < CONFIGURE_ARGS+=        --enable-debug
49 < .endif
42 > # http://www.sqlite.org/compile.html#enable_api_armor
43 > ARMOR_DESC=             Detect misuse of the API
44  
45 < .if defined(WITH_FTS3)
46 < CFLAGS+=                -DSQLITE_CORE=1 -DSQLITE_ENABLE_FTS3=1
53 < EXTRA_PATCHES+=         ${FILESDIR}/fts3_patch-Makefile.in
54 < .endif
45 > # http://www.sqlite.org/fts3.html
46 > FTS4_DESC=              Enable FTS3/4 (Full Text Search) module
47  
48 < .if defined(WITH_RAMTABLE)
49 < CONFIGURE_ARGS+=        --enable-tempstore=yes
58 < .endif
48 > # http://www.sqlite.org/fts5.html
49 > FTS5_DESC=              Enable version 5 full-text search engine
50  
51 < .if defined(WITH_TCLWRAPPER)
52 < TCL_V?=                 8.4
53 < MAKE_ARGS+=             TCLSH=tclsh${TCL_V}
54 < MAKE_ENV+=              TCL_VER=${TCL_V}
55 < LIB_DEPENDS+=           tcl${TCL_V:S/.//}:${PORTSDIR}/lang/tcl${TCL_V:S/.//}
56 < CONFIGURE_ARGS+=        --with-tcl=${LOCALBASE}/lib/tcl${TCL_V}
57 < PLIST_SUB+=             WITH_TCLWRAPPER=""
58 < .else
59 < CONFIGURE_ARGS+=        --disable-tcl
60 < PLIST_SUB+=             WITH_TCLWRAPPER="@comment "
51 > # http://www.sqlite.org/json1.html
52 > JSON1_DESC=             Enable the JSON1 extension
53 >
54 > # http://www.sqlite.org/rbu.html
55 > RBU_DESC=               Enable the Resumable Bulk Update
56 >
57 > # http://www.sqlite.org/c3ref/stmt_scanstatus.html
58 > STMT_DESC=              Prepared Statement Scan Status
59 >
60 > # http://www.sqlite.org/tempfiles.html#tempstore
61 > OPTIONS_SINGLE_RAMT=    TS0 TS1 TS2 TS3
62 > RAMT_DESC=              Where to store temporary file
63 > TS0_DESC=               Always use temporary file
64 > TS1_DESC=               File by default, change allowed PRAGMA
65 > TS2_DESC=               Memory by default, change allowed PRAGMA
66 > TS3_DESC=               Always use memory
67 >
68 > # http://www.sqlite.org/queryplanner-ng.html#qpstab
69 > OPTIONS_RADIO_STAT=     STAT3 STAT4
70 > STAT_DESC=              Which query planner to use
71 > STAT3_DESC=             collect histogram data from leftmost column
72 > STAT4_DESC=             collect histogram data from all columns
73 >
74 > # http://www.sqlite.org/dbstat.html
75 > DBSTAT_DESC=            Enable DBSTAT Virtual Table
76 >
77 > # http://www.sqlite.org/fts3.html#tokenizer
78 > OPTIONS_GROUP_UNICODE=  ICU UNICODE61
79 > UNICODE_DESC=           Unicode support
80 > UNICODE61_DESC=         Unicode Version 6.1 tokenizer
81 >
82 > # http://www.sqlite.org/rtree.html
83 > OPTIONS_GROUP_RTREEG=   RTREE RTREE_INT
84 > RTREEG_DESC=            Index type for range queries
85 > RTREE_DESC=             Enable R*Tree module
86 > RTREE_INT_DESC=         Store 32-bit sig int (no float) coordinates
87 >
88 > OPTIONS_DEFAULT=        FTS4 URI METADATA SECURE_DELETE UNLOCK_NOTIFY THREADS \
89 >                        EXTENSION TS1 UNICODE61 RTREE READLINE DBSTAT
90 > # SECURE_DELETE, UNLOCK_NOTIFY, DBSTAT (since 41.0) used by www/firefox et al.
91 > # RTREE used by graphics/mapnik, databases/spatialite
92 >
93 > PLIST_FILES=    bin/sqlite3 include/sqlite3.h include/sqlite3ext.h \
94 >                lib/libsqlite3.a lib/libsqlite3.so lib/libsqlite3.so.0 \
95 >                lib/libsqlite3.so.0.8.6 libdata/pkgconfig/sqlite3.pc \
96 >                man/man1/sqlite3.1.gz
97 >
98 > # The default numeric file permissions for newly created database files under unix.
99 > # If not specified, the default is 0644 which means that the files is globally
100 > # readable but only writable by the creator.
101 > .ifdef DEFAULT_FILE_PERMISSIONS
102 > CPPFLAGS+=              -DSQLITE_DEFAULT_FILE_PERMISSIONS=${DEFAULT_FILE_PERMISSIONS}
103   .endif
104  
105 < .if !defined(WITHOUT_METADATA)
106 < CFLAGS+=                -DSQLITE_ENABLE_COLUMN_METADATA=1
105 > # This macro sets the default size of the page-cache for temporary files
106 > # created by SQLite to store intermediate results, in pages.
107 > .ifdef TEMP_CACHE_SIZE
108 > CPPFLAGS+=              -DSQLITE_DEFAULT_TEMP_CACHE_SIZE=${TEMP_CACHE_SIZE}
109   .endif
110  
111 < post-extract:
112 <        @${FIND} ${WRKSRC} -type d -name 'CVS' | ${XARGS} rm -r
111 > # Use an in-ram database for temporary tables (never,no,yes,always),
112 > TS0_CPPFLAGS=   -DSQLITE_TEMP_STORE=0
113 > TS1_CPPFLAGS=   -DSQLITE_TEMP_STORE=1
114 > TS2_CPPFLAGS=   -DSQLITE_TEMP_STORE=2
115 > TS3_CPPFLAGS=   -DSQLITE_TEMP_STORE=3
116  
117 < post-patch:
118 <        @${REINPLACE_CMD} -E -e "s|^(TLIBS.*)|\1 -lm|g" \
81 <                ${WRKSRC}/Makefile.in
82 <        @${REINPLACE_CMD} -e "s|tclsh \$$(TOP)|\$$(TCLSH) \$$(TOP)|g" \
83 <                -e "s|./libtool|${LIBTOOL}|g" \
84 <                -e "s|--mode=link|--mode=link --tag=CC|g" \
85 <                -e "s|\$${HAVE_TCL:1=tcl_install}||" \
86 <                        ${WRKSRC}/Makefile.in
87 <        @${ECHO} "config_TARGET_TCL_INC=\"-I${PREFIX}/include/tcl${TCL_V}\"" \
88 <                > ${WRKSRC}/freebsd.hints
89 <        @${ECHO} "config_TARGET_TCL_LIBS=\"-L${PREFIX}/lib -ltcl${TCL_V:S/.//}\"" \
90 <                >> ${WRKSRC}/freebsd.hints
91 <        ${REINPLACE_CMD} -e "slfts3.cllg" \
92 <                -e "slfts3_expr.cllg" ${WRKSRC}/tool/mksqlite3c.tcl
117 > RTREE_CPPFLAGS= -DSQLITE_ENABLE_RTREE=1
118 > RTREE_INT_CPPFLAGS=     -DSQLITE_RTREE_INT_ONLY=1
119  
120 < pre-configure:
121 < .if defined(WITH_THREADS) || defined(USE_THOL)
122 <        @${REINPLACE_CMD} -e "s|-lpthread|${PTHREAD_LIBS}|g" \
123 <                ${WRKSRC}/configure
124 <        @${REINPLACE_CMD} -E -e "s|(Libs:.*)|\1 ${PTHREAD_LIBS}|" \
125 <                -e "s|(Cflags:.*)|\1 ${PTHREAD_CFLAGS}|" \
126 <                ${WRKSRC}/sqlite.pc.in ${WRKSRC}/sqlite3.pc.in
120 > FTS4_CPPFLAGS=  -DSQLITE_ENABLE_FTS3=1 -DSQLITE_ENABLE_FTS3_PARENTHESIS=1 -DSQLITE_ENABLE_FTS4=1
121 > SOUNDEX_CPPFLAGS=       -DSQLITE_SOUNDEX=1
122 > MEMMAN_CPPFLAGS=        -DSQLITE_ENABLE_MEMORY_MANAGEMENT=1
123 > UPD_DEL_LIMIT_CPPFLAGS= -DSQLITE_ENABLE_UPDATE_DELETE_LIMIT=1
124 > SECURE_DELETE_CPPFLAGS= -DSQLITE_SECURE_DELETE=1
125 > UNLOCK_NOTIFY_CPPFLAGS= -DSQLITE_ENABLE_UNLOCK_NOTIFY=1
126 > METADATA_CPPFLAGS=      -DSQLITE_ENABLE_COLUMN_METADATA=1
127 > STAT3_CPPFLAGS= -DSQLITE_ENABLE_STAT3=1
128 > STAT4_CPPFLAGS= -DSQLITE_ENABLE_STAT4=1
129 > DBSTAT_CPPFLAGS=        -DSQLITE_ENABLE_DBSTAT_VTAB=1
130 > URI_CPPFLAGS=   -DSQLITE_USE_URI=1
131 > URI_AUTHORITY_CPPFLAGS= -DSQLITE_ALLOW_URI_AUTHORITY=1
132 > DIRECT_READ_CPPFLAGS=   -DSQLITE_DIRECT_OVERFLOW_READ=1
133 > ARMOR_CPPFLAGS= -DSQLITE_ENABLE_API_ARMOR=1
134 > STMT_CPPFLAGS=  -DSQLITE_ENABLE_STMT_SCANSTATUS=1
135 >
136 > EXTENSION_CONFIGURE_ENABLE=     dynamic-extensions
137 >
138 > THREADS_CONFIGURE_ENABLE=       threadsafe
139 > THREADS_LDFLAGS=                -lpthread
140 >
141 > ICU_BUILD_DEPENDS=      ${LOCALBASE}/bin/icu-config:${PORTSDIR}/devel/icu
142 > ICU_LIB_DEPENDS=        libicudata.so:${PORTSDIR}/devel/icu
143 > ICU_CPPFLAGS=   `${LOCALBASE}/bin/icu-config --cppflags` -DSQLITE_ENABLE_ICU=1
144 > ICU_LDFLAGS=    `${LOCALBASE}/bin/icu-config --ldflags`
145 >
146 > UNICODE61_CPPFLAGS_OFF= -DSQLITE_DISABLE_FTS3_UNICODE=1
147 >
148 > READLINE_CONFIGURE_ENABLE=      readline
149 > READLINE_USES=  readline
150 >
151 > FTS5_CONFIGURE_ENABLE=  fts5
152 >
153 > JSON1_CONFIGURE_ENABLE= json1
154 >
155 > RBU_CPPFLAGS=   -DSQLITE_ENABLE_RBU=1
156 >
157 > .include <bsd.mport.options.mk>
158 >
159 > post-configure:
160 >        @${ECHO_MSG} "===> CONFIGURE_ARGS=${CONFIGURE_ARGS}"
161 >        @${ECHO_MSG} "===> CPPFLAGS=${CPPFLAGS}"
162 >        @${ECHO_MSG} "===> CFLAGS=${CFLAGS}"
163 >        @${ECHO_MSG} "===> LDFLAGS=${LDFLAGS}"
164 >
165 > post-build:
166 > .if ${ARCH}=="i386"
167 >        @${ECHO_MSG} "===> WARNING: on ${ARCH} don't pass atof1-* tests"
168   .endif
169  
170   post-install:
171 < .if defined(WITH_TCLWRAPPER)
105 <        @${MKDIR} ${PREFIX}/lib/sqlite
106 <        @(cd ${WRKSRC} && ${LIBTOOL} --mode=install ${INSTALL_DATA} \
107 <                libtclsqlite3.la ${PREFIX}/lib/sqlite/)
108 <        @${INSTALL_DATA} ${FILESDIR}/pkgIndex.tcl ${PREFIX}/lib/sqlite/
109 <        @${INSTALL_PROGRAM} ${WRKSRC}/.libs/tclsqlite3 ${PREFIX}/bin
110 <        @${MKDIR} ${EXAMPLESDIR}
111 <        @${INSTALL_DATA} ${FILESDIR}/example.tcl ${EXAMPLESDIR}
112 < .endif
113 < .if defined(USE_THOL)
114 <        @${MKDIR} ${DATADIR}
115 <        @${TOUCH} ${DATADIR}/sqlite3_with_threads-override-locks
116 < .endif
171 >        @${INSTALL_MAN} ${WRKSRC}/sqlite3.1 ${MANPREFIX}/man/man1
172  
173 < .include <bsd.port.post.mk>
173 > .include <bsd.port.mk>

Comparing trunk/databases/sqlite3/Makefile (property cvs2svn:cvs-rev):
Revision 10704 by laffer1, Wed Feb 2 20:09:16 2011 UTC vs.
Revision 20953 by laffer1, Wed Feb 3 02:40:36 2016 UTC

# Line 1 | Line 0
1 1.12

Comparing trunk/databases/sqlite3/Makefile (property svn:keywords):
Revision 10704 by laffer1, Wed Feb 2 20:09:16 2011 UTC vs.
Revision 20953 by laffer1, Wed Feb 3 02:40:36 2016 UTC

# Line 0 | Line 1
1 + MidnightBSD=%H

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines