Import of pkgsrc-2016Q3

This commit is contained in:
2016-10-14 07:49:11 +02:00
committed by Lionel Sambuc
parent 9d819b6d54
commit 1242aa1e36
35952 changed files with 949749 additions and 377083 deletions

5
devel/tinycthread/DESCR Normal file
View File

@@ -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.

View File

@@ -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
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"

3
devel/tinycthread/PLIST Normal file
View File

@@ -0,0 +1,3 @@
@comment $NetBSD: PLIST,v 1.1 2016/09/18 14:10:50 kamil Exp $
include/tinycthread.h
lib/libtinycthread.la

View File

@@ -0,0 +1,12 @@
# $NetBSD: buildlink3.mk,v 1.1 2016/09/18 14:13:20 kamil Exp $
BUILDLINK_TREE+= tinycthread
.if !defined(TINYCTHREAD_BUILDLINK3_MK)
TINYCTHREAD_BUILDLINK3_MK:=
BUILDLINK_API_DEPENDS.tinycthread+= tinycthread>=1.1
BUILDLINK_PKGSRCDIR.tinycthread?= ../../devel/tinycthread
.endif # TINYCTHREAD_BUILDLINK3_MK
BUILDLINK_TREE+= -tinycthread

View File

@@ -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