Makefile 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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. PKG_DESCR:= Self-contained, embeddable, zero-configuration SQL database engine
  11. PKG_SECTION:= libs
  12. PKG_URL:= http://www.sqlite.org
  13. PKG_SITES:= http://www.sqlite.org/
  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_STYLE:= gnu
  18. CONFIGURE_ENV+= config_BUILD_CC="${HOSTCC}" \
  19. config_BUILD_CFLAGS="${HOSTCFLAGS}" \
  20. config_TARGET_CC="${TARGET_CC}" \
  21. config_TARGET_CFLAGS="${TARGET_CFLAGS}" \
  22. config_TARGET_READLINE_INC="-I${STAGING_DIR}/usr/include" \
  23. config_TARGET_READLINE_LIBS="-L${STAGING_DIR}/usr/lib -lreadline -lncurses"
  24. MAKE_FLAGS+= LIBPTHREAD=-lm
  25. CONFIGURE_ARGS+= --disable-tcl
  26. BUILD_STYLE:= auto
  27. INSTALL_STYLE:= auto
  28. post-install:
  29. ${INSTALL_DIR} ${IDIR_LIBSQLITE}/usr/lib
  30. ${CP} ${WRKINST}/usr/lib/libsqlite3.so.* ${IDIR_LIBSQLITE}/usr/lib/
  31. ${INSTALL_DIR} ${IDIR_SQLITE_CLI}/usr/bin
  32. ${INSTALL_BIN} ${WRKINST}/usr/bin/sqlite3 ${IDIR_SQLITE_CLI}/usr/bin/
  33. include ${TOPDIR}/mk/pkg-bottom.mk