diff -rudpN databases/sqlite3.orig/Makefile databases/sqlite3/Makefile --- databases/sqlite3.orig/Makefile 2016-11-17 13:08:43.790449000 +0300 +++ databases/sqlite3/Makefile 2016-11-17 17:39:53.543783000 +0300 @@ -3,6 +3,7 @@ PORTNAME= sqlite3 PORTVERSION= 3.15.1 +PORTREVISION= 1 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,11 +18,6 @@ USE_LDCONFIG= yes GNU_CONFIGURE= yes INSTALL_TARGET= install-strip -# Platform Configuration -CFLAGS+= -Os -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} - MAKE_JOBS_UNSAFE= yes # Compilation Options For SQLite https://www.sqlite.org/compile.html @@ -173,6 +169,7 @@ ICU_LIB_DEPENDS= libicudata.so:devel/icu ICU_CPPFLAGS= `${LOCALBASE}/bin/icu-config --cppflags` -DSQLITE_ENABLE_ICU=1 ICU_LIBS= `${LOCALBASE}/bin/icu-config --ldflags` +UNICODE61_CPPFLAGS= "" UNICODE61_CPPFLAGS_OFF= -DSQLITE_DISABLE_FTS3_UNICODE=1 READLINES_CONFIGURE_ON= --enable-readline @@ -196,6 +193,15 @@ UNKNOWN_SQL_CPPFLAGS= -DSQLITE_ENABLE_UN .include +# Platform Configuration +.if !defined(WITH_DEBUG) +CFLAGS+= -Os +.endif +CPPFLAGS+= -DHAVE_ISNAN=1 -DHAVE_MALLOC_USABLE_SIZE=1 -DHAVE_GMTIME_R=1 -DHAVE_LOCALTIME_R=1 -DHAVE_USLEEP=1 +.if defined(OSVERSION) && ${OSVERSION} >= 1000000 +CPPFLAGS+= -DHAVE_STRCHRNUL=1 +.endif + post-configure: @${ECHO_MSG} "===> CONFIGURE_ARGS=${CONFIGURE_ARGS}" @${ECHO_MSG} "===> CPPFLAGS=${CPPFLAGS}"