summaryrefslogtreecommitdiff
path: root/package/sqlite/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'package/sqlite/Makefile')
-rw-r--r--package/sqlite/Makefile37
1 files changed, 37 insertions, 0 deletions
diff --git a/package/sqlite/Makefile b/package/sqlite/Makefile
new file mode 100644
index 000000000..5c1a8ce80
--- /dev/null
+++ b/package/sqlite/Makefile
@@ -0,0 +1,37 @@
+# $Id$
+#-
+# This file is part of the OpenADK project. OpenADK is copyrighted
+# material, please see the LICENCE file in the top-level directory.
+
+include ${TOPDIR}/rules.mk
+
+PKG_NAME:= sqlite
+PKG_VERSION:= 3.6.2
+PKG_RELEASE:= 1
+PKG_MD5SUM:= 46f92e42243bc51aaa3871645ce78bd5
+MASTER_SITES:= http://www.sqlite.org/
+
+include ${TOPDIR}/mk/package.mk
+
+$(eval $(call PKG_template,LIBSQLITE,libsqlite,${PKG_VERSION}-${PKG_RELEASE},${ARCH}))
+$(eval $(call PKG_template,SQLITE_CLI,sqlite-cli,${PKG_VERSION}-${PKG_RELEASE},${ARCH}))
+
+CONFIGURE_STYLE:= gnu
+CONFIGURE_ENV+= config_BUILD_CC="${HOSTCC}" \
+ config_BUILD_CFLAGS="-O2" \
+ config_TARGET_CC="${TARGET_CC}" \
+ config_TARGET_CFLAGS="${TARGET_CFLAGS}" \
+ config_TARGET_READLINE_INC="-I${STAGING_DIR}/usr/include" \
+ config_TARGET_READLINE_LIBS="-L${STAGING_DIR}/usr/lib -lreadline -lncurses"
+MAKE_FLAGS+= LIBPTHREAD=-lm
+CONFIGURE_ARGS+= --disable-tcl
+BUILD_STYLE:= auto
+INSTALL_STYLE:= auto
+
+post-install:
+ ${INSTALL_DIR} ${IDIR_LIBSQLITE}/usr/lib
+ ${CP} ${WRKINST}/usr/lib/libsqlite3.so.* ${IDIR_LIBSQLITE}/usr/lib/
+ ${INSTALL_DIR} ${IDIR_SQLITE_CLI}/usr/bin
+ ${INSTALL_BIN} ${WRKINST}/usr/bin/sqlite3 ${IDIR_SQLITE_CLI}/usr/bin/
+
+include ${TOPDIR}/mk/pkg-bottom.mk