Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/public-domain/sqlite/lib auto-generate so that it d...



details:   https://anonhg.NetBSD.org/src/rev/1b98f4bdd53b
branches:  trunk
changeset: 326785:1b98f4bdd53b
user:      christos <christos%NetBSD.org@localhost>
date:      Mon Feb 17 20:08:53 2014 +0000

description:
auto-generate so that it does not get out of sync again.

diffstat:

 external/public-domain/sqlite/lib/Makefile      |  10 +++++++++-
 external/public-domain/sqlite/lib/sqlite3.pc    |   4 ----
 external/public-domain/sqlite/lib/sqlite3.pc.in |   4 ++++
 3 files changed, 13 insertions(+), 5 deletions(-)

diffs (38 lines):

diff -r cad5b6e8e445 -r 1b98f4bdd53b external/public-domain/sqlite/lib/Makefile
--- a/external/public-domain/sqlite/lib/Makefile        Mon Feb 17 19:43:52 2014 +0000
+++ b/external/public-domain/sqlite/lib/Makefile        Mon Feb 17 20:08:53 2014 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.3 2013/02/15 07:59:36 martin Exp $
+# $NetBSD: Makefile,v 1.4 2014/02/17 20:08:53 christos Exp $
 
 LIB=           sqlite3
 INCS=          sqlite3.h sqlite3ext.h
@@ -14,4 +14,12 @@
 FILESMODE_sqlite3.pc=  ${NONBINMODE}
 FILESDIR_sqlite3.pc=   /usr/lib/pkgconfig
 
+CLEANFILES+=sqlite3.pc
+
 .include <bsd.lib.mk>
+
+sqlite3.pc: ${SRCDIR}/sqlite3.h sqlite3.pc.in
+       @(V=$$( (echo '#include <sqlite3.h>'; echo SQLITE_VERSION) | \
+           ${CC} -E -I${SRCDIR} - | tail -1 | tr -d '"') && \
+           ${TOOL_SED} -e s/@VERSION@/$$V/ < ${.CURDIR}/sqlite3.pc.in \
+           > ${.TARGET})
diff -r cad5b6e8e445 -r 1b98f4bdd53b external/public-domain/sqlite/lib/sqlite3.pc
--- a/external/public-domain/sqlite/lib/sqlite3.pc      Mon Feb 17 19:43:52 2014 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,4 +0,0 @@
-Name: SQLite
-Description: SQL database engine
-Version: 3.7.10
-Libs: -lsqlite3
diff -r cad5b6e8e445 -r 1b98f4bdd53b external/public-domain/sqlite/lib/sqlite3.pc.in
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/external/public-domain/sqlite/lib/sqlite3.pc.in   Mon Feb 17 20:08:53 2014 +0000
@@ -0,0 +1,4 @@
+Name: SQLite
+Description: SQL database engine
+Version: @VERSION@
+Libs: -lsqlite3



Home | Main Index | Thread Index | Old Index