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.4.6
  6. PKG_RELEASE:= 1
  7. PKG_HASH:= de55794b7a9bc214852fdc075beaaecd854efe1361597e6268ee87946951289b
  8. PKG_DESCR:= xml parsing library
  9. PKG_SECTION:= libs/data
  10. PKG_NEEDS:= c++
  11. PKG_URL:= http://expat.sourceforge.net
  12. PKG_SITES:= https://github.com/libexpat/libexpat/releases/download/R_2_4_6/
  13. PKG_LIBNAME:= libexpat
  14. PKG_OPTS:= dev
  15. include ${ADK_TOPDIR}/mk/host.mk
  16. include ${ADK_TOPDIR}/mk/package.mk
  17. $(eval $(call HOST_template,LIBEXPAT,libexpat,${PKG_VERSION}-${PKG_RELEASE}))
  18. $(eval $(call PKG_template,LIBEXPAT,libexpat,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
  19. ifeq ($(ADK_TARGET_USE_STATIC_AND_SHARED_LIBS),y)
  20. TARGET_CFLAGS:= $(filter-out -static,$(TARGET_CFLAGS))
  21. TARGET_LDFLAGS:=$(filter-out -static,$(TARGET_LDFLAGS))
  22. endif
  23. CONFIGURE_ARGS+= --without-docbook
  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