You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

52 lines
1.2 KiB

  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=mxml
  3. PKG_VERSION:=3.3
  4. PKG_RELEASE:=1
  5. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  6. PKG_SOURCE_URL:=https://github.com/michaelrsweet/$(PKG_NAME)/releases/download/v$(PKG_VERSION)/
  7. PKG_HASH:=7cf976366f9e8e4f8cff7d35a59bcf6201c769fce9e58015d64f4b6de1fe3dd8
  8. PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
  9. PKG_FIXUP:=autoreconf
  10. PKG_MAINTAINER:=Espen Jürgensen <espenjurgensen+openwrt@gmail.com>
  11. PKG_LICENSE:=GPL-2.0
  12. PKG_LICENSE_FILES:=COPYING
  13. include $(INCLUDE_DIR)/package.mk
  14. define Package/mxml
  15. SECTION:=libs
  16. CATEGORY:=Libraries
  17. TITLE:=Mini-XML
  18. URL:=http://www.minixml.org/
  19. DEPENDS:=+zlib
  20. endef
  21. define Package/mxml/description
  22. A small xml library.
  23. endef
  24. TARGET_CFLAGS += $(FPIC)
  25. CONFIGURE_ARGS += \
  26. --enable-shared \
  27. --enable-static
  28. define Build/InstallDev
  29. mkdir -p $(1)/usr/include
  30. $(CP) $(PKG_BUILD_DIR)/mxml.h $(1)/usr/include/
  31. mkdir -p $(1)/usr/lib
  32. $(CP) $(PKG_BUILD_DIR)/libmxml.so* $(1)/usr/lib/
  33. mkdir -p $(1)/usr/lib/pkgconfig
  34. $(CP) $(PKG_BUILD_DIR)/mxml.pc $(1)/usr/lib/pkgconfig/
  35. endef
  36. define Package/mxml/install
  37. $(INSTALL_DIR) $(1)/usr/lib
  38. $(CP) $(PKG_BUILD_DIR)/libmxml.so.* $(1)/usr/lib/
  39. endef
  40. $(eval $(call BuildPackage,mxml))