diff options
author | dholland <dholland@pkgsrc.org> | 2012-01-03 01:25:28 +0000 |
---|---|---|
committer | dholland <dholland@pkgsrc.org> | 2012-01-03 01:25:28 +0000 |
commit | 427079a95f8e133b84bb70981834d2feb7d2281e (patch) | |
tree | be26b395c9f97bf64dbd756a16873ba079478794 /lang/objc/Makefile | |
parent | 55616e80b77e57c6628061b7ef49357ceb9bc0d8 (diff) | |
download | pkgsrc-427079a95f8e133b84bb70981834d2feb7d2281e.tar.gz |
1. Not MAKE_JOBS_SAFE.
2. Use MMFLAGS instead of MFLAGS as the compiler flags make variable.
The latter interacts somewhat poorly with make's own usage of the same
identifier. Do this by SUBST at post-extract time so nothing ever sees
the original form, and adjust patches to match.
Does not build (it cannot parse NetBSD's stdlib.h) but no longer
explodes randomly.
Diffstat (limited to 'lang/objc/Makefile')
-rw-r--r-- | lang/objc/Makefile | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/lang/objc/Makefile b/lang/objc/Makefile index befe3f24e93..c57dfcdea8e 100644 --- a/lang/objc/Makefile +++ b/lang/objc/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.11 2006/09/09 02:43:09 obache Exp $ +# $NetBSD: Makefile,v 1.12 2012/01/03 01:25:28 dholland Exp $ DISTNAME= objc-3.2.6 CATEGORIES= lang @@ -12,6 +12,8 @@ COMMENT= Portable Object Compiler DIST_BS= objc-bootstrap-3.1.33 WRKSRC_BS= ${WRKDIR}/${DIST_BS} +MAKE_JOBS_SAFE= no + CONFIGURE_DIRS= ${WRKSRC_BS} ${WRKSRC} CONFIG_GUESS_OVERRIDE= ${WRKSRC_BS}/util/config.guess util/config.guess CONFIG_SUB_OVERRIDE= ${WRKSRC_BS}/util/config.sub util/config.sub @@ -23,6 +25,13 @@ USE_TOOLS+= lex yacc USE_PKGLOCALEDIR= yes GNU_CONFIGURE= yes +SUBST_CLASSES+= mflags +SUBST_STAGE.mflags= post-extract +SUBST_MESSAGE.mflags= Changing 'MFLAGS' to 'MMFLAGS' +SUBST_SED.mflags= -e 's,MFLAGS,MMFLAGS,g' +SUBST_FILES.mflags= configure configure.in manual.html \ + */Makefile* src/*/Makefile* + pre-configure: ${ECHO} >> ${WRKSRC_BS}/configure \ '${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} ${BUILD_MAKE_FLAGS} -f ${MAKE_FILE} ${BUILD_TARGET}' |