pkgsrc-WIP-changes archive

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

Import tinycthread-1.1 as wip/tinycthread.



Module Name:	pkgsrc-wip
Committed By:	Kamil Rytarowski <n54%gmx.com@localhost>
Pushed By:	kamil
Date:		Sun Sep 18 15:55:41 2016 +0200
Changeset:	05981165e84761e99f1123007d85df90c55e90c5

Added Files:
	tinycthread/DESCR
	tinycthread/Makefile
	tinycthread/PLIST
	tinycthread/distinfo

Log Message:
Import tinycthread-1.1 as wip/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.

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=05981165e84761e99f1123007d85df90c55e90c5

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 tinycthread/DESCR    |  5 +++++
 tinycthread/Makefile | 40 ++++++++++++++++++++++++++++++++++++++++
 tinycthread/PLIST    |  3 +++
 tinycthread/distinfo |  6 ++++++
 4 files changed, 54 insertions(+)

diffs:
diff --git a/tinycthread/DESCR b/tinycthread/DESCR
new file mode 100644
index 0000000..9091625
--- /dev/null
+++ b/tinycthread/DESCR
@@ -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 --git a/tinycthread/Makefile b/tinycthread/Makefile
new file mode 100644
index 0000000..05546fe
--- /dev/null
+++ b/tinycthread/Makefile
@@ -0,0 +1,40 @@
+# $NetBSD$
+
+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 --git a/tinycthread/PLIST b/tinycthread/PLIST
new file mode 100644
index 0000000..d808f99
--- /dev/null
+++ b/tinycthread/PLIST
@@ -0,0 +1,3 @@
+@comment $NetBSD$
+include/tinycthread.h
+lib/libtinycthread.la
diff --git a/tinycthread/distinfo b/tinycthread/distinfo
new file mode 100644
index 0000000..0d8acb4
--- /dev/null
+++ b/tinycthread/distinfo
@@ -0,0 +1,6 @@
+$NetBSD$
+
+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