[csw-devel] SF.net SVN: gar:[4343] csw/mgar/pkg/pango/trunk

dmichelsen at users.sourceforge.net dmichelsen at users.sourceforge.net
Thu Apr 16 14:26:56 CEST 2009


Revision: 4343
          http://gar.svn.sourceforge.net/gar/?rev=4343&view=rev
Author:   dmichelsen
Date:     2009-04-16 12:26:56 +0000 (Thu, 16 Apr 2009)

Log Message:
-----------
pango: Add libtool fix

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

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

Modified: csw/mgar/pkg/pango/trunk/Makefile
===================================================================
--- csw/mgar/pkg/pango/trunk/Makefile	2009-04-16 12:24:18 UTC (rev 4342)
+++ csw/mgar/pkg/pango/trunk/Makefile	2009-04-16 12:26:56 UTC (rev 4343)
@@ -13,6 +13,7 @@
 MASTER_SITES = http://ftp.gnome.org/pub/gnome/sources/pango/1.24/
 DISTNAME = pango-$(GARVERSION)
 DISTFILES  = $(DISTNAME).tar.bz2
+DISTFILES += fixme.sh
 
 PACKAGES = CSWpango CSWpangodevel CSWpangodoc
 CATALOGNAME_CSWpango      = libpango
@@ -41,3 +42,10 @@
 TEST_SCRIPTS   = 
 
 include gar/category.mk
+
+post-configure-modulated:
+	@echo " ==> Fixing libtool files"
+	@$(DOWNLOADDIR)/fixme.sh $(WORKSRC)
+	@$(MAKECOOKIE)
+
+

Modified: csw/mgar/pkg/pango/trunk/checksums
===================================================================
--- csw/mgar/pkg/pango/trunk/checksums	2009-04-16 12:24:18 UTC (rev 4342)
+++ csw/mgar/pkg/pango/trunk/checksums	2009-04-16 12:26:56 UTC (rev 4343)
@@ -1 +1,2 @@
+34f5b20f6caf282b2533784fbb1b4395  download/fixme.sh
 af0beac1dd1825e241c5728081f16acd  download/pango-1.24.1.tar.bz2

Copied: csw/mgar/pkg/pango/trunk/files/fixme.sh (from rev 4338, csw/mgar/pkg/fixme/trunk/fixme.sh)
===================================================================
--- csw/mgar/pkg/pango/trunk/files/fixme.sh	                        (rev 0)
+++ csw/mgar/pkg/pango/trunk/files/fixme.sh	2009-04-16 12:26:56 UTC (rev 4343)
@@ -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