system call's return values are postprocessed by the libc stub (eg alpha). Change pth to call libc's internal _fork(). This is only available since NetBSD-1.5, older releases are SOL -- sorry, but we need something working for 1.6.1. We should audit all the PTH_SYSCALL_HARD plugins whether they neglect libc assembler magic... bump PKGREVISION
51 lines
1.4 KiB
Makefile
51 lines
1.4 KiB
Makefile
# $NetBSD: Makefile,v 1.55 2003/02/04 17:31:16 drochner Exp $
|
|
#
|
|
|
|
DISTNAME= pth-1.4.1
|
|
PKGREVISION= 7
|
|
CATEGORIES= devel
|
|
MASTER_SITES= ${MASTER_SITE_GNU:=pth/}
|
|
|
|
MAINTAINER= packages@netbsd.org
|
|
HOMEPAGE= http://www.gnu.org/software/pth/pth.html
|
|
COMMENT= GNU Portable Thread library
|
|
|
|
CONFLICTS= pth-current-[0-9]* pth-syscall<1.4.1nb1
|
|
|
|
USE_BUILDLINK2= YES
|
|
USE_LIBTOOL= YES
|
|
LTCONFIG_OVERRIDE= ${WRKSRC}/ltconfig
|
|
GNU_CONFIGURE= YES
|
|
CONFIGURE_ARGS+= --enable-pthread
|
|
CONFIGURE_ARGS+= --with-fdsetsize=1024
|
|
#CONFIGURE_ARGS+= --enable-debug
|
|
CONFIG_GUESS_OVERRIDE= ${WRKSRC}/config.guess
|
|
CONFIG_SUB_OVERRIDE= ${WRKSRC}/config.sub
|
|
|
|
# for PLIST
|
|
PTH_MAJOR= 14
|
|
PTH_MINOR= 21
|
|
PLIST_SUBST+= PTH_MAJOR=${PTH_MAJOR} PTH_MINOR=${PTH_MINOR}
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
.if ${OPSYS} == "NetBSD"
|
|
. if ${MACHINE_ARCH} == "m68k" && (!empty(OS_VERSION:M1.5.[12]*) || !empty(OS_VERSION:M1.[0-4]*))
|
|
pre-configure:
|
|
@${ECHO} Building without --enable-syscall-hard. lib/18644 needs fixing.
|
|
. else
|
|
CONFIGURE_ARGS+= --enable-syscall-hard
|
|
. endif
|
|
.endif
|
|
|
|
test: build
|
|
@cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} test | \
|
|
tee ${WRKSRC}/test.log
|
|
|
|
post-install:
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/pth/
|
|
cd ${WRKSRC} && ${INSTALL_DATA} ANNOUNCE AUTHORS COPYING HACKING \
|
|
NEWS README SUPPORT TESTS THANKS USERS pthread.ps rse-pmt.ps \
|
|
${PREFIX}/share/doc/pth/
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|