Makefile 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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. include ${TOPDIR}/mk/package.mk
  14. $(eval $(call PKG_template,LIBSQLITE,libsqlite,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  15. $(eval $(call PKG_template,SQLITE_CLI,sqlite-cli,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  16. CONFIGURE_ENV+= config_BUILD_CC="${HOSTCC}" \
  17. config_BUILD_CFLAGS="${HOSTCFLAGS}" \
  18. config_TARGET_CC="${TARGET_CC}" \
  19. config_TARGET_CFLAGS="${TARGET_CFLAGS}" \
  20. config_TARGET_READLINE_INC="-I${STAGING_DIR}/usr/include" \
  21. config_TARGET_READLINE_LIBS="-L${STAGING_DIR}/usr/lib -lreadline -lncurses"
  22. MAKE_FLAGS+= LIBPTHREAD=-lm
  23. CONFIGURE_ARGS+= --disable-tcl \
  24. --without-tcl \
  25. --disable-amalgamation
  26. post-install:
  27. ${INSTALL_DIR} ${IDIR_LIBSQLITE}/usr/lib
  28. ${CP} ${WRKINST}/usr/lib/libsqlite3.so* ${IDIR_LIBSQLITE}/usr/lib/
  29. ${INSTALL_DIR} ${IDIR_SQLITE_CLI}/usr/bin
  30. ${INSTALL_BIN} ${WRKINST}/usr/bin/sqlite3 ${IDIR_SQLITE_CLI}/usr/bin/
  31. include ${TOPDIR}/mk/pkg-bottom.mk