From aaac1939b4453fea255d96bc05ef62771a3fe39f Mon Sep 17 00:00:00 2001 From: Andrew Pantyukhin Date: Wed, 8 Aug 2007 21:03:24 +0000 Subject: - Attempt to fix build when using ncurses from ports (e.g. on 5.x) Reported by: pointyhat via kris --- devel/stfl/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'devel/stfl') diff --git a/devel/stfl/Makefile b/devel/stfl/Makefile index 3ba9a0ab3c3d..765cb9d4726c 100644 --- a/devel/stfl/Makefile +++ b/devel/stfl/Makefile @@ -32,8 +32,8 @@ NCURSES_INC= ncurses/ .endif post-patch: - @${REINPLACE_CMD} -e 's|\.a|.so|g;/ranlib/d;s|ar qc|${CC} ${CFLAGS} -shared -fPIC -o|;\ - s|sed -r|sed -E|;s|-Os||;/gcc/d' ${WRKSRC}/Makefile + @${REINPLACE_CMD} -e 's|\.a|.so|g;/ranlib/d;s|ar qc|$${CC} $${CFLAGS} -shared -fPIC -o|;\ + s|sed -r|sed -E|;s|-Os||;/gcc/d;/-MM/s|-I.|$${CFLAGS}|' ${WRKSRC}/Makefile @${REINPLACE_CMD} -e 's|alloca.h|stdlib.h|' ${WRKSRC}/widgets/*.c @${REINPLACE_CMD} -e 's|ncursesw/|${NCURSES_INC}|' ${WRKSRC}/stfl_internals.h @${ECHO_CMD} 'prefix = ${PREFIX}' > ${WRKSRC}/Makefile.cfg -- cgit v1.2.3