[csw-devel] SF.net SVN: gar:[4776] csw/mgar/pkg/gtk2/trunk

dmichelsen at users.sourceforge.net dmichelsen at users.sourceforge.net
Sat May 9 01:27:27 CEST 2009


Revision: 4776
          http://gar.svn.sourceforge.net/gar/?rev=4776&view=rev
Author:   dmichelsen
Date:     2009-05-08 23:27:27 +0000 (Fri, 08 May 2009)

Log Message:
-----------
gtk2: Fix 64 bit build

Modified Paths:
--------------
    csw/mgar/pkg/gtk2/trunk/Makefile
    csw/mgar/pkg/gtk2/trunk/checksums

Added Paths:
-----------
    csw/mgar/pkg/gtk2/trunk/files/
    csw/mgar/pkg/gtk2/trunk/files/fixme.sh

Property Changed:
----------------
    csw/mgar/pkg/gtk2/trunk/


Property changes on: csw/mgar/pkg/gtk2/trunk
___________________________________________________________________
Modified: svn:externals
   - gar https://gar.svn.sourceforge.net/svnroot/gar/csw/mgar/gar/v1

   + gar https://gar.svn.sourceforge.net/svnroot/gar/csw/mgar/gar/v2


Modified: csw/mgar/pkg/gtk2/trunk/Makefile
===================================================================
--- csw/mgar/pkg/gtk2/trunk/Makefile	2009-05-08 23:25:15 UTC (rev 4775)
+++ csw/mgar/pkg/gtk2/trunk/Makefile	2009-05-08 23:27:27 UTC (rev 4776)
@@ -1,8 +1,8 @@
 GARNAME = gtk2
-GARVERSION = 2.4.3
+GARVERSION = 2.16.1
 CATEGORIES = lib
 
-DESCRIPTION = A library for creating graphical user interfaces.
+DESCRIPTION = GTK+, the multiplatform X11 toolkit for GUI development
 define BLURB
   GTK, which stands for the Gimp ToolKit, is a library for creating graphical
   user interfaces. It is designed to be small and efficient, but still flexible
@@ -16,23 +16,36 @@
 #
 # #if (defined(__STDC__) && !defined(UNIXCPP)) || defined(ANSICPP)
 
-MASTER_SITES = ftp://ftp.gtk.org/pub/gtk/v2.4/
+MASTER_SITES = http://ftp.gnome.org/pub/gnome/sources/gtk+/2.16/
 
 DISTFILES = gtk+-$(GARVERSION).tar.bz2
+DISTFILES += fixme.sh
+
 WORKSRC = $(WORKDIR)/gtk+-$(GARVERSION)
 
-LIBDEPS += lib/atk
-LIBDEPS += lib/pango
-LIBDEPS += lib/xcursor
-LIBDEPS += xtra/hicolor-icon-theme
+PREREQUISITE_PKGS = CSWbash
 
+SPKG_SOURCEURL = http://www.gtk.org/
+
+EXTRA_INC = $(prefix)/X11/include
+EXTRA_LIB = $(prefix)/X11/lib
+EXTRA_PKG_CONFIG_DIRS = $(prefix)/X11/lib
+
+BUILD64 = 1
+
 CONFIGURE_ARGS  = $(DIRPATHS)
 CONFIGURE_ARGS += --enable-debug=yes
 
-TEST_TARGET = check
+#TEST_TARGET = check
+# There is a test failing on Xvfb which may or may not be harmful. Disable for now.
+TEST_TARGET =
 
+TEST_OVERRIDE_DIRS = SHELL
+SHELL = /opt/csw/bin/bash
+
 include gar/category.mk
 
-CFLAGS := -g $(CFLAGS)
-CXXFLAGS := -g $(CXXFLAGS)
-export CFLAGS CXXFLAGS
+post-configure-modulated:
+	@echo " ==> Fixing libtool files"
+	@$(DOWNLOADDIR)/fixme.sh $(WORKSRC)
+	@$(MAKECOOKIE)

Modified: csw/mgar/pkg/gtk2/trunk/checksums
===================================================================
--- csw/mgar/pkg/gtk2/trunk/checksums	2009-05-08 23:25:15 UTC (rev 4775)
+++ csw/mgar/pkg/gtk2/trunk/checksums	2009-05-08 23:27:27 UTC (rev 4776)
@@ -1 +1,2 @@
-debfd0fcef08683c0761f13e1ba2dced  download/gtk+-2.4.3.tar.bz2
+34f5b20f6caf282b2533784fbb1b4395  download/fixme.sh
+74e35ff3e6e02c960fe2117a4b6b102f  download/gtk+-2.16.1.tar.bz2

Copied: csw/mgar/pkg/gtk2/trunk/files/fixme.sh (from rev 4636, csw/mgar/pkg/fixme/trunk/fixme.sh)
===================================================================
--- csw/mgar/pkg/gtk2/trunk/files/fixme.sh	                        (rev 0)
+++ csw/mgar/pkg/gtk2/trunk/files/fixme.sh	2009-05-08 23:27:27 UTC (rev 4776)
@@ -0,0 +1,51 @@
+#!/bin/bash
+####################################################
+#
+#  fixme.sh
+#  Intended to remove the use of libtool's 
+#  pseudo-libraries for opencsw builds.
+#
+#  Author: Mike Watters  mwatters_at_opencsw.org
+#  Initial Version: 0.1
+#
+####################################################
+
+umask 0022
+PATH=/opt/csw/bin
+
+if [ $# -ne 1 ]; then
+    gecho "USAGE: $(basename $0) WORKSRC"
+    exit 1
+fi
+BASEPATH=$1
+
+## Fix Makefiles
+for mk in $(gfind ${BASEPATH} -name Makefile -print); do
+    LT_FILES=$(ggrep '/opt/csw.*/lib/.*\.la' ${mk} | \
+        gsed "s/^.*\(\/opt\/csw.*\/lib\/.*\.la\).*$/\1/")
+    
+    for file in ${LT_FILES}; do
+        LIB_NAME=$(ggrep 'dlname=' ${file} | \
+            gsed -e "s/.*'\(.*\)'/\1/" \
+                -e "s/^lib//" \
+                -e "s/\.so.*$//")
+        fixpath=$(gecho $file |gsed 's/\//\\\//g')
+        gsed "s/${fixpath}/-l${LIB_NAME}/g" ${mk} >Makefile.new
+        gmv Makefile.new ${mk}
+        gchmod +x ${mk}
+    done
+done
+
+## Fix libtool Script
+for lt in $(gfind ${BASEPATH} -name libtool -print); do
+    gsed "/for search_ext in .*\.la/s/\.la//" ${lt} >${lt}.new
+    gmv ${lt}.new ${lt}
+    gchmod +x ${lt}
+done
+
+for LTMAIN in $(gfind ${BASEPATH} -name ltmain.sh -print); do
+    gsed "/for search_ext in .*\.la/s/\.la//" ${LTMAIN} >${LTMAIN}.new
+    gmv ${LTMAIN}.new ${LTMAIN}
+    gchmod +x ${LTMAIN}
+done
+


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the devel mailing list