Date: Fri, 6 Oct 2000 02:58:57 -0200 From: "Mario Sergio Fujikawa Ferreira" <lioux@uol.com.br> To: freebsd-ports@freebsd.org Subject: WANT_GTK and some doubts Message-ID: <20001006025857.A17954@Fedaykin.here>
next in thread | raw e-mail | index | archive | help
Hi, I was trying to update a port to use the new (WANT|HAVE)_GTK before submitting it, but I am having some problems. I had the following: -------- # only needed to enable the GTK+ debugger .if defined(WITH_GTK) LIB_DEPENDS+= gtk12.2:${PORTSDIR}/x11-toolkits/gtk12 GTK_CONFIG= ${X11BASE}/bin/gtk12-config GTK_CFLAGS!= ${GTK_CONFIG} --cflags .endif .include <bsd.port.pre.mk> post-configure: .if defined(WITH_GTK) @${PERL} -pi \ -e 's|^#(USE_GTK=1.*)|\1|;' \ -e 's|^(CFLAGS.*)|\1 ${GTK_CFLAGS}|;' \ -e 's|-lgtk\s+-lgdk|-lgtk12 -lgdk12|' \ ${WRKSRC}/Makefile .endif -------- Which I changed to: -------- WANT_GTK= yes .if defined(WITH_GTK) GTK_CFLAGS!= ${GTK_CONFIG} --cflags .endif .include <bsd.port.pre.mk> post-configure: .if defined(WITH_GTK) @${PERL} -pi \ -e 's|^#(USE_GTK=1.*)|\1|;' \ -e 's|^(CFLAGS.*)|\1 ${GTK_CFLAGS}|;' \ -e 's|-lgtk\s+-lgdk|-lgtk12 -lgdk12|' \ ${WRKSRC}/Makefile .endif -------- Then, I get: "Makefile", line 26: warning: " --cflags" returned non-zero status --cflags: not found Suggestions? I tried HAVE_GTK too, broke. -- Mario S. F. Ferreira - UnB - Brazil - "I guess this is a signature." lioux at ( freebsd dot org | linf dot unb dot br ) flames to beloved devnull@someotherworldbeloworabove.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20001006025857.A17954>