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.

55 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.5_rev1
  7. PKG_RELEASE:=3
  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. CONFIGURE_ARGS += --enable-posix-api
  19. define Package/oniguruma
  20. SECTION:=libs
  21. CATEGORY:=Libraries
  22. TITLE:=Regular expression library for different character encodings
  23. URL:=https://github.com/kkos/oniguruma
  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))