Subject: Re: qt3-libs doesn't compile in FreeBSD 5.x!
To: None <tech-pkg@NetBSD.org>
From: Juan RP <juan@xtraeme.unixbsd.org>
List: tech-pkg
Date: 10/01/2003 19:10:26
On Wed, 1 Oct 2003 17:56:33 +0200
Juan RP <juan@xtraeme.unixbsd.org> wrote:

It seems all packages of kde3, have -pedantic in CFLAGS, that doesn't like to FreeBSD, removing
-pedantic from configure, seems to compile ok:

Index: Makefile.foo_main
===================================================================
RCS file: /cvsroot/pkgsrc/meta-pkgs/kde3/Makefile.foo_main,v
retrieving revision 1.1.1.1
diff -b -u -r1.1.1.1 Makefile.foo_main
--- Makefile.foo_main   2003/07/30 12:55:41     1.1.1.1
+++ Makefile.foo_main   2003/10/01 17:04:35
@@ -9,3 +9,13 @@
                ${LN} -s ${.CURDIR}/../../meta-pkgs/kde3/files/foo_main.cpp \
                    ${WRKSRC}/$${f}; \
        done
+
+.include "../../mk/bsd.prefs.mk"
+
+.if ${OPSYS} == "FreeBSD"
+post-extract:
+       @${MV} ${WRKSRC}/configure ${WRKSRC}/configure.fixed
+       @${SED} -e 's:-pedantic::g' ${WRKSRC}/configure.fixed > \
+               ${WRKSRC}/configure
+       @${CHMOD} +x ${WRKSRC}/configure
+.endif

This fixes my build problems ..

TIA,
-- 
Juan RP <juan AT xtraeme DOT UnixBSD DOT org>