From owner-freebsd-ports Thu Oct 5 21:59:39 2000 Delivered-To: freebsd-ports@freebsd.org Received: from 200-227-202-153-as.acessonet.com.br (200-227-202-153-as.acessonet.com.br [200.227.202.153]) by hub.freebsd.org (Postfix) with ESMTP id D40CB37B503 for ; Thu, 5 Oct 2000 21:59:34 -0700 (PDT) Received: (qmail 18420 invoked by uid 1001); 6 Oct 2000 04:59:19 -0000 From: "Mario Sergio Fujikawa Ferreira" Date: Fri, 6 Oct 2000 02:58:57 -0200 To: freebsd-ports@freebsd.org Subject: WANT_GTK and some doubts Message-ID: <20001006025857.A17954@Fedaykin.here> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.4i Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org 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 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 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