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.

54 lines
1.2 KiB

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