diff --git a/lib/libsqlite3/Makefile b/lib/libsqlite3/Makefile index bb2c939c5c..4f4043c913 100644 --- a/lib/libsqlite3/Makefile +++ b/lib/libsqlite3/Makefile @@ -1,9 +1,7 @@ - PACKAGE=lib${LIB} -PRIVATELIB= yes -LIB= sqlite3 -SHLIB_MAJOR?= 0 -LIBADD+= pthread +LIB= sqlite3 +SHLIB_MAJOR= 1 +LIBADD+= pthread z SRCS= sqlite3.c INCS= sqlite3.h sqlite3ext.h @@ -11,7 +9,7 @@ INCS= sqlite3.h sqlite3ext.h SQLITE= ${SRCTOP}/contrib/sqlite3 .PATH: ${SQLITE} -WARNS?= 3 +WARNS?= 2 CFLAGS+= -I${SQLITE} \ -DUSE_PREAD=1 \ -DSTDC_HEADERS=1 \ @@ -31,8 +29,22 @@ CFLAGS+= -I${SQLITE} \ -DHAVE_DECL_STRERROR_R=1 \ -DHAVE_STRERROR_R=1 \ -DHAVE_POSIX_FALLOCATE=1 \ - -D_REENTRANT=1 \ - -DSQLITE_THREADSAFE=1 + -D_REENTRANT=1 -DREENTRANT=1 \ + -DSQLITE_THREADSAFE=1 \ + -DSQLITE_OS_UNIX=1 \ + -DSQLITE_ENABLE_RTREE=1 \ + -DSQLITE_ENABLE_FTS3 \ + -DSQLITE_ENABLE_FTS5 -DSQLITE_ENABLE_FTS4 \ + -DSQLITE_ENABLE_JSON1 -DSQLITE_ENABLE_GEOPOLY \ + -DSQLITE_HAVE_ZLIB -DSQLITE_ENABLE_MATH_FUNCTIONS + +MK_MAN= no + +.if !defined(COMPAT_32BIT) +afterinstall: + ${INSTALL} ${SHLINSTALLFLAGS} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \ + ${_INSTALLFLAGS} ${SQLITE}/sqlite3.pc ${DESTDIR}/usr/libdata/pkgconfig/sqlite3.pc +.endif .if ${MACHINE_ARCH} == "powerpc64le" CFLAGS+= -DSQLITE_BYTEORDER=1234 diff --git a/share/mk/src.libnames.mk b/share/mk/src.libnames.mk index 7960c77ed5..da9b860f36 100644 --- a/share/mk/src.libnames.mk +++ b/share/mk/src.libnames.mk @@ -293,7 +293,7 @@ _DP_archive+= crypto _DP_archive+= md .endif .endif -_DP_sqlite3= pthread +_DP_sqlite3= pthread z _DP_ssl= crypto _DP_ssh= crypto crypt z .if ${MK_LDNS} != "no"