Makefile 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. #
  2. # Copyright (C) 2014 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:=libroxml
  9. PKG_VERSION:=3.0.2
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=http://download.libroxml.net/pool/v3.x
  13. PKG_HASH:=ed6d68d1bceabf98e5e76907411e2e4d93b2dbd48479ab41dede851f59dad6a3
  14. PKG_MAINTAINER:=Felix Fietkau <nbd@nbd.name>
  15. PKG_INSTALL:=1
  16. PKG_BUILD_PARALLEL:=1
  17. PKG_LICENSE:=LGPL-2.1+
  18. include $(INCLUDE_DIR)/package.mk
  19. define Package/libroxml
  20. SECTION:=libs
  21. CATEGORY:=Libraries
  22. TITLE:=Minimum, easy-to-use, C implementation for xml file parsing
  23. URL:=http://www.libroxml.net/
  24. ABI_VERSION:=3.0.2
  25. endef
  26. CONFIGURE_ARGS += \
  27. --enable-shared \
  28. --enable-static \
  29. --disable-roxml
  30. define Build/InstallDev
  31. $(INSTALL_DIR) $(1)
  32. $(CP) $(PKG_INSTALL_DIR)/* $(1)/
  33. endef
  34. define Package/libroxml/install
  35. $(INSTALL_DIR) $(1)/usr/lib
  36. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libroxml.so.* $(1)/usr/lib/
  37. endef
  38. $(eval $(call BuildPackage,libroxml))