pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/devel/librfuncs Provides missing POSIX *_r functions: ...
details: https://anonhg.NetBSD.org/pkgsrc/rev/d8111a7dc981
branches: trunk
changeset: 482258:d8111a7dc981
user: shannonjr <shannonjr%pkgsrc.org@localhost>
date: Sat Oct 23 12:17:04 2004 +0000
description:
Provides missing POSIX *_r functions: ttyname_r(), getenv_r() and
strerror_r(). These are thread safe versions of the corresponding functions
without the "_r". The package is implemented so that it may be used simply
by including it's buildlink3.mk file.
diffstat:
devel/librfuncs/DESCR | 6 ++++++
devel/librfuncs/Makefile | 29 +++++++++++++++++++++++++++++
devel/librfuncs/PLIST | 3 +++
devel/librfuncs/buildlink3.mk | 25 +++++++++++++++++++++++++
devel/librfuncs/distinfo | 4 ++++
5 files changed, 67 insertions(+), 0 deletions(-)
diffs (87 lines):
diff -r d3712af0acf7 -r d8111a7dc981 devel/librfuncs/DESCR
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/librfuncs/DESCR Sat Oct 23 12:17:04 2004 +0000
@@ -0,0 +1,6 @@
+Provides missing POSIX *_r functions: ttyname_r(),
+getenv_r() and strerror_r(). These are thread safe
+versions of the corresponding functions without
+the "_r". The package is implemented so that it
+may be used simply by including it's buildlink3.mk
+file.
diff -r d3712af0acf7 -r d8111a7dc981 devel/librfuncs/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/librfuncs/Makefile Sat Oct 23 12:17:04 2004 +0000
@@ -0,0 +1,29 @@
+# $NetBSD: Makefile,v 1.1 2004/10/23 12:17:04 shannonjr Exp $
+#
+
+DISTNAME= librfuncs-1.0
+CATEGORIES= devel
+MASTER_SITES= http://www.johnrshannon.com/NetBSD/
+EXTRACT_SUFX= .tar.bz2
+
+MAINTAINER= shannonjr%NetBSD.org@localhost
+HOMEPAGE= http://www.johnrshannon.com/NetBSD/
+COMMENT= Provides missing POSIX *_r functions
+
+USE_BUILDLINK3= yes
+USE_PKGLOCALEDIR= yes
+GNU_CONFIGURE= yes
+USE_LIBTOOL= yes
+
+TEST_TARGET= check
+
+.include "../../mk/pthread.buildlink3.mk"
+.if defined(PTHREAD_TYPE) && ${PTHREAD_TYPE} == "none"
+CONFIGURE_ARGS+= --disable-threads
+.else
+CONFIGURE_ARGS+= --enable-threads
+CFLAGS+= ${PTHREAD_CFLAGS}
+LDFLAGS+= ${PTHREAD_LDFLAGS}
+.endif
+
+.include "../../mk/bsd.pkg.mk"
diff -r d3712af0acf7 -r d8111a7dc981 devel/librfuncs/PLIST
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/librfuncs/PLIST Sat Oct 23 12:17:04 2004 +0000
@@ -0,0 +1,3 @@
+@comment $NetBSD: PLIST,v 1.1 2004/10/23 12:17:04 shannonjr Exp $
+include/rfuncs.h
+lib/librfuncs.la
diff -r d3712af0acf7 -r d8111a7dc981 devel/librfuncs/buildlink3.mk
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/librfuncs/buildlink3.mk Sat Oct 23 12:17:04 2004 +0000
@@ -0,0 +1,25 @@
+# $NetBSD: buildlink3.mk,v 1.1 2004/10/23 12:17:04 shannonjr Exp $
+
+BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+
+LIBRFUNCS_BUILDLINK3_MK:= ${LIBRFUNCS_BUILDLINK3_MK}+
+
+.if !empty(BUILDLINK_DEPTH:M+)
+BUILDLINK_DEPENDS+= librfuncs
+.endif
+
+BUILDLINK_PACKAGES:= ${BUILDLINK_PACKAGES:Nlibrfuncs}
+BUILDLINK_PACKAGES+= librfuncs
+
+.if !empty(LIBRFUNCS_BUILDLINK3_MK:M+)
+BUILDLINK_DEPENDS.librfuncs+= librfuncs>=1.0
+BUILDLINK_PKGSRCDIR.librfuncs?= ../../devel/librfuncs
+.endif # LIBRFUNCS_BUILDLINK3_MK
+
+.include "../../mk/pthread.buildlink3.mk"
+LIBS+= ${BUILDLINK_LDADD.pthread}
+BUILDLINK_LDFLAGS.librfuncs+= -lrfuncs
+BUILDLINK_LDFLAGS.librfuncs+= ${PTHREAD_LDFLAGS}
+BUILDLINK_CPPFLAGS.librfuncs+= -include rfuncs.h
+BUILDLINK_CPPFLAGS.librfuncs+= ${PTHREAD_CFLAGS}
+
+BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:S/+$//}
diff -r d3712af0acf7 -r d8111a7dc981 devel/librfuncs/distinfo
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/librfuncs/distinfo Sat Oct 23 12:17:04 2004 +0000
@@ -0,0 +1,4 @@
+$NetBSD: distinfo,v 1.1 2004/10/23 12:17:04 shannonjr Exp $
+
+SHA1 (librfuncs-1.0.tar.bz2) = 488347dd8105d07aea5a141cbf3d8a391a73e28a
+Size (librfuncs-1.0.tar.bz2) = 475158 bytes
Home |
Main Index |
Thread Index |
Old Index