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.

60 lines
1.4 KiB

  1. #
  2. # Copyright (C) 2006-2017 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=mxml
  9. PKG_VERSION:=2.11
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
  12. PKG_SOURCE_PROTO:=git
  13. PKG_SOURCE_URL:=https://github.com/michaelrsweet/mxml.git
  14. PKG_SOURCE_VERSION:=7b0bb60e51d39b2aaa8e8ca5bf9f3c38e63d643b
  15. PKG_MIRROR_HASH:=e6f38a91f420c0bc64f892163049c37c5cc7744bffbcb05ad1fddec7b34ea438
  16. PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
  17. PKG_FIXUP:=autoreconf
  18. PKG_MAINTAINER:=Espen Jürgensen <espenjurgensen+openwrt@gmail.com>
  19. PKG_LICENSE:=GPL-2.0
  20. PKG_LICENSE_FILES:=COPYING
  21. include $(INCLUDE_DIR)/package.mk
  22. define Package/mxml
  23. SECTION:=libs
  24. CATEGORY:=Libraries
  25. TITLE:=Mini-XML
  26. URL:=http://www.minixml.org/
  27. endef
  28. define Package/mxml/description
  29. A small xml library.
  30. endef
  31. TARGET_CFLAGS += $(FPIC)
  32. CONFIGURE_ARGS += \
  33. --enable-shared \
  34. --enable-static
  35. define Build/InstallDev
  36. mkdir -p $(1)/usr/include
  37. $(CP) $(PKG_BUILD_DIR)/mxml.h $(1)/usr/include/
  38. mkdir -p $(1)/usr/lib
  39. $(CP) $(PKG_BUILD_DIR)/libmxml.so* $(1)/usr/lib/
  40. mkdir -p $(1)/usr/lib/pkgconfig
  41. $(CP) $(PKG_BUILD_DIR)/mxml.pc $(1)/usr/lib/pkgconfig/
  42. endef
  43. define Package/mxml/install
  44. $(INSTALL_DIR) $(1)/usr/lib
  45. $(CP) $(PKG_BUILD_DIR)/libmxml.so.* $(1)/usr/lib/
  46. endef
  47. $(eval $(call BuildPackage,mxml))