remove uneeded PKG_BUILD_DIR & PKG_CAT overrides
[feed/packages.git] / libs / pthsem / Makefile
1 #
2 # Copyright (C) 2008-2014 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=pthsem
11 PKG_VERSION:=2.0.8
12 PKG_RELEASE:=2
13
14 PKG_MAINTAINER:=Othmar Truniger <github@truniger.ch>
15 PKG_LICENSE:=LGPL-2.1+
16 PKG_LICENSE_FILES:=COPYING
17
18 PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).tar.gz
19 PKG_SOURCE_URL:=http://www.auto.tuwien.ac.at/~mkoegler/pth/
20 PKG_MD5SUM:=9144b26dcc27e67498d63dd5456f934c
21
22 PKG_FIXUP:=autoreconf
23 PKG_BUILD_PARALLEL:=1
24 PKG_INSTALL:=1
25
26 include $(INCLUDE_DIR)/package.mk
27
28 define Package/pthsem
29 SECTION:=libs
30 CATEGORY:=Libraries
31 TITLE:=GNU pth extended with semaphore support
32 URL:=http://www.auto.tuwien.ac.at/~mkoegler/index.php/pth
33 endef
34
35 define Package/pthsem/description
36 GNU pth is a user mode multi threading library.
37 pthsem is an extend version, with support for semaphores added. It can be installed parallel to a normal pth.
38 endef
39
40 MAKE_FLAGS += \
41 OPTIM="$(TARGET_CFLAGS)" \
42 CFLAGS="$(TARGET_CFLAGS)" \
43 DESTDIR="$(PKG_INSTALL_DIR)"
44
45 define Build/InstallDev
46 $(INSTALL_DIR) $(2)/bin
47 $(INSTALL_BIN) \
48 $(PKG_INSTALL_DIR)/usr/bin/pthsem-config \
49 $(2)/bin/
50 $(SED) \
51 's,^\(prefix\|exec_prefix\)=.*,\1=$(STAGING_DIR)/usr,g' \
52 $(2)/bin/pthsem-config
53
54 $(INSTALL_DIR) $(1)/usr/include
55 $(CP) $(PKG_INSTALL_DIR)/usr/include/*.h \
56 $(1)/usr/include/
57 $(INSTALL_DIR) $(1)/usr/lib
58 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libpthsem.{a,la,so*} \
59 $(1)/usr/lib/
60 endef
61
62 define Package/pthsem/install
63 $(INSTALL_DIR) $(1)/usr/lib
64 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libpthsem.so.* $(1)/usr/lib/
65 endef
66
67 $(eval $(call BuildPackage,pthsem))