Date:2013-08-01 14:17:23 (7 years 1 month ago)
Author:kyak
Commit:2d18f0806c8cd912b129edbd8e1d4c9cde2f4271
Message:tre: initial commit

Files: tre/Makefile (1 diff)

Change Details

tre/Makefile
1#
2# This is free software, licensed under the GNU General Public License v2.
3# See /LICENSE for more information.
4#
5
6include $(TOPDIR)/rules.mk
7
8PKG_NAME:=tre
9PKG_VERSION:=0.8.0
10PKG_RELEASE:=1
11
12PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
13PKG_SOURCE_URL:=http://laurikari.net/tre
14PKG_MD5SUM:=b4d3232593dadf6746f4727bdda20b41
15
16PKG_INSTALL:=1
17
18include $(INCLUDE_DIR)/package.mk
19
20define Package/tre
21  SECTION:=libs
22  CATEGORY:=Libraries
23  TITLE:=The free and portable approximate regex matching library
24  URL:=http://laurikari.net/tre/
25endef
26
27define Build/InstallDev
28    $(INSTALL_DIR) $(1)/usr/include/tre
29    $(CP) \
30        $(PKG_INSTALL_DIR)/usr/include/tre/* \
31        $(1)/usr/include/tre
32
33    $(INSTALL_DIR) $(1)/usr/lib $(1)/usr/lib/pkgconfig
34    $(CP) \
35        $(PKG_INSTALL_DIR)/usr/lib/libtre.{la,so*} \
36        $(1)/usr/lib
37    $(CP) \
38        $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/tre.pc \
39        $(1)/usr/lib/pkgconfig
40endef
41
42define Package/tre/install
43    $(INSTALL_DIR) $(1)/usr/lib $(1)/usr/bin
44    $(CP) \
45        $(PKG_INSTALL_DIR)/usr/lib/libtre.so* \
46        $(1)/usr/lib
47    $(INSTALL_BIN) \
48        $(PKG_INSTALL_DIR)/usr/bin/agrep \
49        $(1)/usr/bin
50endef
51
52$(eval $(call BuildPackage,tre))

Archive Download the corresponding diff file



interactive