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.

53 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.3
  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:=dc6dec742941e24b761cea1b9a2f12e750879107ae69fd80ae1046459d4fb1db
  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. 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. ABI_VERSION:=5
  24. endef
  25. define Package/oniguruma/description
  26. Oniguruma is a modern and flexible regular expressions library.
  27. It encompasses features from different regular expression implementations that
  28. traditionally exist in different languages.
  29. Character encoding can be specified per regular expression object.
  30. endef
  31. define Package/oniguruma/install
  32. $(INSTALL_DIR) $(1)/usr/lib
  33. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/libonig.so.$(ABI_VERSION) $(1)/usr/lib/
  34. endef
  35. define Build/InstallDev
  36. $(INSTALL_DIR) $(1)/usr/{include,lib}
  37. $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
  38. $(CP) $(PKG_INSTALL_DIR)/usr/lib/* $(1)/usr/lib/
  39. $(SED) 's,/usr,$(STAGING_DIR)/usr,g' $(1)/usr/lib/pkgconfig/oniguruma.pc
  40. endef
  41. $(eval $(call BuildPackage,oniguruma))