Makefile 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=http://download.libroxml.net/pool/v2.x
  13. PKG_MD5SUM:=a975f91be150f7a19168a45ce15769ca
  14. PKG_MAINTAINER:=Felix Fietkau <nbd@openwrt.org>
  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. endef
  25. CONFIGURE_ARGS += \
  26. --enable-shared \
  27. --enable-static \
  28. --disable-roxml
  29. define Build/InstallDev
  30. $(INSTALL_DIR) $(1)
  31. $(CP) $(PKG_INSTALL_DIR)/* $(1)/
  32. endef
  33. define Package/libroxml/install
  34. $(INSTALL_DIR) $(1)/usr/lib
  35. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libroxml.so.* $(1)/usr/lib/
  36. endef
  37. $(eval $(call BuildPackage,libroxml))