72341cd3796386e3f74ec556d07cb41d0e575b10
[openwrt/openwrt.git] / package / libs / musl-fts / Makefile
1 #
2 # Copyright (C) 2017 Lucian Cristian <lucian.cristian@gmail.com>
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 # updated to work with latest source from abrasive
7 #
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=musl-fts
12 PKG_VERSION:=1.2.7
13 PKG_RELEASE:=1
14
15 PKG_SOURCE_PROTO:=git
16 PKG_SOURCE_URL:=https://github.com/pullmoll/musl-fts.git
17 PKG_SOURCE_VERSION:=0bde52df588e8969879a2cae51c3a4774ec62472
18 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
19 PKG_MIRROR_HASH:=29c62a600128e9189b1b2e1aea568546178eedf739527f657873b3b773072ecb
20
21 PKG_MAINTAINER:=Lucian Cristian <lucian.cristian@gmail.com>
22
23 PKG_LICENSE:=LGPL-2.1
24 PKG_LICENSE_FILES:=COPYING AUTHORS
25
26 PKG_FIXUP:=autoreconf
27 PKG_REMOVE_FILES:=autogen.sh
28
29 PKG_BUILD_PARALLEL:=1
30 PKG_INSTALL:=1
31
32 include $(INCLUDE_DIR)/package.mk
33 include $(INCLUDE_DIR)/host-build.mk
34
35 define Package/musl-fts
36 SECTION:=libs
37 CATEGORY:=Libraries
38 TITLE:=fts implementation for musl libc
39 URL:=https://github.com/pullmoll/musl-fts
40 DEPENDS:= +libpthread
41 endef
42
43 define Package/musl-fts/description
44 The musl-fts package implements the fts(3) functions fts_open, fts_read, fts_children, fts_set and fts_close, which are missing in musl libc.
45 endef
46
47 HOST_CONFIGURE_ARGS += --disable-shared --with-pic
48
49 define Build/InstallDev
50 $(INSTALL_DIR) $(1)/usr/include
51 $(CP) $(PKG_INSTALL_DIR)/usr/include/fts.h $(1)/usr/include/
52 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
53 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libfts.so* $(1)/usr/lib/
54 $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/musl-fts.pc $(1)/usr/lib/pkgconfig/
55 endef
56
57 define Package/musl-fts/install
58 $(INSTALL_DIR) $(1)/usr/lib
59 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libfts.so* $(1)/usr/lib/
60 endef
61
62 $(eval $(call BuildPackage,musl-fts))
63 $(eval $(call HostBuild))