diff options
author | rh <rh> | 2004-01-20 21:29:10 +0000 |
---|---|---|
committer | rh <rh> | 2004-01-20 21:29:10 +0000 |
commit | b6615479b01f6050135dacf9c1646fef206d68bd (patch) | |
tree | a4f6c7dc629d320b2bb41dee9c6559e9b0205ecc /devel | |
parent | 2bd29fa0e2fd7526f6c03a3edf17f35aab1f49cd (diff) | |
download | pkgsrc-b6615479b01f6050135dacf9c1646fef206d68bd.tar.gz |
Initial import of pthread-sem-1.0, a Semaphore implementation for (PTH)
pthreads
Diffstat (limited to 'devel')
-rw-r--r-- | devel/pthread-sem/DESCR | 5 | ||||
-rw-r--r-- | devel/pthread-sem/Makefile | 27 | ||||
-rw-r--r-- | devel/pthread-sem/PLIST | 13 | ||||
-rw-r--r-- | devel/pthread-sem/buildlink2.mk | 23 | ||||
-rw-r--r-- | devel/pthread-sem/buildlink3.mk | 20 | ||||
-rw-r--r-- | devel/pthread-sem/distinfo | 4 |
6 files changed, 92 insertions, 0 deletions
diff --git a/devel/pthread-sem/DESCR b/devel/pthread-sem/DESCR new file mode 100644 index 00000000000..056297c7b1d --- /dev/null +++ b/devel/pthread-sem/DESCR @@ -0,0 +1,5 @@ + This is a simple POSIX-style semaphore implementation that can be used +with pthread libraries that don't come with POSIX semaphores. At the +moment, this is a quick hack that does not implement all functions. The +functions that are implemented are probably not 100% POSIX compliant. Use +at your own risk! diff --git a/devel/pthread-sem/Makefile b/devel/pthread-sem/Makefile new file mode 100644 index 00000000000..f7bc51ecffb --- /dev/null +++ b/devel/pthread-sem/Makefile @@ -0,0 +1,27 @@ +# $NetBSD: Makefile,v 1.1.1.1 2004/01/20 21:29:10 rh Exp $ +# + +DISTNAME= pthread-sem-1.0 +CATEGORIES= devel +MASTER_SITES= http://www.cit.gu.edu.au/teaching/2105CIT/software/ + +MAINTAINER= rh@NetBSD.org +COMMENT= Semaphore implementation for (PTH) pthreads + +USE_BUILDLINK3= yes +PTHREAD_OPTS+= require + +TEST_TARGET= test + +MAKE_ENV+= LIBDIR=${PREFIX}/lib +MAKE_ENV+= MANDIR=${PREFIX}/man +MAKE_ENV+= DESTDIR=/ # trick bsd.lib.mk into adding -R +MAKE_ENV+= NOPROFILE=1 + +MANCOMPRESSED_IF_MANZ= yes + +post-install: + ${INSTALL_DATA} ${WRKSRC}/semaphore.h ${PREFIX}/include + +.include "../../mk/pthread.buildlink3.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/devel/pthread-sem/PLIST b/devel/pthread-sem/PLIST new file mode 100644 index 00000000000..fa1c0829cd8 --- /dev/null +++ b/devel/pthread-sem/PLIST @@ -0,0 +1,13 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2004/01/20 21:29:10 rh Exp $ +include/semaphore.h +lib/libsemaphore.a +lib/libsemaphore.so +lib/libsemaphore.so.1 +lib/libsemaphore.so.${PKGVERSION} +lib/libsemaphore_pic.a +man/man3/sem_destroy.3 +man/man3/sem_getvalue.3 +man/man3/sem_init.3 +man/man3/sem_post.3 +man/man3/sem_trywait.3 +man/man3/sem_wait.3 diff --git a/devel/pthread-sem/buildlink2.mk b/devel/pthread-sem/buildlink2.mk new file mode 100644 index 00000000000..66c66b85063 --- /dev/null +++ b/devel/pthread-sem/buildlink2.mk @@ -0,0 +1,23 @@ +# $NetBSD: buildlink2.mk,v 1.1.1.1 2004/01/20 21:29:10 rh Exp $ +# +# This Makefile fragment is included by packages that use pthread-sem. +# + +.if !defined(PTHREAD_SEM_BUILDLINK2_MK) +PTHREAD_SEM_BUILDLINK2_MK= # defined + +BUILDLINK_PACKAGES+= pthread-sem +BUILDLINK_DEPENDS.pthread-sem?= pthread-sem>=1.0 +BUILDLINK_PKGSRCDIR.pthread-sem?= ../../devel/pthread-sem + +EVAL_PREFIX+= BUILDLINK_PREFIX.pthread-sem=pthread-sem +BUILDLINK_PREFIX.pthread-sem_DEFAULT= ${LOCALBASE} +BUILDLINK_FILES.pthread-sem+= include/semaphore.h +BUILDLINK_FILES.pthread-sem+= lib/libsemaphore.* +BUILDLINK_FILES.pthread-sem+= lib/libsemaphore_pic.* + +BUILDLINK_TARGETS+= pthread-sem-buildlink + +pthread-sem-buildlink: _BUILDLINK_USE + +.endif # PTHREAD_SEM_BUILDLINK2_MK diff --git a/devel/pthread-sem/buildlink3.mk b/devel/pthread-sem/buildlink3.mk new file mode 100644 index 00000000000..a4d073bb888 --- /dev/null +++ b/devel/pthread-sem/buildlink3.mk @@ -0,0 +1,20 @@ +# $NetBSD: buildlink3.mk,v 1.1.1.1 2004/01/20 21:29:10 rh Exp $ +# +# This Makefile fragment is included by packages that use pthread-sem. +# + +BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+ +PTHREAD_SEM_BUILDLINK3_MK:= ${PTHREAD_SEM_BUILDLINK3_MK}+ + +.if !empty(BUILDLINK_DEPTH:M+) +BUILDLINK_DEPENDS+= pthread-sem +.endif + +.if !empty(PTHREAD_SEM_BUILDLINK3_MK:M+) +BUILDLINK_PACKAGES+= pthread-sem +BUILDLINK_DEPENDS.pthread-sem?= pthread-sem>=1.0 +BUILDLINK_PKGSRCDIR.pthread-sem?= ../../devel/pthread-sem + +.endif # PTHREAD_SEM_BUILDLINK3_MK + +BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:S/+$//} diff --git a/devel/pthread-sem/distinfo b/devel/pthread-sem/distinfo new file mode 100644 index 00000000000..9e0cb95be69 --- /dev/null +++ b/devel/pthread-sem/distinfo @@ -0,0 +1,4 @@ +$NetBSD: distinfo,v 1.1.1.1 2004/01/20 21:29:10 rh Exp $ + +SHA1 (pthread-sem-1.0.tar.gz) = fbb9235014db3dfe5abf7fd720d2e8985454352f +Size (pthread-sem-1.0.tar.gz) = 5897 bytes |