Makefile 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. # $Id$
  2. #-
  3. # This file is part of the OpenADK project. OpenADK is copyrighted
  4. # material, please see the LICENCE file in the top-level directory.
  5. include ${TOPDIR}/rules.mk
  6. PKG_NAME:= sqlite
  7. PKG_VERSION:= 3.6.2
  8. PKG_RELEASE:= 1
  9. PKG_MD5SUM:= 46f92e42243bc51aaa3871645ce78bd5
  10. MASTER_SITES:= http://www.sqlite.org/
  11. include ${TOPDIR}/mk/package.mk
  12. $(eval $(call PKG_template,LIBSQLITE,libsqlite,${PKG_VERSION}-${PKG_RELEASE}))
  13. $(eval $(call PKG_template,SQLITE_CLI,sqlite-cli,${PKG_VERSION}-${PKG_RELEASE}))
  14. CONFIGURE_STYLE:= gnu
  15. CONFIGURE_ENV+= config_BUILD_CC="${HOSTCC}" \
  16. config_BUILD_CFLAGS="-O2" \
  17. config_TARGET_CC="${TARGET_CC}" \
  18. config_TARGET_CFLAGS="${TARGET_CFLAGS}" \
  19. config_TARGET_READLINE_INC="-I${STAGING_DIR}/usr/include" \
  20. config_TARGET_READLINE_LIBS="-L${STAGING_DIR}/usr/lib -lreadline -lncurses"
  21. MAKE_FLAGS+= LIBPTHREAD=-lm
  22. CONFIGURE_ARGS+= --disable-tcl
  23. BUILD_STYLE:= auto
  24. INSTALL_STYLE:= auto
  25. post-install:
  26. ${INSTALL_DIR} ${IDIR_LIBSQLITE}/usr/lib
  27. ${CP} ${WRKINST}/usr/lib/libsqlite3.so.* ${IDIR_LIBSQLITE}/usr/lib/
  28. ${INSTALL_DIR} ${IDIR_SQLITE_CLI}/usr/bin
  29. ${INSTALL_BIN} ${WRKINST}/usr/bin/sqlite3 ${IDIR_SQLITE_CLI}/usr/bin/
  30. include ${TOPDIR}/mk/pkg-bottom.mk