2 # Copyright (C) 2008-2014 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
14 PKG_MAINTAINER
:=Othmar Truniger
<github@truniger.ch
>
15 PKG_LICENSE
:=LGPL-2.1
+
16 PKG_LICENSE_FILES
:=COPYING
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
26 include $(INCLUDE_DIR
)/package.mk
31 TITLE
:=GNU pth extended with semaphore support
32 URL
:=http
://www.auto.tuwien.ac.at
/~mkoegler
/index.php
/pth
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.
41 OPTIM
="$(TARGET_CFLAGS)" \
42 CFLAGS
="$(TARGET_CFLAGS)" \
43 DESTDIR
="$(PKG_INSTALL_DIR)"
45 define Build
/InstallDev
46 $(INSTALL_DIR
) $(2)/bin
48 $(PKG_INSTALL_DIR
)/usr
/bin
/pthsem-config \
51 's,^\(prefix\|exec_prefix\)=.*,\1=$(STAGING_DIR)/usr,g' \
52 $(2)/bin
/pthsem-config
54 $(INSTALL_DIR
) $(1)/usr
/include
55 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/*.h \
57 $(INSTALL_DIR
) $(1)/usr
/lib
58 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libpthsem.
{a
,la
,so
*} \
62 define Package
/pthsem
/install
63 $(INSTALL_DIR
) $(1)/usr
/lib
64 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libpthsem.so.
* $(1)/usr
/lib
/
67 $(eval
$(call BuildPackage
,pthsem
))