source: trunk/package/libbsd/Makefile @ 27169

Last change on this file since 27169 was 27169, checked in by mirko, 5 years ago

[package] add library 'libbsd'

This library contains core functionality usually (but obviously not always)
provided by libc implementations which isneeded by OpenWrt core packages.
For instance the functions 'strlcat', 'strlcpy' are not implemented in
eglibc but needed by hotplug2 (udevtrigger)

File size: 1.1 KB
Line 
1include $(TOPDIR)/rules.mk
2
3PKG_NAME:=libbsd
4PKG_VERSION:=0.3.0
5PKG_RELEASE:=1
6
7PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
8PKG_SOURCE_URL:=http://libbsd.freedesktop.org/releases
9#PKG_MD5SUM:=d0870f2de55d59c1c8419f36e8fac150
10
11include $(INCLUDE_DIR)/package.mk
12
13PKG_INSTALL:=1
14
15define Package/libbsd
16  SECTION:=libs
17  CATEGORY:=Libraries
18  TITLE:=common BSD library
19endef
20
21define Package/libbsd/description
22 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.
23endef
24
25define Build/InstallDev
26        $(INSTALL_DIR) \
27                $(1)/lib \
28                $(1)/usr/include
29
30        $(CP) \
31                $(PKG_INSTALL_DIR)/lib/libbsd.so* \
32                $(1)/lib/
33
34        $(CP) \
35                $(PKG_INSTALL_DIR)/usr/include/* \
36                $(1)/usr/include/
37
38        ( cd $(1)/lib ; ln -s libbsd.so.$(PKG_VERSION) libbsd.so )
39endef
40
41define Package/libbsd/install
42        $(INSTALL_DIR) \
43                $(1)/lib
44
45        $(CP) \
46                $(PKG_INSTALL_DIR)/lib/libbsd.so* \
47                $(1)/lib/
48
49        ( cd $(1)/lib ; ln -s libbsd.so.$(PKG_VERSION) libbsd.so )
50endef
51
52$(eval $(call BuildPackage,libbsd))
53
Note: See TracBrowser for help on using the repository browser.