ezxml.mk 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. #############################################################
  2. #
  3. # ezxml
  4. #
  5. #############################################################
  6. EZXML_VERSION = 0.8.6
  7. EZXML_SOURCE = ezxml-$(EZXML_VERSION).tar.gz
  8. EZXML_SITE = http://$(BR2_SOURCEFORGE_MIRROR).dl.sourceforge.net/sourceforge/ezxml/
  9. EZXML_INSTALL_STAGING=YES
  10. define EZXML_BUILD_CMDS
  11. $(MAKE) CC="$(TARGET_CC)" CFLAGS="$(TARGET_CFLAGS)" AR=$(TARGET_AR) \
  12. -f GNUmakefile -C $(@D)
  13. endef
  14. define EZXML_INSTALL_STAGING_CMDS
  15. install -D -m 0644 $(@D)/ezxml.h $(STAGING_DIR)/usr/include/ezxml.h
  16. install -D -m 0644 $(@D)/libezxml.a $(STAGING_DIR)/usr/lib/libezxml.a
  17. endef
  18. define EZXML_INSTALL_TARGET_CMDS
  19. install -D -m 0644 $(@D)/ezxml.h $(TARGET_DIR)/usr/include/ezxml.h
  20. install -D -m 0644 $(@D)/libezxml.a $(TARGET_DIR)/usr/lib/libezxml.a
  21. endef
  22. define EZXML_UNINSTALL_STAGING_CMDS
  23. rm -f $(STAGING_DIR)/usr/include/ezxml.h
  24. rm -f $(STAGING_DIR)/usr/lib/libezxml.a
  25. endef
  26. define EZXML_UNINSTALL_TARGET_CMDS
  27. rm -f $(TARGET_DIR)/usr/include/ezxml.h
  28. rm -f $(TARGET_DIR)/usr/lib/libezxml.a
  29. endef
  30. define EZXML_CLEAN_CMDS
  31. -$(MAKE) -C $(@D) -f GNUmakefile clean
  32. endef
  33. $(eval $(call GENTARGETS))