# This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # pthread-stubs # pthread-stubs/Makefile # pthread-stubs/distinfo # pthread-stubs/pkg-descr # pthread-stubs/pkg-plist # echo c - pthread-stubs mkdir -p pthread-stubs > /dev/null 2>&1 echo x - pthread-stubs/Makefile sed 's/^X//' >pthread-stubs/Makefile << 'END-of-pthread-stubs/Makefile' X# New ports collection makefile for: pthread-stubs X# Date Created: Nov 24 2006 X# Whom: Florent Thoumie X# X# $FreeBSD$ X# X XPORTNAME= pthread-stubs XPORTVERSION= 0.1 XCATEGORIES= devel XDISTNAME= lib${PORTNAME}-${PORTVERSION} X XMAINTAINER= x11@FreeBSD.org XCOMMENT= Stubs for libpthread X XXORG_CAT= lib X X# XXX - it seems the 'l' goes away, for some unknown reason... Xpost-build: X @${REINPLACE_CMD} 's|-pthread-stubs|-lpthread-stubs|' ${WRKSRC}/pthread-stubs.pc X Xpost-install: X @${FIND} ${PREFIX}/lib/libpthread-stubs* | ${SED} 's|${PREFIX}/||' >> ${TMPPLIST} X X.include END-of-pthread-stubs/Makefile echo x - pthread-stubs/distinfo sed 's/^X//' >pthread-stubs/distinfo << 'END-of-pthread-stubs/distinfo' XMD5 (xorg/lib/libpthread-stubs-0.1.tar.bz2) = 774eabaf33440d534efe108ef9130a7d XSHA256 (xorg/lib/libpthread-stubs-0.1.tar.bz2) = 004dae11e11598584939d66d26a5ab9b48d08a00ca2d00ae8d38ee3ac7a15d65 XSIZE (xorg/lib/libpthread-stubs-0.1.tar.bz2) = 194060 END-of-pthread-stubs/distinfo echo x - pthread-stubs/pkg-descr sed 's/^X//' >pthread-stubs/pkg-descr << 'END-of-pthread-stubs/pkg-descr' XThis library provides weak aliases for pthread functions not provided in libc Xor otherwise available by default. Libraries like libxcb rely on pthread Xstubs to use pthreads optionally, becoming thread-safe when linked to Xlibpthread, while avoiding any performance hit when running single-threaded. Xlibpthread-stubs supports this behavior even on platforms which do not supply Xall the necessary pthread stubs. On platforms which already supply all the Xnecessary pthread stubs, this package ships only the pkg-config file Xpthread-stubs.pc, to allow libraries to unconditionally express a dependency Xon pthread-stubs and still obtain correct behavior. X XWWW: http://xcb.freedesktop.org/ X X- Florent Thoumie Xflz@FreeBSD.org END-of-pthread-stubs/pkg-descr echo x - pthread-stubs/pkg-plist sed 's/^X//' >pthread-stubs/pkg-plist << 'END-of-pthread-stubs/pkg-plist' Xlibdata/pkgconfig/pthread-stubs.pc END-of-pthread-stubs/pkg-plist exit