Makefile 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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.7.3
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= 5437978aae90350cf984993091e0d695
  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. TCFLAGS+= -DSQLITE_SECURE_DELETE=1
  25. CONFIGURE_ARGS+= --disable-tcl \
  26. --without-tcl \
  27. --disable-amalgamation
  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