Makefile 1.1 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:=2.3.0
  10. PKG_RELEASE:=2
  11. PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
  12. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  13. PKG_SOURCE_URL:=http://download.libroxml.net/pool/v2.x
  14. PKG_MD5SUM:=a975f91be150f7a19168a45ce15769ca
  15. PKG_MAINTAINER:=Felix Fietkau <[email protected]>
  16. PKG_INSTALL:=1
  17. PKG_BUILD_PARALLEL:=1
  18. PKG_LICENSE:=LGPL-2.1+
  19. include $(INCLUDE_DIR)/package.mk
  20. define Package/libroxml
  21. SECTION:=libs
  22. CATEGORY:=Libraries
  23. TITLE:=Minimum, easy-to-use, C implementation for xml file parsing
  24. URL:=http://www.libroxml.net/
  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))