summaryrefslogtreecommitdiff
path: root/package/sqlite
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2011-04-23 14:20:18 (GMT)
committerWaldemar Brodkorb <wbx@openadk.org>2011-04-23 14:20:18 (GMT)
commit0d77b6be1aa36597d835b1463a5d284ab9b31418 (patch)
tree02134c74ee79de2610d532901dd3dc3144fa98dd /package/sqlite
parentdb917f4f7432be6761d54dd8bb5787ac5b8c654b (diff)
add devel subpackage
Diffstat (limited to 'package/sqlite')
-rw-r--r--package/sqlite/Makefile12
1 files changed, 11 insertions, 1 deletions
diff --git a/package/sqlite/Makefile b/package/sqlite/Makefile
index c9eab7a..2b3e9c5 100644
--- a/package/sqlite/Makefile
+++ b/package/sqlite/Makefile
@@ -16,12 +16,13 @@ PKG_SITES:= http://www.sqlite.org/
DISTFILES:= sqlite-autoconf-3070500.tar.gz
WRKDIST= ${WRKDIR}/sqlite-autoconf-3070500
-PKG_SUBPKGS:= SQLITE_CLI LIBSQLITE
+PKG_SUBPKGS:= SQLITE_CLI LIBSQLITE LIBSQLITE_DEV
PKGSD_LIBSQLITE:= sqlite library
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,SQLITE_CLI,sqlite-cli,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
TARGET_CFLAGS:= $(filter-out -flto,$(TARGET_CFLAGS))
@@ -43,4 +44,13 @@ 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