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.

56 lines
1.2 KiB

  1. #
  2. # Copyright (C) 2006-2016 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.10
  10. PKG_RELEASE:=1
  11. PKG_MD5SUM:=8804c961a24500a95690ef287d150abe
  12. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  13. PKG_SOURCE_URL:=http://www.msweet.org/files/project3/
  14. PKG_FIXUP:=autoreconf
  15. PKG_MAINTAINER:=Espen Jürgensen <espenjurgensen+openwrt@gmail.com>
  16. PKG_LICENSE:=GPL-2.0
  17. PKG_LICENSE_FILES:=COPYING
  18. include $(INCLUDE_DIR)/package.mk
  19. define Package/mxml
  20. SECTION:=libs
  21. CATEGORY:=Libraries
  22. TITLE:=Mini-XML
  23. URL:=http://www.minixml.org/
  24. endef
  25. define Package/mxml/description
  26. A small xml library.
  27. endef
  28. TARGET_CFLAGS += $(FPIC)
  29. CONFIGURE_ARGS += \
  30. --enable-shared \
  31. --enable-static
  32. define Build/InstallDev
  33. mkdir -p $(1)/usr/include
  34. $(CP) $(PKG_BUILD_DIR)/mxml.h $(1)/usr/include/
  35. mkdir -p $(1)/usr/lib
  36. $(CP) $(PKG_BUILD_DIR)/libmxml.so* $(1)/usr/lib/
  37. mkdir -p $(1)/usr/lib/pkgconfig
  38. $(CP) $(PKG_BUILD_DIR)/mxml.pc $(1)/usr/lib/pkgconfig/
  39. endef
  40. define Package/mxml/install
  41. $(INSTALL_DIR) $(1)/usr/lib
  42. $(CP) $(PKG_BUILD_DIR)/libmxml.so.* $(1)/usr/lib/
  43. endef
  44. $(eval $(call BuildPackage,mxml))