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