Makefile 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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 ${TOPDIR}/rules.mk
  4. PKG_NAME:= sqlite
  5. PKG_VERSION:= 3.8.0.2
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= 6d6cc639a4da04fbbdda7b1a1a01b386
  8. PKG_DESCR:= embeddable SQL database cli
  9. PKG_SECTION:= misc
  10. PKG_BUILDDEP:= ncurses readline
  11. PKG_URL:= http://www.sqlite.org/
  12. PKG_SITES:= http://www.sqlite.org/2013/
  13. PKG_LIBNAME:= libsqlite
  14. PKG_OPTS:= dev
  15. DISTFILES:= sqlite-autoconf-3080002.tar.gz
  16. WRKDIST= ${WRKDIR}/sqlite-autoconf-3080002
  17. PKG_SUBPKGS:= SQLITE_CLI LIBSQLITE
  18. PKGSD_LIBSQLITE:= sqlite library
  19. PKGSC_LIBSQLITE:= libs
  20. ifeq ($(ADK_STATIC),y)
  21. PKG_OPTS+= libmix
  22. endif
  23. include ${TOPDIR}/mk/package.mk
  24. $(eval $(call PKG_template,LIBSQLITE,libsqlite,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_LIBSQLITE},${PKGSC_LIBSQLITE},${PKG_OPTS}))
  25. $(eval $(call PKG_template,SQLITE_CLI,sqlite-cli,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  26. CONFIGURE_ENV+= config_BUILD_CC="${CC_FOR_BUILD}" \
  27. config_BUILD_CFLAGS="${CFLAGS_FOR_BUILD}" \
  28. config_TARGET_CC="${TARGET_CC}" \
  29. config_TARGET_CFLAGS="${TARGET_CFLAGS}" \
  30. config_TARGET_READLINE_INC="-I${STAGING_TARGET_DIR}/usr/include" \
  31. config_TARGET_READLINE_LIBS="-L${STAGING_TARGET_DIR}/usr/lib -lreadline -lncurses"
  32. MAKE_FLAGS+= LIBPTHREAD=-lm
  33. TARGET_CPPFLAGS+= -DSQLITE_SECURE_DELETE=1 -DSQLITE_THREADSAFE=1 -DSQLITE_ENABLE_FTS3=1 -DSQLITE_ENABLE_UNLOCK_NOTIFY=1
  34. libsqlite-install:
  35. ${INSTALL_DIR} ${IDIR_LIBSQLITE}/usr/lib
  36. ${CP} ${WRKINST}/usr/lib/libsqlite3.so* ${IDIR_LIBSQLITE}/usr/lib
  37. sqlite-cli-install:
  38. ${INSTALL_DIR} ${IDIR_SQLITE_CLI}/usr/bin
  39. ${INSTALL_BIN} ${WRKINST}/usr/bin/sqlite3 ${IDIR_SQLITE_CLI}/usr/bin
  40. include ${TOPDIR}/mk/pkg-bottom.mk