### this file is sourced not run
PKGVER=2.0.7
PKGBUILD=1
PKGARCH=x86_64

# source: BLFS 7.5
TARBALL=pth-$PKGVER.tar.gz
MD5SUM=9cb4a25331a4c4db866a31cbe507c793 
SRC_URL=http://ftp.gnu.org/gnu/pth/$TARBALL
BUNDLE=

SLACKREQ=
SLACKDESC="libpth: libpth $PKGVER (GNU Portable Threads library)  
libpth:  
libpth: The Pth package contains a very portable POSIX/ANSI-C based library 
libpth: for Unix platforms which provides non-preemptive priority-based 
libpth: scheduling for multiple threads of execution (multithreading) inside 
libpth: event-driven applications. All threads run in the same address space 
libpth: of the server application, but each thread has its own individual 
libpth: program-counter, run-time stack, signal mask and errno variable.  
libpth: 
libpth: 
libpth: 
"

### default pkg_download
### default pkg_prepare
### default pkg_package
### build
pkg_build() {
	cd /tmp/pth*
	
	# LFS patch - enable parallel build
	sed -i 's#$(LOBJS): Makefile#$(LOBJS): pth_p.h Makefile#' Makefile.in &&

	CONFFLAGS="$CONFFLAGS --disable-static --mandir=/usr/share/man"
	pkg_build_autoconf && 
	install -v -m755 -d /usr/share/doc/pth-$PKGVER &&
	install -v -m644    README PORTING SUPPORT TESTS \
                    /usr/share/doc/pth-$PKGVER &&
	pkg_build_slackdesc &&
	
	# multilib
	mv -v /usr/bin/pth-config{,-64} &&
	ln -sfv multiarch_wrapper /usr/bin/pth-config	
}


