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 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
15 include $(INCLUDE_DIR
)/package.mk
20 TITLE
:=GNU pth extended with semaphore support
21 URL
:=http
://www.auto.tuwien.ac.at
/~mkoegler
/index.php
/pth
24 define Package
/pthsem
/description
25 GNU pth is a user mode multi threading library.
26 pthsem is an extend version
, with support for semaphores added. It can be installed parallel to a normal pth.
30 OPTIM
="$(TARGET_CFLAGS)" \
31 CFLAGS
="$(TARGET_CFLAGS)" \
32 DESTDIR
="$(PKG_INSTALL_DIR)" \
35 define Build
/InstallDev
36 $(INSTALL_DIR
) $(2)/bin
38 $(PKG_INSTALL_DIR
)/usr
/bin
/pthsem-config \
41 's,^\(prefix\|exec_prefix\)=.*,\1=$(STAGING_DIR)/usr,g' \
42 $(2)/bin
/pthsem-config
44 mkdir
-p
$(1)/usr
/include
45 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/*.h \
48 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libpthsem.
{a
,la
,so
*} \
52 define Package
/pthsem
/install
53 $(INSTALL_DIR
) $(1)/usr
/lib
54 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libpthsem.so.
* $(1)/usr
/lib
/
57 $(eval
$(call BuildPackage
,pthsem
))