summaryrefslogtreecommitdiff
path: root/devel/librfuncs
diff options
context:
space:
mode:
authorshannonjr <shannonjr>2004-10-23 12:17:04 +0000
committershannonjr <shannonjr>2004-10-23 12:17:04 +0000
commitc959077c86d34ad16af2f069004fdc0ea44630d0 (patch)
treebcbede672c9e46667fba9d4197532eb49e69bc01 /devel/librfuncs
parent3cba884e858598c64eccdc8c492b425ce39c70ee (diff)
downloadpkgsrc-c959077c86d34ad16af2f069004fdc0ea44630d0.tar.gz
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 (limited to 'devel/librfuncs')
-rw-r--r--devel/librfuncs/DESCR6
-rw-r--r--devel/librfuncs/Makefile29
-rw-r--r--devel/librfuncs/PLIST3
-rw-r--r--devel/librfuncs/buildlink3.mk25
-rw-r--r--devel/librfuncs/distinfo4
5 files changed, 67 insertions, 0 deletions
diff --git a/devel/librfuncs/DESCR b/devel/librfuncs/DESCR
new file mode 100644
index 00000000000..368adde7801
--- /dev/null
+++ b/devel/librfuncs/DESCR
@@ -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 --git a/devel/librfuncs/Makefile b/devel/librfuncs/Makefile
new file mode 100644
index 00000000000..2bb6947f667
--- /dev/null
+++ b/devel/librfuncs/Makefile
@@ -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
+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 --git a/devel/librfuncs/PLIST b/devel/librfuncs/PLIST
new file mode 100644
index 00000000000..b111ff4a809
--- /dev/null
+++ b/devel/librfuncs/PLIST
@@ -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 --git a/devel/librfuncs/buildlink3.mk b/devel/librfuncs/buildlink3.mk
new file mode 100644
index 00000000000..0f8ba994fee
--- /dev/null
+++ b/devel/librfuncs/buildlink3.mk
@@ -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 --git a/devel/librfuncs/distinfo b/devel/librfuncs/distinfo
new file mode 100644
index 00000000000..2dc47c71574
--- /dev/null
+++ b/devel/librfuncs/distinfo
@@ -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