dnsmasq: full: disable ipset support by default
[openwrt/staging/mkresin.git] / package / libs / libbsd / Makefile
1 include $(TOPDIR)/rules.mk
2
3 PKG_NAME:=libbsd
4 PKG_VERSION:=0.10.0
5 PKG_RELEASE:=1
6
7 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
8 PKG_SOURCE_URL:=https://libbsd.freedesktop.org/releases
9 PKG_HASH:=34b8adc726883d0e85b3118fa13605e179a62b31ba51f676136ecb2d0bc1a887
10
11 PKG_LICENSE:=BSD-4-Clause
12 PKG_LICENSE_FILES:=COPYING
13
14 PKG_INSTALL:=1
15 PKG_BUILD_PARALLEL:=1
16
17 include $(INCLUDE_DIR)/package.mk
18
19 define Package/libbsd
20 SECTION:=libs
21 CATEGORY:=Libraries
22 TITLE:=common BSD library
23 ABI_VERSION:=0
24 endef
25
26 define Package/libbsd/description
27 This library provides useful functions commonly found on BSD systems, and lacking on others like GNU systems, thus making it easier to port projects with strong BSD origins, without needing to embed the same code over and over again on each project.
28 endef
29
30 define Build/InstallDev
31 $(INSTALL_DIR) $(1)/usr/lib
32 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
33 $(INSTALL_DIR) $(1)/usr/include
34 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libbsd.{la,so*} $(1)/usr/lib/
35 $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libbsd*.pc $(1)/usr/lib/pkgconfig/
36 $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
37 endef
38
39 define Package/libbsd/install
40 $(INSTALL_DIR) $(1)/usr/lib
41 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libbsd.so.* $(1)/usr/lib/
42 endef
43
44 $(eval $(call BuildPackage,libbsd))
45