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.

56 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.7.1
  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:=8f9a75b7d90dde0942c30a8b3c17889b2fecf190690988cc381c4e525cbbd22b
  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_FIXUP:=autoreconf
  16. PKG_INSTALL:=1
  17. PKG_BUILD_PARALLEL:=1
  18. include $(INCLUDE_DIR)/package.mk
  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. CONFIGURE_ARGS += --enable-posix-api
  33. define Package/oniguruma/install
  34. $(INSTALL_DIR) $(1)/usr/lib
  35. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/libonig.so.$(ABI_VERSION) $(1)/usr/lib/
  36. endef
  37. define Build/InstallDev
  38. $(INSTALL_DIR) $(1)/usr/{include,lib}
  39. $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
  40. $(CP) $(PKG_INSTALL_DIR)/usr/lib/* $(1)/usr/lib/
  41. $(SED) 's,/usr,$(STAGING_DIR)/usr,g' $(1)/usr/lib/pkgconfig/oniguruma.pc
  42. endef
  43. $(eval $(call BuildPackage,oniguruma))