[Midnightbsd-cvs] mports: devel/libpthread-stubs: Added libpthread-stubs-0.1
ctriv at midnightbsd.org
ctriv at midnightbsd.org
Tue Oct 2 17:51:21 EDT 2007
Log Message:
-----------
Added libpthread-stubs-0.1
Added Files:
-----------
mports/devel/libpthread-stubs:
Makefile (r1.1)
distinfo (r1.1)
pkg-descr (r1.1)
pkg-plist (r1.1)
mports/devel/libpthread-stubs/files:
patch-Makefile.in (r1.1)
patch-configure-libs (r1.1)
patch-configure-objformat (r1.1)
-------------- next part --------------
--- /dev/null
+++ devel/libpthread-stubs/pkg-descr
@@ -0,0 +1,11 @@
+This library provides weak aliases for pthread functions not provided in libc
+or otherwise available by default. Libraries like libxcb rely on pthread
+stubs to use pthreads optionally, becoming thread-safe when linked to
+libpthread, while avoiding any performance hit when running single-threaded.
+libpthread-stubs supports this behavior even on platforms which do not supply
+all the necessary pthread stubs. On platforms which already supply all the
+necessary pthread stubs, this package ships only the pkg-config file
+pthread-stubs.pc, to allow libraries to unconditionally express a dependency
+on pthread-stubs and still obtain correct behavior.
+
+WWW: http://xcb.freedesktop.org/
--- /dev/null
+++ devel/libpthread-stubs/pkg-plist
@@ -0,0 +1,5 @@
+lib/libpthread-stubs.a
+lib/libpthread-stubs.la
+lib/libpthread-stubs.so
+lib/libpthread-stubs.so.0
+libdata/pkgconfig/pthread-stubs.pc
--- /dev/null
+++ devel/libpthread-stubs/Makefile
@@ -0,0 +1,26 @@
+# New ports collection makefile for: libpthread-stubs
+# Date created: 24 January 2007
+# Whom: wahjava
+#
+# $FreeBSD: ports/devel/libpthread-stubs/Makefile,v 1.1 2007/01/29 09:20:36 miwi Exp $
+# $MidnightBSD: mports/devel/libpthread-stubs/Makefile,v 1.1 2007/10/02 21:51:19 ctriv Exp $
+#
+
+PORTNAME= libpthread-stubs
+PORTVERSION= 0.1
+CATEGORIES= devel
+MASTER_SITES= http://xcb.freedesktop.org/dist/
+
+MAINTAINER= ports at MidnightBSD.org
+COMMENT= This library provides weak aliases for pthread functions
+LICENSE= x11
+
+USE_GMAKE= yes
+USE_BZIP2= yes
+USE_GNOME= gnomehack pkgconfig
+USE_LDCONFIG= yes
+
+GNU_CONFIGURE= yes
+CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+
+.include <bsd.port.mk>
--- /dev/null
+++ devel/libpthread-stubs/distinfo
@@ -0,0 +1,3 @@
+MD5 (libpthread-stubs-0.1.tar.bz2) = 774eabaf33440d534efe108ef9130a7d
+SHA256 (libpthread-stubs-0.1.tar.bz2) = 004dae11e11598584939d66d26a5ab9b48d08a00ca2d00ae8d38ee3ac7a15d65
+SIZE (libpthread-stubs-0.1.tar.bz2) = 194060
--- /dev/null
+++ devel/libpthread-stubs/files/patch-configure-libs
@@ -0,0 +1,11 @@
+--- configure.orig Wed Jan 24 17:10:44 2007
++++ configure Wed Jan 24 17:11:08 2007
+@@ -20705,7 +20705,7 @@
+ _ACEOF
+
+ else
+- PKG_CONFIG_LIBS='-L${libdir} -pthread-stubs'
++ PKG_CONFIG_LIBS='-L${libdir} -lpthread-stubs'
+ fi
+ done
+
--- /dev/null
+++ devel/libpthread-stubs/files/patch-Makefile.in
@@ -0,0 +1,34 @@
+--- Makefile.in.orig Fri Feb 9 01:16:19 2007
++++ Makefile.in Fri Feb 9 01:17:05 2007
+@@ -62,9 +62,9 @@
+ LTLIBRARIES = $(lib_LTLIBRARIES)
+ libpthread_stubs_la_LIBADD =
+ am__libpthread_stubs_la_SOURCES_DIST = stubs.c
+- at BUILD_LIB_TRUE@am_libpthread_stubs_la_OBJECTS = stubs.lo
++am_libpthread_stubs_la_OBJECTS = stubs.lo
+ libpthread_stubs_la_OBJECTS = $(am_libpthread_stubs_la_OBJECTS)
+- at BUILD_LIB_TRUE@am_libpthread_stubs_la_rpath = -rpath $(libdir)
++am_libpthread_stubs_la_rpath = -rpath $(libdir)
+ DEFAULT_INCLUDES = -I. -I$(srcdir) -I.
+ depcomp = $(SHELL) $(top_srcdir)/depcomp
+ am__depfiles_maybe = depfiles
+@@ -102,8 +102,6 @@
+ AUTOHEADER = @AUTOHEADER@
+ AUTOMAKE = @AUTOMAKE@
+ AWK = @AWK@
+-BUILD_LIB_FALSE = @BUILD_LIB_FALSE@
+-BUILD_LIB_TRUE = @BUILD_LIB_TRUE@
+ CC = @CC@
+ CCDEPMODE = @CCDEPMODE@
+ CFLAGS = @CFLAGS@
+@@ -199,8 +197,8 @@
+ target_alias = @target_alias@
+ pkgconfigdir = $(libdir)/pkgconfig
+ pkgconfig_DATA = pthread-stubs.pc
+- at BUILD_LIB_TRUE@lib_LTLIBRARIES = libpthread-stubs.la
+- at BUILD_LIB_TRUE@libpthread_stubs_la_SOURCES = stubs.c
++lib_LTLIBRARIES = libpthread-stubs.la
++libpthread_stubs_la_SOURCES = stubs.c
+ all: config.h
+ $(MAKE) $(AM_MAKEFLAGS) all-am
+
--- /dev/null
+++ devel/libpthread-stubs/files/patch-configure-objformat
@@ -0,0 +1,21 @@
+--- configure.old Fri Feb 2 12:45:00 2007
++++ configure Fri Feb 2 12:45:41 2007
+@@ -9008,14 +9008,10 @@
+ freebsd* | dragonfly*)
+ # DragonFly does not have aout. When/if they implement a new
+ # versioning mechanism, adjust this.
+- if test -x /usr/bin/objformat; then
+- objformat=`/usr/bin/objformat`
+- else
+- case $host_os in
+- freebsd[123]*) objformat=aout ;;
+- *) objformat=elf ;;
+- esac
+- fi
++ case $host_os in
++ freebsd[123]*) objformat=aout ;;
++ *) objformat=elf ;;
++ esac
+ version_type=freebsd-$objformat
+ case $version_type in
+ freebsd-elf*)
More information about the Midnightbsd-cvs
mailing list