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
:=9144b26dcc27e67498d63dd5456f934c
12 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
17 include $(INCLUDE_DIR
)/package.mk
22 TITLE
:=GNU pth extended with semaphore support
23 URL
:=http
://www.auto.tuwien.ac.at
/~mkoegler
/index.php
/pth
26 define Package
/pthsem
/description
27 GNU pth is a user mode multi threading library.
28 pthsem is an extend version
, with support for semaphores added. It can be installed parallel to a normal pth.
32 OPTIM
="$(TARGET_CFLAGS)" \
33 CFLAGS
="$(TARGET_CFLAGS)" \
34 DESTDIR
="$(PKG_INSTALL_DIR)"
36 define Build
/InstallDev
37 $(INSTALL_DIR
) $(2)/bin
39 $(PKG_INSTALL_DIR
)/usr
/bin
/pthsem-config \
42 's,^\(prefix\|exec_prefix\)=.*,\1=$(STAGING_DIR)/usr,g' \
43 $(2)/bin
/pthsem-config
45 $(INSTALL_DIR
) $(1)/usr
/include
46 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/*.h \
48 $(INSTALL_DIR
) $(1)/usr
/lib
49 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libpthsem.
{a
,la
,so
*} \
53 define Package
/pthsem
/install
54 $(INSTALL_DIR
) $(1)/usr
/lib
55 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libpthsem.so.
* $(1)/usr
/lib
/
58 $(eval
$(call BuildPackage
,pthsem
))