[package] ahcpd: Fix reload rule in init script
[openwrt/svn-archive/archive.git] / libs / pthsem / Makefile
1
2 include $(TOPDIR)/rules.mk
3
4 PKG_NAME:=pthsem
5 PKG_VERSION:=2.0.7
6 PKG_RELEASE:=2
7
8 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
9 PKG_SOURCE_URL:=http://www.auto.tuwien.ac.at/~mkoegler/pth/
10 PKG_MD5SUM:=b277716ee1224ca9925176fa29e1f0c5
11 PKG_FIXUP:=libtool
12
13 include $(INCLUDE_DIR)/package.mk
14
15 define Package/pthsem
16 SECTION:=libs
17 CATEGORY:=Libraries
18 TITLE:=GNU pth extended with semaphore support
19 URL:=http://www.auto.tuwien.ac.at/~mkoegler/index.php/pth
20 endef
21
22 define Package/pthsem/description
23 GNU pth is a user mode multi threading library.
24 pthsem is an extend version, with support for semaphores added. It can be installed parallel to a normal pth.
25 endef
26
27 MAKE_FLAGS += \
28 OPTIM="$(TARGET_CFLAGS)" \
29 CFLAGS="$(TARGET_CFLAGS)" \
30 DESTDIR="$(PKG_INSTALL_DIR)" \
31 all install
32
33 define Build/InstallDev
34 $(INSTALL_DIR) $(2)/bin
35 $(INSTALL_BIN) \
36 $(PKG_INSTALL_DIR)/usr/bin/pthsem-config \
37 $(2)/bin/
38 $(SED) \
39 's,^\(prefix\|exec_prefix\)=.*,\1=$(STAGING_DIR)/usr,g' \
40 $(2)/bin/pthsem-config
41
42 $(INSTALL_DIR) $(1)/usr/include
43 $(CP) $(PKG_INSTALL_DIR)/usr/include/*.h \
44 $(1)/usr/include/
45 $(INSTALL_DIR) $(1)/usr/lib
46 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libpthsem.{a,la,so*} \
47 $(1)/usr/lib/
48 endef
49
50 define Package/pthsem/install
51 $(INSTALL_DIR) $(1)/usr/lib
52 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libpthsem.so.* $(1)/usr/lib/
53 endef
54
55 $(eval $(call BuildPackage,pthsem))