add library 'libbsd'
[openwrt/staging/florian.git] / package / libbsd / Makefile
1 include $(TOPDIR)/rules.mk
2
3 PKG_NAME:=libbsd
4 PKG_VERSION:=0.3.0
5 PKG_RELEASE:=1
6
7 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
8 PKG_SOURCE_URL:=http://libbsd.freedesktop.org/releases
9 #PKG_MD5SUM:=d0870f2de55d59c1c8419f36e8fac150
10
11 include $(INCLUDE_DIR)/package.mk
12
13 PKG_INSTALL:=1
14
15 define Package/libbsd
16 SECTION:=libs
17 CATEGORY:=Libraries
18 TITLE:=common BSD library
19 endef
20
21 define 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.
23 endef
24
25 define 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 )
39 endef
40
41 define 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 )
50 endef
51
52 $(eval $(call BuildPackage,libbsd))
53