pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/tinycthread Import tinycthread-1.1 as devel/tiny...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/59f41be51830
branches:  trunk
changeset: 352701:59f41be51830
user:      kamil <kamil%pkgsrc.org@localhost>
date:      Sun Sep 18 14:10:50 2016 +0000

description:
Import tinycthread-1.1 as devel/tinycthread

TinyCThread is a minimalist, portable, threading library for C, intended to
make it easy to create multi threaded C applications.

The library is closesly modeled after the C11 standard, but only a subset is
implemented at the moment.

diffstat:

 devel/tinycthread/DESCR    |   5 +++++
 devel/tinycthread/Makefile |  40 ++++++++++++++++++++++++++++++++++++++++
 devel/tinycthread/PLIST    |   3 +++
 devel/tinycthread/distinfo |   6 ++++++
 4 files changed, 54 insertions(+), 0 deletions(-)

diffs (70 lines):

diff -r 848cc566ae8c -r 59f41be51830 devel/tinycthread/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/tinycthread/DESCR   Sun Sep 18 14:10:50 2016 +0000
@@ -0,0 +1,5 @@
+TinyCThread is a minimalist, portable, threading library for C, intended to
+make it easy to create multi threaded C applications.
+
+The library is closesly modeled after the C11 standard, but only a subset is
+implemented at the moment.
diff -r 848cc566ae8c -r 59f41be51830 devel/tinycthread/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/tinycthread/Makefile        Sun Sep 18 14:10:50 2016 +0000
@@ -0,0 +1,40 @@
+# $NetBSD: Makefile,v 1.1 2016/09/18 14:10:50 kamil Exp $
+
+DISTNAME=      tinycthread-1.1
+CATEGORIES=    devel
+MASTER_SITES=  ${MASTER_SITE_GITHUB:=tinycthread/}
+GITHUB_TAG=    v${PKGVERSION_NOREV}
+
+MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=      https://tinycthread.github.io/
+COMMENT=       Small, portable implementation of the C11 threads API
+LICENSE=       zlib
+
+USE_LIBTOOL=   yes
+
+INSTALLATION_DIRS=     include lib
+PTHREAD_AUTO_VARS=     yes
+
+do-build:
+       ${RUN} cd ${WRKSRC}/source && \
+               ${LIBTOOL} --mode=compile --tag=CC ${CC} ${CFLAGS} \
+                       -c tinycthread.c
+       ${RUN} cd ${WRKSRC}/source && \
+               ${LIBTOOL} --mode=link --tag=CC ${CC} -avoid-version ${LDFLAGS} \
+                       -o libtinycthread.la tinycthread.lo -rpath ${PREFIX}/lib
+
+do-install:
+       ${RUN} cd ${WRKSRC}/source && \
+               ${LIBTOOL} --mode=install ${INSTALL_LIB} \
+                       -c libtinycthread.la ${DESTDIR}${PREFIX}/lib/libtinycthread.la
+       ${INSTALL_DATA} ${WRKSRC}/source/tinycthread.h ${DESTDIR}${PREFIX}/include
+
+do-test:
+.for f in test hello
+       ${RUN} cd ${WRKSRC}/test && \
+               ${CC} -ltinycthread -L../source/.libs/ -I../source ${f}.c -o ${f} && \
+               LD_LIBRARY_PATH=${WRKSRC}/source/.libs/ ./${f}
+.endfor
+
+.include "../../mk/pthread.buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r 848cc566ae8c -r 59f41be51830 devel/tinycthread/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/tinycthread/PLIST   Sun Sep 18 14:10:50 2016 +0000
@@ -0,0 +1,3 @@
+@comment $NetBSD: PLIST,v 1.1 2016/09/18 14:10:50 kamil Exp $
+include/tinycthread.h
+lib/libtinycthread.la
diff -r 848cc566ae8c -r 59f41be51830 devel/tinycthread/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/tinycthread/distinfo        Sun Sep 18 14:10:50 2016 +0000
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2016/09/18 14:10:50 kamil Exp $
+
+SHA1 (tinycthread-1.1.tar.gz) = 36ac0bd0e70edf3bd101996bec3f97e3317a3291
+RMD160 (tinycthread-1.1.tar.gz) = f9e16333975d2492df09a207f238bbe4fa202232
+SHA512 (tinycthread-1.1.tar.gz) = 0cb29c66484acd8a38ce766c89411a79ec67cfc1c48384570ac29fb735aef82fa0c63aa219cc82e129200d36a3cd6955e5b6f7b2c4dad6493c1a3e14abf418ee
+Size (tinycthread-1.1.tar.gz) = 29380 bytes



Home | Main Index | Thread Index | Old Index