Revision: 4313 http://gar.svn.sourceforge.net/gar/?rev=4313&view=rev Author: dmichelsen Date: 2009-04-14 20:16:35 +0000 (Tue, 14 Apr 2009)
Log Message: ----------- vorbistools: Add dependencys, libtool fix Modified Paths: -------------- csw/mgar/pkg/vorbistools/trunk/Makefile csw/mgar/pkg/vorbistools/trunk/checksums Added Paths: ----------- csw/mgar/pkg/vorbistools/trunk/files/fixme.sh Modified: csw/mgar/pkg/vorbistools/trunk/Makefile =================================================================== --- csw/mgar/pkg/vorbistools/trunk/Makefile 2009-04-14 20:10:50 UTC (rev 4312) +++ csw/mgar/pkg/vorbistools/trunk/Makefile 2009-04-14 20:16:35 UTC (rev 4313) @@ -13,10 +13,16 @@ DISTNAME = vorbis-tools-$(GARVERSION) MASTER_SITES = http://downloads.xiph.org/releases/vorbis/ DISTFILES = $(DISTNAME).tar.gz +DISTFILES += fixme.sh +SPKG_SOURCEURL = http://www.vorbis.com + PACKAGES = CSWvtools CATALOGNAME = vorbistools +REQUIRED_PKGS = CSWcurlrt CSWflac CSWggettextrt CSWiconv CSWlibao +REQUIRED_PKGS += CSWlibogg CSWspeex CSWsunmath CSWvorbis + # We define upstream file regex so we can be notifed of new upstream software release UFILES_REGEX = (\d+(?:\.\d+)*) @@ -30,3 +36,9 @@ TEST_TARGET = check include gar/category.mk + +post-configure-modulated: + @echo " ==> Fixing libtool files" + @$(DOWNLOADDIR)/fixme.sh $(WORKSRC) + @$(MAKECOOKIE) + Modified: csw/mgar/pkg/vorbistools/trunk/checksums =================================================================== --- csw/mgar/pkg/vorbistools/trunk/checksums 2009-04-14 20:10:50 UTC (rev 4312) +++ csw/mgar/pkg/vorbistools/trunk/checksums 2009-04-14 20:16:35 UTC (rev 4313) @@ -1 +1,2 @@ +34f5b20f6caf282b2533784fbb1b4395 download/fixme.sh df976d24e51ef3d87cd462edf747bf9a download/vorbis-tools-1.2.0.tar.gz Copied: csw/mgar/pkg/vorbistools/trunk/files/fixme.sh (from rev 4263, csw/mgar/pkg/fixme/trunk/fixme.sh) =================================================================== --- csw/mgar/pkg/vorbistools/trunk/files/fixme.sh (rev 0) +++ csw/mgar/pkg/vorbistools/trunk/files/fixme.sh 2009-04-14 20:16:35 UTC (rev 4313) @@ -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. _______________________________________________ devel mailing list devel@lists.opencsw.org https://lists.opencsw.org/mailman/listinfo/devel