Makefile 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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.6.20
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= 0faf8fc8ccff5297513c6532b2b4ce23
  8. PKG_DESCR:= embeddable SQL database
  9. PKG_SECTION:= db
  10. PKG_BUILDDEP:= ncurses readline
  11. PKG_URL:= http://www.sqlite.org/
  12. PKG_SITES:= http://www.sqlite.org/
  13. PKG_SUBPKGS:= LIBSQLITE SQLITE_CLI
  14. include ${TOPDIR}/mk/package.mk
  15. $(eval $(call PKG_template,LIBSQLITE,libsqlite,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  16. $(eval $(call PKG_template,SQLITE_CLI,sqlite-cli,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  17. CONFIGURE_ENV+= config_BUILD_CC="${HOSTCC}" \
  18. config_BUILD_CFLAGS="${HOSTCFLAGS}" \
  19. config_TARGET_CC="${TARGET_CC}" \
  20. config_TARGET_CFLAGS="${TARGET_CFLAGS}" \
  21. config_TARGET_READLINE_INC="-I${STAGING_DIR}/usr/include" \
  22. config_TARGET_READLINE_LIBS="-L${STAGING_DIR}/usr/lib -lreadline -lncurses"
  23. MAKE_FLAGS+= LIBPTHREAD=-lm
  24. CONFIGURE_ARGS+= --disable-tcl \
  25. --without-tcl \
  26. --disable-amalgamation
  27. post-install:
  28. ${INSTALL_DIR} ${IDIR_LIBSQLITE}/usr/lib
  29. ${CP} ${WRKINST}/usr/lib/libsqlite3.so* ${IDIR_LIBSQLITE}/usr/lib/
  30. ${INSTALL_DIR} ${IDIR_SQLITE_CLI}/usr/bin
  31. ${INSTALL_BIN} ${WRKINST}/usr/bin/sqlite3 ${IDIR_SQLITE_CLI}/usr/bin/
  32. include ${TOPDIR}/mk/pkg-bottom.mk