Re: Upgrade gtk2 fails

Piet van Oostrum <[email protected]> Sat, 02 Sep 2006 23:25:08 +0200
Newsgroups gmane.os.opendarwin.darwinports
Message-ID <[email protected]>
--Boundary_(ID_+BLLw/iZJsbvb17ihFF9Xg)
Content-type: TEXT/PLAIN
Content-transfer-encoding: 7BIT

>>>>> "Tabitha McNerney" <[email protected]> (TM) wrote:

>TM> On 9/1/06, Piet van Oostrum <[email protected]> wrote:
>>> 
>>> I had to revert to gtk2 2.8.20 to get evrything working again. My
>>> suggestion would be to put this version in the Portfile.

>TM> Piet, would you mind copying and pasting your modified gtk2 2.8.20
>TM> port file to mailing list? Its probably not difficult to modify but at
>TM> least knowing the new MD5 hash to insert into the Portfile would be
>TM> appreciated.

Here it is. Of course the $Id line doesn't make sense (I did not touch
that).


--Boundary_(ID_+BLLw/iZJsbvb17ihFF9Xg)
Content-type: TEXT/PLAIN; NAME=Portfile
Content-transfer-encoding: 7BIT
Content-disposition: attachment; filename=Portfile

# $Id: Portfile,v 1.49 2006/08/25 03:40:04 mij Exp $

PortSystem 1.0
name		gtk2
version		2.8.20
categories	x11
maintainers	[email protected]
description	Gimp ToolKit version 2
homepage	http://www.gtk.org/
platforms	darwin

long_description This is GTK+ version 2.x.  GTK+, which stands for Gimp \
		 ToolKit, is a library for creating GUIs for the X \
		 Windows System.

master_sites	ftp://ftp.gtk.org/pub/gtk/v2.8 \
		gnome:sources/gtk+/2.8

distname	gtk+-${portversion}
checksums	md5 74e7ca98194f1fadfe906e66d763d05d \
		sha1 8ea2449ff139b8bc457f8b5bcdcad93b02cfba9e \
		rmd160 d20254de9e5b37b19f432758fbd78fff4c6baf1e

use_bzip2	yes

depends_lib	port:glib2 port:tiff port:libpng port:atk port:pango \
		port:gettext lib:libX11.6:XFree86

configure.env	LDFLAGS="-L${prefix}/lib -lpango-1.0" \
		CPPFLAGS="-I${prefix}/include -no-cpp-precomp -DX_LOCALE" \
		CFLAGS="-O3 -funroll-loops -fstrict-aliasing"

configure.args	--disable-shm --disable-gtk-doc --with-included-loaders \
		--mandir=${prefix}/share/man

build.args	CFLAGS+="-I${x11prefix}/include"

platform darwin 6 { patchfiles-append patch-gtk-xdgmime-xdgmimemagic.c }

post-patch	{ reinplace "s|xdg_data_dirs = \"/usr|xdg_data_dirs = \"${prefix}/share:/usr|g" ${worksrcpath}/gtk/xdgmime/xdgmime.c
		  reinplace "s|g_strdup (\"/usr|g_strdup (\"${prefix}|g" ${worksrcpath}/gtk/gtkicontheme.c }

post-destroot	{ system "install -d -m 755 ${destroot}${prefix}/etc/gtk-2.0"
		  system "cp ${filespath}/gdk-pixbuf.loaders ${destroot}${prefix}/etc/gtk-2.0/gdk-pixbuf.loaders"
		  reinplace "s|__PREFIX__|${prefix}|g" "${destroot}/${prefix}/etc/gtk-2.0/gdk-pixbuf.loaders"
		  system "env LANG=C DYLD_LIBRARY_PATH=${destroot}${prefix}/lib ${destroot}${prefix}/bin/gtk-query-immodules-2.0 ${destroot}${prefix}/lib/gtk-2.0/2.10.0/immodules/*.so | sed -e 's|${destroot}||g' > ${destroot}${prefix}/etc/gtk-2.0/gtk.immodules" }

post-activate	{ system "gdk-pixbuf-query-loaders ${prefix}/lib/gtk-2.0/2.10.0/loaders/*.so > ${prefix}/etc/gtk-2.0/gdk-pixbuf.loaders" }

--Boundary_(ID_+BLLw/iZJsbvb17ihFF9Xg)
Content-type: TEXT/PLAIN
Content-transfer-encoding: 7BIT


-- 
Piet van Oostrum <[email protected]>
URL: http://www.cs.uu.nl/~piet [PGP 8DAE142BE17999C4]
Private email: [email protected]

--Boundary_(ID_+BLLw/iZJsbvb17ihFF9Xg)
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Darwinports mailing list
[email protected]
http://www.opendarwin.org/mailman/listinfo/darwinports

--Boundary_(ID_+BLLw/iZJsbvb17ihFF9Xg)--