oniguruma: build using autotools
[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.5_rev1
9 PKG_RELEASE:=3
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:=e0c2212102fa4146c43b6c4f2f7727a84fd055cc2109c293d64298cef0c372b5
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_INSTALL:=1
21 PKG_FIXUP:=autoreconf
22
23 include $(INCLUDE_DIR)/package.mk
24
25 CONFIGURE_ARGS += --enable-posix-api
26
27 define Package/oniguruma
28 SECTION:=libs
29 CATEGORY:=Libraries
30 TITLE:=Regular expression library for different character encodings
31 URL:=https://github.com/kkos/oniguruma
32 ABI_VERSION:=5
33 endef
34
35 define Package/oniguruma/description
36 Oniguruma is a modern and flexible regular expressions library.
37 It encompasses features from different regular expression implementations that
38 traditionally exist in different languages.
39
40 Character encoding can be specified per regular expression object.
41 endef
42
43 define Package/oniguruma/install
44 $(INSTALL_DIR) $(1)/usr/lib
45 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/libonig.so.$(ABI_VERSION) $(1)/usr/lib/
46 endef
47
48 define Build/InstallDev
49 $(INSTALL_DIR) $(1)/usr/{include,lib}
50 $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
51 $(CP) $(PKG_INSTALL_DIR)/usr/lib/* $(1)/usr/lib/
52 $(SED) 's,/usr,$(STAGING_DIR)/usr,g' $(1)/usr/lib/pkgconfig/oniguruma.pc
53 endef
54
55 $(eval $(call BuildPackage,oniguruma))