3 include $(TOPDIR
)/rules.mk
9 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
10 PKG_SOURCE_URL
:=http
://www.auto.tuwien.ac.at
/~mkoegler
/pth
/
11 PKG_MD5SUM
:=b277716ee1224ca9925176fa29e1f0c5
14 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
16 include $(INCLUDE_DIR
)/package.mk
21 TITLE
:=GNU pth extended with semaphore support
22 URL
:=http
://www.auto.tuwien.ac.at
/~mkoegler
/index.php
/pth
25 define Package
/pthsem
/description
26 GNU pth is a user mode multi threading library.
27 pthsem is an extend version
, with support for semaphores added. It can be installed parallel to a normal pth.
31 OPTIM
="$(TARGET_CFLAGS)" \
32 CFLAGS
="$(TARGET_CFLAGS)" \
33 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 mkdir
-p
$(1)/usr
/include
46 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/*.h \
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
))