Makefile 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. # This file is part of the OpenADK project. OpenADK is copyrighted
  2. # material, please see the LICENCE file in the top-level directory.
  3. include ${ADK_TOPDIR}/rules.mk
  4. PKG_NAME:= sqlite
  5. PKG_VERSION:= 3.8.10.2
  6. PKG_RELEASE:= 1
  7. PKG_HASH:= 8382e55a4e7d853c93038562ca3dd00307937fccf1c6b65ddd813e503a56d626
  8. PKG_DESCR:= embeddable sql database cli
  9. PKG_SECTION:= sys/misc
  10. PKG_BUILDDEP:= ncurses readline
  11. PKG_DEPENDS:= libsqlite
  12. PKG_URL:= http://www.sqlite.org/
  13. PKG_SITES:= http://www.sqlite.org/2015/
  14. PKG_LIBNAME:= libsqlite
  15. PKG_OPTS:= dev
  16. PKG_NOPARALLEL:= 1
  17. DISTFILES:= sqlite-autoconf-3081002.tar.gz
  18. WRKDIST= ${WRKDIR}/sqlite-autoconf-3081002
  19. PKG_SUBPKGS:= SQLITE_CLI LIBSQLITE
  20. PKGSD_LIBSQLITE:= emeddable sql library
  21. PKGSC_LIBSQLITE:= libs/db
  22. include ${ADK_TOPDIR}/mk/package.mk
  23. $(eval $(call PKG_template,LIBSQLITE,libsqlite,${PKG_VERSION}-${PKG_RELEASE},${PKGSS_LIBSQLITE},${PKGSD_LIBSQLITE},${PKGSC_LIBSQLITE},${PKG_OPTS}))
  24. $(eval $(call PKG_template,SQLITE_CLI,sqlite-cli,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  25. TARGET_CFLAGS:= $(filter-out -ffast-math,$(TARGET_CFLAGS))
  26. ifeq ($(ADK_TARGET_USE_STATIC_LIBS),y)
  27. CONFIGURE_ARGS+= --enable-dynamic-extensions=no
  28. endif
  29. CONFIGURE_ENV+= config_BUILD_CC="${CC_FOR_BUILD}" \
  30. config_BUILD_CFLAGS="${CFLAGS_FOR_BUILD}" \
  31. config_TARGET_CC="${TARGET_CC}" \
  32. config_TARGET_CFLAGS="${TARGET_CFLAGS}" \
  33. config_TARGET_READLINE_INC="-I${STAGING_TARGET_DIR}/usr/include" \
  34. config_TARGET_READLINE_LIBS="-L${STAGING_TARGET_DIR}/usr/lib -lreadline -lncurses"
  35. MAKE_FLAGS+= LIBPTHREAD=-lm
  36. TARGET_CPPFLAGS+= -DSQLITE_SECURE_DELETE=1 -DSQLITE_THREADSAFE=1 -DSQLITE_ENABLE_FTS3=1 -DSQLITE_ENABLE_UNLOCK_NOTIFY=1
  37. libsqlite-install:
  38. ${INSTALL_DIR} ${IDIR_LIBSQLITE}/usr/lib
  39. ${CP} ${WRKINST}/usr/lib/libsqlite3.so* ${IDIR_LIBSQLITE}/usr/lib
  40. sqlite-cli-install:
  41. ${INSTALL_DIR} ${IDIR_SQLITE_CLI}/usr/bin
  42. ${INSTALL_BIN} ${WRKINST}/usr/bin/sqlite3 ${IDIR_SQLITE_CLI}/usr/bin
  43. include ${ADK_TOPDIR}/mk/pkg-bottom.mk