noddos: Noddos v0.5.0 with mDNS / DNS-SD support
[feed/packages.git] / 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
20 PKG_MAINTAINER:=Lucian Cristian <lucian.cristian@gmail.com>
21
22 PKG_LICENSE:=LGPL-2.1
23 PKG_LICENSE_FILES:=COPYING AUTHORS
24
25 PKG_FIXUP:=autoreconf
26 PKG_REMOVE_FILES:=autogen.sh
27
28 PKG_BUILD_PARALLEL:=1
29 PKG_INSTALL:=1
30
31 include $(INCLUDE_DIR)/package.mk
32
33 define Package/musl-fts
34 SECTION:=libs
35 CATEGORY:=Libraries
36 TITLE:=fts implementation for musl libc
37 URL:=https://github.com/pullmoll/musl-fts
38 DEPENDS:= +libpthread
39 endef
40
41 define Package/musl-fts/description
42 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.
43 endef
44
45
46 define Build/InstallDev
47 $(INSTALL_DIR) $(1)/usr/include
48 $(CP) $(PKG_INSTALL_DIR)/usr/include/fts.h $(1)/usr/include/
49 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
50 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libfts.so* $(1)/usr/lib/
51 $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/musl-fts.pc $(1)/usr/lib/pkgconfig/
52 endef
53
54 define Package/musl-fts/install
55 $(INSTALL_DIR) $(1)/usr/lib
56 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libfts.so* $(1)/usr/lib/
57 endef
58
59 $(eval $(call BuildPackage,musl-fts))