[csw-devel] SF.net SVN: gar:[2303] csw/trunk/lib
wbonnet at users.sourceforge.net
wbonnet at users.sourceforge.net
Mon Nov 17 23:31:08 CET 2008
Revision: 2303
http://gar.svn.sourceforge.net/gar/?rev=2303&view=rev
Author: wbonnet
Date: 2008-11-17 22:31:08 +0000 (Mon, 17 Nov 2008)
Log Message:
-----------
Add libpthreads-stubs
Added Paths:
-----------
csw/trunk/lib/libpthread-stubs/
csw/trunk/lib/libpthread-stubs/Makefile
csw/trunk/lib/libpthread-stubs/checksums
csw/trunk/lib/libpthread-stubs/files/
csw/trunk/lib/libpthread-stubs/files/CSWlibpthreadstubs.depend
csw/trunk/lib/libpthread-stubs/files/CSWlibpthreadstubs.gspec
csw/trunk/lib/libpthread-stubs/files/CSWlibpthreadstubs.prototype
Added: csw/trunk/lib/libpthread-stubs/Makefile
===================================================================
--- csw/trunk/lib/libpthread-stubs/Makefile (rev 0)
+++ csw/trunk/lib/libpthread-stubs/Makefile 2008-11-17 22:31:08 UTC (rev 2303)
@@ -0,0 +1,36 @@
+GARNAME = libpthread-stubs
+GARVERSION = 0.1
+CATEGORIES = lib
+
+DESCRIPTION = pthread stubs not provided by native libc
+define BLURB
+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 has no content.
+endef
+
+MASTER_SITES =http://xcb.freedesktop.org/dist/
+DISTFILES = $(GARNAME)-$(GARVERSION).tar.gz
+PKGDIST = $(GARNAME)-$(GARVERSION).tar.gz
+
+# DISTFILES += CSWlibpthreadstubs.gspec CSWlibpthreadstubs.prototype CSWlibpthreadstubs.depend
+# DISTFILES += CSWlibpthreadstubsdev.gspec CSWlibpthreadstubsdev.prototype CSWlibpthreadstubsdev.depend
+DISTFILES += $(call admfiles,CSWlibpthreadstubs, depend)
+
+CFLAGS += -xlibmil -errtags=yes -erroff=E_EMPTY_DECLARATION
+CXXFLAGS += -xlibmil -xlibmopt -features=tmplife -norunpath
+LDFLAGS += -L/opt/csw/lib -R/opt/csw/lib
+
+export CFLAGS CXXFLAGS LDFLAGS
+
+TEST_SCRIPTS = none
+
+GREP = ggrep
+
+include ../category.mk
+
+CONFIGURE_ARGS = --prefix=/opt/csw --mandir=/opt/csw/share/man
+
+test-none:
+ @$(MAKECOOKIE)
+
+post-install:
+ ( gfind $(DESTDIR)/opt/csw -exec bash -c "file {} | ggrep ELF | ggrep -e 'executable' -e 'dynamic lib' | ggrep 'not stripped' && strip {}" \; )
Added: csw/trunk/lib/libpthread-stubs/checksums
===================================================================
--- csw/trunk/lib/libpthread-stubs/checksums (rev 0)
+++ csw/trunk/lib/libpthread-stubs/checksums 2008-11-17 22:31:08 UTC (rev 2303)
@@ -0,0 +1,3 @@
+5e3e75160ab6a8c212d0ecd82aa04651 download/libpthread-stubs-0.1.tar.gz
+9ea5b260e4d45c5f92bb54601b77fa32 download/CSWlibpthreadstubs.gspec
+d41d8cd98f00b204e9800998ecf8427e download/CSWlibpthreadstubs.depend
Added: csw/trunk/lib/libpthread-stubs/files/CSWlibpthreadstubs.gspec
===================================================================
--- csw/trunk/lib/libpthread-stubs/files/CSWlibpthreadstubs.gspec (rev 0)
+++ csw/trunk/lib/libpthread-stubs/files/CSWlibpthreadstubs.gspec 2008-11-17 22:31:08 UTC (rev 2303)
@@ -0,0 +1,4 @@
+%var bitname libpthreadstubs
+%var pkgname CSWlibpthreadstubs
+%include url file://%{PKGLIB}/csw_dyndepend.gspec
+%copyright url file://%{WORKSRC}/COPYING
Added: csw/trunk/lib/libpthread-stubs/files/CSWlibpthreadstubs.prototype
===================================================================
--- csw/trunk/lib/libpthread-stubs/files/CSWlibpthreadstubs.prototype (rev 0)
+++ csw/trunk/lib/libpthread-stubs/files/CSWlibpthreadstubs.prototype 2008-11-17 22:31:08 UTC (rev 2303)
@@ -0,0 +1,5 @@
+d none /opt/csw/lib/pkgconfig 0755 root bin
+f none /opt/csw/lib/pkgconfig/pthread-stubs.pc 0644 root bin
+i copyright=CSWlibpthreadstubs.copyright
+i depend=CSWlibpthreadstubs.depend
+i pkginfo=CSWlibpthreadstubs.pkginfo
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the devel
mailing list