980a6458838277f9d8757cf2bf338721333312fb
[openwrt/svn-archive/archive.git] / libs / libpthread-stubs / Makefile
1 #
2 # Copyright (C) 2008 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=libpthread-stubs
12 PKG_VERSION:=0.1
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
16 PKG_SOURCE_URL:=http://xcb.freedesktop.org/dist/
17 PKG_MD5SUM:=774eabaf33440d534efe108ef9130a7d
18 PKG_INSTALL:=1
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/libpthread-stubs
23 SECTION:=libs
24 CATEGORY:=Libraries
25 TITLE:=libpthread-stubs
26 URL:=http://xcb.freedesktop.org/
27 endef
28
29 define Package/libpthread-stubs/description
30 This library provides weak aliases for pthread functions not provided in libc
31 or otherwise available by default. Libraries like libxcb rely on pthread
32 stubs to use pthreads optionally, becoming thread-safe when linked to
33 libpthread, while avoiding any performance hit when running single-threaded.
34 libpthread-stubs supports this behavior even on platforms which do not supply
35 all the necessary pthread stubs. On platforms which already supply all the
36 necessary pthread stubs, this package ships only the pkg-config file
37 pthread-stubs.pc, to allow libraries to unconditionally express a dependency
38 on pthread-stubs and still obtain correct behavior.
39 endef
40
41 define Build/InstallDev
42 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
43 $(INSTALL_DATA) \
44 $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* \
45 $(1)/usr/lib/pkgconfig/
46 endef
47
48 define Package/libpthread-stubs/install
49 true
50 endef
51
52 $(eval $(call BuildPackage,libpthread-stubs))