1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- # 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.8.0.2
- PKG_RELEASE:= 1
- PKG_MD5SUM:= 6d6cc639a4da04fbbdda7b1a1a01b386
- PKG_DESCR:= embeddable SQL database (cli)
- 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
- 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},${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))
- CONFIGURE_ENV+= config_BUILD_CC="${CC_FOR_BUILD}" \
- config_BUILD_CFLAGS="${CFLAGS_FOR_BUILD}" \
- config_TARGET_CC="${TARGET_CC}" \
- config_TARGET_CFLAGS="${TARGET_CFLAGS}" \
- config_TARGET_READLINE_INC="-I${STAGING_TARGET_DIR}/usr/include" \
- config_TARGET_READLINE_LIBS="-L${STAGING_TARGET_DIR}/usr/lib -lreadline -lncurses"
- MAKE_FLAGS+= LIBPTHREAD=-lm
- TARGET_CPPFLAGS+= -DSQLITE_SECURE_DELETE=1 -DSQLITE_THREADSAFE=1 -DSQLITE_ENABLE_FTS3=1 -DSQLITE_ENABLE_UNLOCK_NOTIFY=1
- libsqlite-install:
- ${INSTALL_DIR} ${IDIR_LIBSQLITE}/usr/lib
- ${CP} ${WRKINST}/usr/lib/libsqlite3.so* ${IDIR_LIBSQLITE}/usr/lib
- sqlite-cli-install:
- ${INSTALL_DIR} ${IDIR_SQLITE_CLI}/usr/bin
- ${INSTALL_BIN} ${WRKINST}/usr/bin/sqlite3 ${IDIR_SQLITE_CLI}/usr/bin
- include ${TOPDIR}/mk/pkg-bottom.mk
|