Files

73 lines
2.1 KiB
Makefile
Raw Permalink Normal View History

COMMENT= embedded SQL implementation
2026-05-06 14:39:44 +00:00
DISTNAME= sqlite-src-3530100
PKGNAME= sqlite3-3.53.1
REVISION= 0
EXTRACT_SUFX= .zip
2025-03-03 16:49:27 +00:00
# XXX needs bumps every time :-/
2026-05-06 14:39:44 +00:00
SHARED_LIBS += sqlite3 37.38
2019-03-28 21:13:47 +00:00
# sqlite suggests that users might like to assert() that library and header
# versions match, so bumps are needed even if function signatures don't change.
# ... at the current time the only one noticed is a < check (in subversion)
# rather than an == check so minor bumps are enough to cope with this, though
# we may run into others later.
CATEGORIES= databases
HOMEPAGE= https://www.sqlite.org/
2026-01-11 18:20:04 +00:00
SITES= https://www.sqlite.org/2026/
2005-06-14 00:12:58 +00:00
# PD
PERMIT_PACKAGE= Yes
WANTLIB += c curses m pthread readline z
2005-06-14 00:12:58 +00:00
2022-07-07 21:59:51 +00:00
DEBUG_PACKAGES= ${BUILD_PACKAGES}
2025-03-03 16:49:27 +00:00
MODULES= lang/tcl
MODTCL_VERSION= 8.6
2025-03-04 17:05:14 +00:00
BUILD_DEPENDS= converters/sqlite2mdoc \
2025-03-03 16:49:27 +00:00
${MODTCL_BUILD_DEPENDS}
2011-11-18 00:33:30 +00:00
2025-03-03 16:49:27 +00:00
CONFIGURE_STYLE= simple
CONFIGURE_ARGS= --soname=${LIBsqlite3_VERSION} \
2025-03-03 16:49:27 +00:00
--prefix=${PREFIX} \
--sysconfdir=${SYSCONFDIR} \
--mandir=${PREFIX}/man \
--localstatedir=${LOCALSTATEDIR} \
--with-tclsh=${MODTCL_BIN} \
2025-03-03 16:49:27 +00:00
--enable-all
2025-03-04 17:05:14 +00:00
CONFIGURE_ENV= CCACHE=None \
CFLAGS='${CFLAGS}'
CFLAGS+= -DSQLITE_ENABLE_UNLOCK_NOTIFY \
2020-02-03 05:35:06 +00:00
-DSQLITE_ENABLE_DBSTAT_VTAB \
2025-03-03 16:49:27 +00:00
-DSQLITE_ENABLE_COLUMN_METADATA
2025-03-03 18:54:52 +00:00
# base-gcc + ld.bfd don't like "-rpath /usr/local/lib"
MAKE_FLAGS= LDFLAGS.rpath="-Wl,-rpath,${PREFIX}/lib"
2025-03-04 17:05:14 +00:00
# don't strip the binary
MAKE_FLAGS+= INSTALL.strip.0="${INSTALL_PROGRAM}"
ALL_TARGET= all sqldiff sqlite3_rsync
INSTALL_TARGET= install install-diff install-rsync
2011-11-18 00:33:30 +00:00
post-install:
2025-03-03 16:49:27 +00:00
rm ${PREFIX}/lib/libsqlite3.so{,.0}
# This is usually incorrect, but here the build sets the library soname
# so renaming the file after the fact is ok.
mv ${PREFIX}/lib/libsqlite3.so.* ${PREFIX}/lib/libsqlite3.so.${LIBsqlite3_VERSION}
${INSTALL_DATA_DIR} ${PREFIX}/man/man3
${LOCALBASE}/bin/sqlite2mdoc -p ${PREFIX}/man/man3 ${PREFIX}/include/sqlite3.h
# fix the .pc file
sed -i -e 's/^Libs.private:.*/Libs.private: -lz -lm -lpthread/' ${PREFIX}/lib/pkgconfig/sqlite3.pc
# dump compile options for comparison in logs
echo pragma compile_options | ${WRKBUILD}/sqlite3
2013-03-11 02:52:04 +00:00
NO_TEST= Yes
2008-07-23 17:31:17 +00:00
.include <bsd.port.mk>