Makefile 1.2 KB

123456789101112131415161718192021222324252627282930313233343536
  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 ${ADK_TOPDIR}/rules.mk
  4. PKG_NAME:= expat
  5. PKG_VERSION:= 2.7.0
  6. PKG_RELEASE:= 1
  7. PKG_HASH:= 25df13dd2819e85fb27a1ce0431772b7047d72af81ae78dc26b4c6e0805f48d1
  8. PKG_DESCR:= xml parsing library
  9. PKG_SECTION:= libs/data
  10. PKG_NEEDS:= c++
  11. PKG_SITES:= https://github.com/libexpat/libexpat/releases/download/R_2_7_0/
  12. PKG_LIBNAME:= libexpat
  13. PKG_OPTS:= dev
  14. include ${ADK_TOPDIR}/mk/host.mk
  15. include ${ADK_TOPDIR}/mk/package.mk
  16. $(eval $(call HOST_template,LIBEXPAT,libexpat,${PKG_VERSION}-${PKG_RELEASE}))
  17. $(eval $(call PKG_template,LIBEXPAT,libexpat,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
  18. ifeq ($(ADK_TARGET_USE_STATIC_AND_SHARED_LIBS),y)
  19. TARGET_CFLAGS:= $(filter-out -static,$(TARGET_CFLAGS))
  20. TARGET_LDFLAGS:=$(filter-out -static,$(TARGET_LDFLAGS))
  21. endif
  22. CONFIGURE_ARGS+= --without-docbook \
  23. --without-tests
  24. libexpat-install:
  25. ${INSTALL_DIR} ${IDIR_LIBEXPAT}/usr/lib
  26. ${CP} ${WRKINST}/usr/lib/libexpat.so* ${IDIR_LIBEXPAT}/usr/lib/
  27. include ${ADK_TOPDIR}/mk/host-bottom.mk
  28. include ${ADK_TOPDIR}/mk/pkg-bottom.mk