pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel/pthread-sem Initial import of pthread-sem-1.0, a...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/db9e28a936c8
branches:  trunk
changeset: 466578:db9e28a936c8
user:      rh <rh%pkgsrc.org@localhost>
date:      Tue Jan 20 21:29:10 2004 +0000

description:
Initial import of pthread-sem-1.0, a Semaphore implementation for (PTH)
pthreads

diffstat:

 devel/pthread-sem/DESCR         |   5 +++++
 devel/pthread-sem/Makefile      |  27 +++++++++++++++++++++++++++
 devel/pthread-sem/PLIST         |  13 +++++++++++++
 devel/pthread-sem/buildlink2.mk |  23 +++++++++++++++++++++++
 devel/pthread-sem/buildlink3.mk |  20 ++++++++++++++++++++
 devel/pthread-sem/distinfo      |   4 ++++
 6 files changed, 92 insertions(+), 0 deletions(-)

diffs (116 lines):

diff -r 70565c9c4e56 -r db9e28a936c8 devel/pthread-sem/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/pthread-sem/DESCR   Tue Jan 20 21:29:10 2004 +0000
@@ -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 -r 70565c9c4e56 -r db9e28a936c8 devel/pthread-sem/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/pthread-sem/Makefile        Tue Jan 20 21:29:10 2004 +0000
@@ -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@localhost
+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 -r 70565c9c4e56 -r db9e28a936c8 devel/pthread-sem/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/pthread-sem/PLIST   Tue Jan 20 21:29:10 2004 +0000
@@ -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 -r 70565c9c4e56 -r db9e28a936c8 devel/pthread-sem/buildlink2.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/pthread-sem/buildlink2.mk   Tue Jan 20 21:29:10 2004 +0000
@@ -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 -r 70565c9c4e56 -r db9e28a936c8 devel/pthread-sem/buildlink3.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/pthread-sem/buildlink3.mk   Tue Jan 20 21:29:10 2004 +0000
@@ -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 -r 70565c9c4e56 -r db9e28a936c8 devel/pthread-sem/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/pthread-sem/distinfo        Tue Jan 20 21:29:10 2004 +0000
@@ -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



Home | Main Index | Thread Index | Old Index