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.

54 lines
1.6 KiB

  1. # This is free software, licensed under the GNU General Public License v2.
  2. # See /LICENSE for more information.
  3. #
  4. include $(TOPDIR)/rules.mk
  5. PKG_NAME:=oniguruma
  6. PKG_VERSION:=6.9.2
  7. PKG_RELEASE:=1
  8. PKG_SOURCE:=onig-$(PKG_VERSION).tar.gz
  9. PKG_SOURCE_URL:=https://codeload.github.com/kkos/oniguruma/tar.gz/v$(PKG_VERSION)?
  10. PKG_HASH:=3b568a9050839e7828b2f2d5bc9cd3650979b6b54a080f54c515320dddda06b0
  11. PKG_MAINTAINER:=Eneas U de Queiroz <cote2004-github@yahoo.com.br>
  12. PKG_LICENSE:=BSD-2-Clause
  13. PKG_LICENSE_FILES:=COPYING
  14. PKG_CPE_ID:=cpe:/a:oniguruma_project:oniguruma
  15. PKG_INSTALL:=1
  16. PKG_FIXUP:=autoreconf
  17. include $(INCLUDE_DIR)/package.mk
  18. define Package/oniguruma
  19. SECTION:=libs
  20. CATEGORY:=Libraries
  21. TITLE:=Regular expression library for different character encodings
  22. URL:=https://github.com/kkos/oniguruma
  23. DEPENDS:=
  24. ABI_VERSION:=5
  25. endef
  26. define Package/oniguruma/description
  27. Oniguruma is a modern and flexible regular expressions library.
  28. It encompasses features from different regular expression implementations that
  29. traditionally exist in different languages.
  30. Character encoding can be specified per regular expression object.
  31. endef
  32. define Package/oniguruma/install
  33. $(INSTALL_DIR) $(1)/usr/lib
  34. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/libonig.so.$(ABI_VERSION) $(1)/usr/lib/
  35. endef
  36. define Build/InstallDev
  37. $(INSTALL_DIR) $(1)/usr/{include,lib}
  38. $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
  39. $(CP) $(PKG_INSTALL_DIR)/usr/lib/* $(1)/usr/lib/
  40. $(SED) 's,/usr,$(STAGING_DIR)/usr,g' $(1)/usr/lib/pkgconfig/oniguruma.pc
  41. endef
  42. $(eval $(call BuildPackage,oniguruma))