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.

50 lines
1.4 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.5_rev1
  7. PKG_RELEASE:=1
  8. PKG_SOURCE:=onig-v$(subst _,-,$(PKG_VERSION)).tar.gz
  9. PKG_SOURCE_URL:=https://codeload.github.com/kkos/oniguruma/tar.gz/v$(PKG_VERSION)?
  10. PKG_HASH:=e0c2212102fa4146c43b6c4f2f7727a84fd055cc2109c293d64298cef0c372b5
  11. PKG_MAINTAINER:=Eneas U de Queiroz <cotequeiroz@gmail.com>
  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. include $(INCLUDE_DIR)/cmake.mk
  19. CMAKE_INSTALL:=1
  20. CMAKE_OPTIONS += -DENABLE_POSIX_API:BOOL=ON
  21. define Package/oniguruma
  22. SECTION:=libs
  23. CATEGORY:=Libraries
  24. TITLE:=Regular expression library for different character encodings
  25. URL:=https://github.com/kkos/oniguruma
  26. ABI_VERSION:=5
  27. endef
  28. define Package/oniguruma/description
  29. Oniguruma is a modern and flexible regular expressions library.
  30. It encompasses features from different regular expression implementations that
  31. traditionally exist in different languages.
  32. Character encoding can be specified per regular expression object.
  33. endef
  34. define Package/oniguruma/install
  35. $(INSTALL_DIR) $(1)/usr/lib
  36. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/libonig.so.$(ABI_VERSION) $(1)/usr/lib/
  37. endef
  38. $(eval $(call BuildPackage,oniguruma))