Import of pkgsrc-2013Q2

This commit is contained in:
2013-09-26 17:14:40 +02:00
commit 785076ae39
74991 changed files with 4380255 additions and 0 deletions

View File

@@ -0,0 +1,3 @@
Provide dummy implementations of pthread functions like mutex operations
to enable libraries to be used in both thread-aware and non-threaded programs.
This is for NetBSD<=2; newer operating systems don't need it.

View File

@@ -0,0 +1,20 @@
# $NetBSD: Makefile,v 1.4 2012/10/31 11:19:27 asau Exp $
DISTNAME= pthread-stublib-1.0
CATEGORIES= devel
DISTFILES= # empty
MAINTAINER= drochner@NetBSD.org
COMMENT= Library providing noop-stubs for pthread functions
WRKSRC= ${WRKDIR}
USE_LIBTOOL= yes
ONLY_FOR_PLATFORM= NetBSD-[12].*-*
INSTALLATION_DIRS= lib
do-extract:
${CP} ${FILESDIR}/pthread-stubs.c ${FILESDIR}/Makefile ${WRKSRC}
.include "../../mk/bsd.pkg.mk"

View File

@@ -0,0 +1,2 @@
@comment $NetBSD: PLIST,v 1.1.1.1 2006/03/21 19:23:08 drochner Exp $
lib/libpthstub.la

View File

@@ -0,0 +1,24 @@
# $NetBSD: buildlink3.mk,v 1.6 2009/03/20 19:24:27 joerg Exp $
# XXX
# XXX This file was created automatically using createbuildlink-3.10.
# XXX After this file has been verified as correct, the comment lines
# XXX beginning with "XXX" should be removed. Please do not commit
# XXX unverified buildlink3.mk files.
# XXX
# XXX Packages that only install static libraries or headers should
# XXX include the following line:
# XXX
# XXX BUILDLINK_DEPMETHOD.pthread-stublib?= build
BUILDLINK_TREE+= pthread-stublib
.if !defined(PTHREAD_STUBLIB_BUILDLINK3_MK)
PTHREAD_STUBLIB_BUILDLINK3_MK:=
BUILDLINK_API_DEPENDS.pthread-stublib+= pthread-stublib>=1.0
BUILDLINK_PKGSRCDIR.pthread-stublib?= ../../devel/pthread-stublib
IS_BUILTIN.pthread-stublib=no
.endif # PTHREAD_STUBLIB_BUILDLINK3_MK
BUILDLINK_TREE+= -pthread-stublib

View File

@@ -0,0 +1,13 @@
# $NetBSD: Makefile,v 1.2 2008/01/12 12:35:39 joerg Exp $
all: libpthstub.la
libpthstub.la: pthread-stubs.lo
${LIBTOOL} --mode=link ${CC} -o $@ $? -rpath ${PREFIX}/lib
pthread-stubs.lo: pthread-stubs.c
${LIBTOOL} --mode=compile ${CC} -c -o $@ $?
install:
${LIBTOOL} --mode=install ${BSD_INSTALL_LIB} libpthstub.la \
${DESTDIR}${PREFIX}/lib

View File

@@ -0,0 +1,53 @@
/* $NetBSD: pthread-stubs.c,v 1.1.1.1 2006/03/21 19:23:08 drochner Exp $ */
#include <sys/cdefs.h>
int __pthstub_mutex_noop(void);
__weak_alias(pthread_mutex_init,__pthstub_noop)
__weak_alias(pthread_mutex_lock,__pthstub_noop)
__weak_alias(pthread_mutex_trylock,__pthstub_noop)
__weak_alias(pthread_mutex_unlock,__pthstub_noop)
__weak_alias(pthread_mutex_destroy,__pthstub_noop)
__weak_alias(pthread_key_create,__pthstub_noop)
__weak_alias(pthread_self,__pthstub_noop)
int
__pthstub_noop()
{
return (0);
}
__weak_alias(pthread_setspecific,__pthstub_setspecific)
__weak_alias(pthread_getspecific,__pthstub_getspecific)
static void *__pthstub_localdata;
int
__pthstub_setspecific(int k, void *v)
{
__pthstub_localdata = v;
return (0);
}
void *
__pthstub_getspecific()
{
return (__pthstub_localdata);
}
__weak_alias(pthread_once,__pthstub_once)
static int __once_done;
int
__pthstub_once(void *oc, void (*f)(void))
{
if (!__once_done) {
(*f)();
__once_done = 1;
}
return (0);
}