Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 05 Aug 2000 00:20:03 +0900
From:      "Akinori -Aki- MUSHA" <knu@idaemons.org>
To:        Ade Lovett <ade@FreeBSD.org>
Cc:        Sheldon Hearn <sheldonh@uunet.co.za>, reg@FreeBSD.org, freebsd-ports@FreeBSD.org
Subject:   Re: cvs commit: ports/devel/dryad Makefile ports/devel/dryad/patches patch-aa patch-ab ports/graphics/eog Makefile ports/graphics/eog/patches patch-aa patch-ab patch-ac ports/editors/gedit Makefile ports/editors/gedit/patches patch-ao ...
Message-ID:  <86wvhxoxy4.wl@localhost.local.idaemons.org>
In-Reply-To: In your message of "Fri, 4 Aug 2000 09:25:57 -0500" <20000804092557.L70017@FreeBSD.org>
References:  <86zomtp19w.wl@localhost.local.idaemons.org> <13804.965398896@axl.ops.uunet.co.za> <20000804092557.L70017@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
At Fri, 4 Aug 2000 09:25:57 -0500,
aDe wrote:
> On Fri, Aug 04, 2000 at 04:21:36PM +0200, Sheldon Hearn wrote:
> > I can't express how earnestly I hope that this sinks in.  One of the
> > most attractive aspects of the ports mechanism is to be able to see
> > what the distribution looks like (possibly even messing with it) after
> > extraction, then after patching, then after configuring etc.
> 
> Ok ok :)
> 
> Let me resync my ports tree, and I'll go do another megacommit
> later on today, changing it to pre-patch.

Thanks! :)

> Note that eventually this rule will go in as part of a USE_GNOME
> rule, which will make it even easier.
> 
> Jeremy?  Are we ready to roll with that stuff?

Maybe like this?


[Mk/bsd.port.mk]
(snip)

.if defined(USE_GNOME)
.include "${PORTSDIR}/Mk/bsd.gnome.mk"
.endif

(snip)


[Mk/bsd.gnome.mk]
GLIB_CONFIG?=	${LOCALBASE}/bin/glib12-config
GTK_CONFIG?=	${X11BASE}/bin/gtk12-config

GNOME_CONFIGURE_ARGS?=	--localstatedir=${PREFIX}/share/gnome \
			--datadir=${PREFIX}/share/gnome
GNOME_CONFIGURE_ENV?=	CPPFLAGS="-I${LOCALBASE}/include" \
			GLIB_CONFIG="${GLIB_CONFIG}" \
			GTK_CONFIG="${GTK_CONFIG}" \
			LIBS="-L${LOCALBASE}/lib"

CONFIGURE_ARGS?=	${GNOME_CONFIGURE_ARGS}
CONFIGURE_ENV?=		${GNOME_CONFIGURE_ENV}

gnome-patch:
	@${PERL} -pi -e 's|-lpthread|-pthread|g ; \
			 s|DATADIRNAME=lib|DATADIRNAME=share|g' ${WRKSRC}/configure
	@find ${WRKSRC} -name "Makefile.in" | xargs ${PERL} -pi -e \
		's|\$\(datadir\)/gnome/|\$\(datadir\)/|g ; \
		 s|\$\(datadir\)/locale|\$\(prefix\)/share/locale|g'

.if !target(pre-patch)
pre-patch:	gnome-patch
	@${DO_NADA}
.endif

-- 
                           /
                          /__  __       
                         / )  )  ) )  /
Akinori -Aki- MUSHA aka / (_ /  ( (__(  @ idaemons.org / FreeBSD.org

"We're only at home when we're on the run, on the wing, on the fly"


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?86wvhxoxy4.wl>