pkgsrc-Changes archive

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

CVS commit: pkgsrc/devel/tinycthread



Module Name:    pkgsrc
Committed By:   kamil
Date:           Sun Sep 18 14:10:50 UTC 2016

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

Log Message:
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.


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 pkgsrc/devel/tinycthread/DESCR \
    pkgsrc/devel/tinycthread/Makefile pkgsrc/devel/tinycthread/PLIST \
    pkgsrc/devel/tinycthread/distinfo

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

Added files:

Index: pkgsrc/devel/tinycthread/DESCR
diff -u /dev/null pkgsrc/devel/tinycthread/DESCR:1.1
--- /dev/null   Sun Sep 18 14:10:50 2016
+++ pkgsrc/devel/tinycthread/DESCR      Sun Sep 18 14:10:50 2016
@@ -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.
Index: pkgsrc/devel/tinycthread/Makefile
diff -u /dev/null pkgsrc/devel/tinycthread/Makefile:1.1
--- /dev/null   Sun Sep 18 14:10:50 2016
+++ pkgsrc/devel/tinycthread/Makefile   Sun Sep 18 14:10:50 2016
@@ -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"
Index: pkgsrc/devel/tinycthread/PLIST
diff -u /dev/null pkgsrc/devel/tinycthread/PLIST:1.1
--- /dev/null   Sun Sep 18 14:10:50 2016
+++ pkgsrc/devel/tinycthread/PLIST      Sun Sep 18 14:10:50 2016
@@ -0,0 +1,3 @@
+@comment $NetBSD: PLIST,v 1.1 2016/09/18 14:10:50 kamil Exp $
+include/tinycthread.h
+lib/libtinycthread.la
Index: pkgsrc/devel/tinycthread/distinfo
diff -u /dev/null pkgsrc/devel/tinycthread/distinfo:1.1
--- /dev/null   Sun Sep 18 14:10:50 2016
+++ pkgsrc/devel/tinycthread/distinfo   Sun Sep 18 14:10:50 2016
@@ -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