diff -rudpN databases/sqlite3.orig/Makefile databases/sqlite3/Makefile --- databases/sqlite3.orig/Makefile 2016-08-10 12:01:00.349190000 +0300 +++ databases/sqlite3/Makefile 2016-08-10 15:00:48.762237000 +0300 @@ -2,8 +2,7 @@ # $FreeBSD: head/databases/sqlite3/Makefile 418153 2016-07-06 22:10:14Z mat $ PORTNAME= sqlite3 -PORTVERSION= 3.13.0 -PORTREVISION= 2 +PORTVERSION= 3.14.0 CATEGORIES= databases MASTER_SITES= https://www.sqlite.org/2016/ http://www2.sqlite.org/2016/ http://www3.sqlite.org/2016/ DISTNAME= sqlite-autoconf-${PORTVERSION:C/\.([[:digit:]])[[:>:]]/0\1/g:S/.//g}00 @@ -17,8 +16,14 @@ USES= libtool ncurses pathfix USE_LDCONFIG= yes GNU_CONFIGURE= yes INSTALL_TARGET= install-strip + +# Platform Configuration CFLAGS+= -Os -CPPFLAGS+= -DHAVE_ISNAN=1 -DHAVE_MALLOC_USABLE_SIZE=1 +CPPFLAGS+= -DHAVE_ISNAN=1 -DHAVE_MALLOC_USABLE_SIZE=1 -DHAVE_GMTIME_R=1 -DHAVE_LOCALTIME_R=1 -DHAVE_USLEEP=1 +CPPFLAGS+= ${OSVERSION<1000000:?:-DHAVE_STRCHRNUL=1} +#.if ${OSVERSION} >= 1000000 +#CPPFLAGS+= -DHAVE_STRCHRNUL=1 +#.endif MAKE_JOBS_UNSAFE= yes @@ -26,7 +31,7 @@ MAKE_JOBS_UNSAFE= yes OPTIONS_DEFINE= FTS4 UPD_DEL_LIMIT URI URI_AUTHORITY SOUNDEX METADATA \ DIRECT_READ MEMMAN SECURE_DELETE UNLOCK_NOTIFY THREADS \ EXTENSION ARMOR STMT DBSTAT FTS5 JSON1 RBU \ - LIKENOTBLOB STSHELL FTS3_TOKEN SESSION + LIKENOTBLOB STSHELL FTS3_TOKEN SESSION UNKNOWN_SQL OPTIONS_SINGLE= RAMT OPTIONS_RADIO= STAT OPTIONS_GROUP= UNICODE RTREEG RL @@ -52,6 +57,9 @@ LIKENOTBLOB_DESC= LIKE does not match bl # https://www.sqlite.org/compile.html#enable_api_armor ARMOR_DESC= Detect misuse of the API +# http://sqlite.org/compile.html#enable_unknown_sql_function +UNKNOWN_SQL_DESC= suppress unknown function errors + # https://www.sqlite.org/fts3.html # https://www.sqlite.org/compile.html#enable_fts3_parenthesis FTS4_DESC= Enable FTS3/4 (Full Text Search) module @@ -187,6 +195,8 @@ STSHELL_CONFIGURE_ENABLE= static-shell SESSION_CONFIGURE_ENABLE= session +UNKNOWN_SQL_CPPFLAGS= -DSQLITE_ENABLE_UNKNOWN_SQL_FUNCTION=1 + .include post-configure: diff -rudpN databases/sqlite3.orig/distinfo databases/sqlite3/distinfo --- databases/sqlite3.orig/distinfo 2016-08-10 12:01:00.349186000 +0300 +++ databases/sqlite3/distinfo 2016-08-10 12:02:02.677484000 +0300 @@ -1,3 +1,3 @@ -TIMESTAMP = 1464500377 -SHA256 (sqlite-autoconf-3130000.tar.gz) = e2797026b3310c9d08bd472f6d430058c6dd139ff9d4e30289884ccd9744086b -SIZE (sqlite-autoconf-3130000.tar.gz) = 2459805 +TIMESTAMP = 1470819705 +SHA256 (sqlite-autoconf-3140000.tar.gz) = 742db0ebbd9cc91ed6a41857f50aa9795fc859c994a256125135cd07f6cdfd76 +SIZE (sqlite-autoconf-3140000.tar.gz) = 2473333