1 include $(TOPDIR
)/rules.mk
7 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.bz2
8 PKG_SOURCE_URL
:=https
://gnupg.org
/ftp
/gcrypt
/$(PKG_NAME
)
9 PKG_HASH
:=1393abd9adcf0762d34798dc34fdcf4d0d22a8410721e76f1e3afcd1daa4e2d1
11 PKG_MAINTAINER
:=Daniel Golle
<daniel@makrotopia.org
>
12 PKG_LICENSE
:=LGPL-2.1
-or-later
13 PKG_LICENSE_FILES
:=COPYING.LIB
19 include $(INCLUDE_DIR
)/package.mk
21 define Package
/libnpth
24 TITLE
:=The New GNU Portable Threads Library
25 URL
:=https
://gnupg.org
/software
/npth
/index.html
26 DEPENDS
:=+libgpg-error
29 define Package
/libnpth
/description
30 nPth is a library to provide the GNU Pth API and thus a non-preemptive threads implementation.
33 define Build
/InstallDev
34 $(INSTALL_DIR
) $(2)/bin
$(1)/usr
/bin
36 $(PKG_INSTALL_DIR
)/usr
/bin
/npth-config \
39 's,^\(prefix\|exec_prefix\)=.*,\1=$(STAGING_DIR)/usr,g' \
41 ln
-sf
$(STAGING_DIR
)/host
/bin
/npth-config
$(1)/usr
/bin
/npth-config
43 $(INSTALL_DIR
) $(1)/usr
/include
45 $(PKG_INSTALL_DIR
)/usr
/include/npth.h \
48 $(INSTALL_DIR
) $(1)/usr
/lib
50 $(PKG_INSTALL_DIR
)/usr
/lib
/libnpth.
{la
,so
*} \
53 $(INSTALL_DIR
) $(1)/usr
/share
/aclocal
55 $(PKG_INSTALL_DIR
)/usr
/share
/aclocal
/npth.m4 \
56 $(1)/usr
/share
/aclocal
/
59 define Package
/libnpth
/install
60 $(INSTALL_DIR
) $(1)/usr
/lib
62 $(PKG_INSTALL_DIR
)/usr
/lib
/libnpth.so.
* \
66 $(eval
$(call BuildPackage
,libnpth
))