2 include $(TOPDIR)/rules.mk
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
13 include $(INCLUDE_DIR)/package.mk
18 TITLE:=GNU pth extended with semaphore support
19 URL:=http://www.auto.tuwien.ac.at/~mkoegler/index.php/pth
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.
28 OPTIM="$(TARGET_CFLAGS)" \
29 CFLAGS="$(TARGET_CFLAGS)" \
30 DESTDIR="$(PKG_INSTALL_DIR)" \
33 define Build/InstallDev
34 $(INSTALL_DIR) $(2)/bin
36 $(PKG_INSTALL_DIR)/usr/bin/pthsem-config \
39 's,^\(prefix\|exec_prefix\)=.*,\1=$(STAGING_DIR)/usr,g' \
40 $(2)/bin/pthsem-config
42 $(INSTALL_DIR) $(1)/usr/include
43 $(CP) $(PKG_INSTALL_DIR)/usr/include/*.h \
45 $(INSTALL_DIR) $(1)/usr/lib
46 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libpthsem.{a,la,so*} \
50 define Package/pthsem/install
51 $(INSTALL_DIR) $(1)/usr/lib
52 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libpthsem.so.* $(1)/usr/lib/
55 $(eval $(call BuildPackage,pthsem))