[csw-devel] SF.net SVN: gar:[4170] csw/mgar/pkg/mod_python/trunk
valholla at users.sourceforge.net
valholla at users.sourceforge.net
Fri Apr 3 03:32:44 CEST 2009
Revision: 4170
http://gar.svn.sourceforge.net/gar/?rev=4170&view=rev
Author: valholla
Date: 2009-04-03 01:32:44 +0000 (Fri, 03 Apr 2009)
Log Message:
-----------
isalist
Modified Paths:
--------------
csw/mgar/pkg/mod_python/trunk/Makefile
Added Paths:
-----------
csw/mgar/pkg/mod_python/trunk/files/fixme.sh
Modified: csw/mgar/pkg/mod_python/trunk/Makefile
===================================================================
--- csw/mgar/pkg/mod_python/trunk/Makefile 2009-04-03 00:40:43 UTC (rev 4169)
+++ csw/mgar/pkg/mod_python/trunk/Makefile 2009-04-03 01:32:44 UTC (rev 4170)
@@ -24,17 +24,26 @@
# We define upstream file regex so we can be notifed of new upstream software release
UFILES_REGEX = (\d+(?:\.\d+)*)
+LD_OPTIONS =
+LDFLAGS = -L/opt/csw/lib
+NOISALIST = 1
CONFIGURE_ARGS = $(DIRPATHS)
CONFIGURE_ARGS += --with-apxs=$(prefix)/apache2/sbin/apxs
CONFIGURE_ARGS += --with-python=$(bindir)/python
CONFIGURE_ARGS += --with-flex=$(bindir)/flex-2.5.35
CONFIGURE_ARGS += --with-python-src=../python
-NOISALIST = 1
include gar/category.mk
DESTDOC = $(DESTDIR)$(docdir)/ap2_modpython
+DISTFILES += fixme.sh
+post-configure-modulated:
+ @echo " ==> Fixing libtool files"
+ @$(DOWNLOADDIR)/fixme.sh $(WORKSRC)
+ @$(MAKECOOKIE)
+
+
post-install-modulated:
@install -d $(DESTDOC)
@for file in COPYRIGHT CREDITS LICENSE NEWS NOTICE README ; do \
Copied: csw/mgar/pkg/mod_python/trunk/files/fixme.sh (from rev 3986, csw/mgar/pkg/fixme/trunk/fixme.sh)
===================================================================
--- csw/mgar/pkg/mod_python/trunk/files/fixme.sh (rev 0)
+++ csw/mgar/pkg/mod_python/trunk/files/fixme.sh 2009-04-03 01:32:44 UTC (rev 4170)
@@ -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