summaryrefslogtreecommitdiff
path: root/package/sqlite
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2013-10-22 19:29:20 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2013-10-22 19:29:20 +0200
commitd279b5d1fe744cac44da7cd1b51f9ba6a2cc4647 (patch)
treebf575aca8f9ce9cf088ce3aee992fc846cd6e130 /package/sqlite
parent32a82e38679501da738199135b35f93ddc8aca0a (diff)
fix libmix packages, while checking all packages make some style cleanup
Diffstat (limited to 'package/sqlite')
-rw-r--r--package/sqlite/Makefile21
1 files changed, 9 insertions, 12 deletions
diff --git a/package/sqlite/Makefile b/package/sqlite/Makefile
index 06800ca1c..5eaa4b32b 100644
--- a/package/sqlite/Makefile
+++ b/package/sqlite/Makefile
@@ -12,17 +12,23 @@ PKG_SECTION:= db
PKG_BUILDDEP:= ncurses readline
PKG_URL:= http://www.sqlite.org/
PKG_SITES:= http://www.sqlite.org/2013/
+PKG_LIBNAME:= libsqlite
+PKG_OPTS:= dev
DISTFILES:= sqlite-autoconf-3080002.tar.gz
WRKDIST= ${WRKDIR}/sqlite-autoconf-3080002
-PKG_SUBPKGS:= SQLITE_CLI LIBSQLITE LIBSQLITE_DEV
+PKG_SUBPKGS:= SQLITE_CLI LIBSQLITE
PKGSD_LIBSQLITE:= sqlite library
+PKGSC_LIBSQLITE:= libs
+
+ifeq ($(ADK_STATIC),y)
+PKG_OPTS+= libmix
+endif
include ${TOPDIR}/mk/package.mk
-$(eval $(call PKG_template,LIBSQLITE,libsqlite,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_LIBSQLITE},${PKG_SECTION}))
-$(eval $(call PKG_template,LIBSQLITE_DEV,libsqlite-dev,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_LIBSQLITE},${PKG_SECTION}))
+$(eval $(call PKG_template,LIBSQLITE,libsqlite,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_LIBSQLITE},${PKGSC_LIBSQLITE},${PKG_OPTS}))
$(eval $(call PKG_template,SQLITE_CLI,sqlite-cli,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
TARGET_CFLAGS:= $(filter-out -flto,$(TARGET_CFLAGS))
@@ -44,13 +50,4 @@ sqlite-cli-install:
${INSTALL_DIR} ${IDIR_SQLITE_CLI}/usr/bin
${INSTALL_BIN} ${WRKINST}/usr/bin/sqlite3 ${IDIR_SQLITE_CLI}/usr/bin
-libsqlite-dev-install:
- ${INSTALL_DIR} ${IDIR_LIBSQLITE_DEV}/usr/lib/pkgconfig
- ${CP} ${WRKINST}/usr/lib/pkgconfig/*.pc \
- ${IDIR_LIBSQLITE_DEV}/usr/lib/pkgconfig
- ${INSTALL_DIR} ${IDIR_LIBSQLITE_DEV}/usr/include
- ${CP} ${WRKINST}/usr/include/* \
- ${IDIR_LIBSQLITE_DEV}/usr/include
-
-
include ${TOPDIR}/mk/pkg-bottom.mk