Root/package/libs/libbsd/Makefile

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  DEPENDS:=@!USE_UCLIBC
19  TITLE:=common BSD library
20endef
21
22define Package/libbsd/description
23 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.
24endef
25
26define Build/InstallDev
27    $(INSTALL_DIR) \
28        $(1)/lib \
29        $(1)/usr/include
30
31    $(CP) \
32        $(PKG_INSTALL_DIR)/lib/libbsd.so* \
33        $(1)/lib/
34
35    $(CP) \
36        $(PKG_INSTALL_DIR)/usr/include/* \
37        $(1)/usr/include/
38
39    ( cd $(1)/lib ; ln -s libbsd.so.$(PKG_VERSION) libbsd.so )
40endef
41
42define Package/libbsd/install
43    $(INSTALL_DIR) \
44        $(1)/lib
45
46    $(CP) \
47        $(PKG_INSTALL_DIR)/lib/libbsd.so* \
48        $(1)/lib/
49
50    ( cd $(1)/lib ; ln -s libbsd.so.$(PKG_VERSION) libbsd.so )
51endef
52
53$(eval $(call BuildPackage,libbsd))
54
55

Archive Download this file



interactive