brcm47xx: update bcma and ssb to master-2011-07-21
[openwrt.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 DEPENDS:=@!USE_UCLIBC
19 TITLE:=common BSD library
20 endef
21
22 define 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.
24 endef
25
26 define 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 )
40 endef
41
42 define 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 )
51 endef
52
53 $(eval $(call BuildPackage,libbsd))
54
This page took 0.044247 seconds and 5 git commands to generate.