diff options
author | marino <marino> | 2011-12-17 19:02:11 +0000 |
---|---|---|
committer | marino <marino> | 2011-12-17 19:02:11 +0000 |
commit | ea18a47bf8a403c1502bec9d90b5bccc9e69fffc (patch) | |
tree | 861311a93f84d46e9ed0d46cdade2c10d4e3834c /lang | |
parent | ec1810f5a73c384ed06a3165f3e02a54f4f3074a (diff) | |
download | pkgsrc-ea18a47bf8a403c1502bec9d90b5bccc9e69fffc.tar.gz |
lang/schema48: Fix bad pthreads detection for DragonFly
The schema48 configure schema has a pthreads test that can't be overridden.
The problem is that it starts with -mt, and it thinks the test passes when
in reality gcc complains. This commit does a post-patch inline replacement
on the configure script to override the test, and to add -pthread to both
$CFLAGS and $LDFLAGS.
Diffstat (limited to 'lang')
-rw-r--r-- | lang/scheme48/Makefile | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/lang/scheme48/Makefile b/lang/scheme48/Makefile index 95607d21ac0..bb957390acf 100644 --- a/lang/scheme48/Makefile +++ b/lang/scheme48/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.33 2011/07/03 12:40:20 jym Exp $ +# $NetBSD: Makefile,v 1.34 2011/12/17 19:02:11 marino Exp $ DISTNAME= scheme48-1.8 CATEGORIES= lang @@ -7,7 +7,7 @@ EXTRACT_SUFX= .tgz MAINTAINER= pkgsrc-users@NetBSD.org HOMEPAGE= http://s48.org/ -COMMENT= The Scheme Underground's implementation of R5RS +COMMENT= The Scheme Underground implementation of R5RS NOT_FOR_PLATFORM= *-*-alpha # *severe* problems. Bus error, alignment @@ -29,6 +29,15 @@ REPLACE.scheme.old= .*/bin/env scheme-srfi-7 REPLACE.scheme.new= ${PREFIX}/bin/scheme-srfi-7 REPLACE_FILES.scheme= build/scheme48-config.in +.include "../../mk/bsd.prefs.mk" +.if ${OPSYS} == "DragonFly" +SUBST_CLASSES+= pthr +SUBST_STAGE.pthr= post-patch +SUBST_FILES.pthr= configure +SUBST_MESSAGE.pthr= Hardcoding -pthread in CFLAGS and LDFLAGS +SUBST_SED.pthr= -e 's,pthreads_done=\"no\",pthreads_done=\"yes\"; CFLAGS=\"$$CFLAGS -pthread\"; LDFLAGS=\"$$LDFLAGS -pthread\",' +.endif + post-install: ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/doc/${PKGNAME_NOREV} cd ${WRKSRC}/doc && ${INSTALL_DATA} *.txt *.ps \ |