Update of /cvsroot/fink/dists/10.4/unstable/main/finkinfo/devel
In directory sfp-cvsdas-3.v30.ch3.sourceforge.com:/tmp/cvs-serv26834

Modified Files:
        svn-swig-pm.info 
Log Message:
Better propagation of arch-controlled perl interp during build


Index: svn-swig-pm.info
===================================================================
RCS file: 
/cvsroot/fink/dists/10.4/unstable/main/finkinfo/devel/svn-swig-pm.info,v
retrieving revision 1.54
retrieving revision 1.55
diff -u -d -r1.54 -r1.55
--- svn-swig-pm.info    9 Aug 2010 18:52:37 -0000       1.54
+++ svn-swig-pm.info    9 Aug 2010 22:38:17 -0000       1.55
@@ -56,6 +56,20 @@
  else
    export PERL=/usr/bin/perl%type_raw[perl]
  fi
+ # MakeMaker generates a bogus ABSPERL if PERL="/usr/bin/arch -%m perl5.10.0"
+ # since it expects a full pathname. Also something is checking if ABSPERL is
+ # a valid filename, which fails obviously. Here we create a wrapper so that we
+ # set ABSPATH to a valid filename while still calling /usr/bin/arch but only
+ # on 10.6 and later.
+ let version=`uname -r | cut -f 1 -d .`
+ if [ %type_pkg[perl] -ge 5100 -a $version -ge 10 ]; then
+  cat > myperl <<_Eof
+#!/bin/sh
+exec /usr/bin/arch -%m $PERL "\$@"
+_Eof
+  chmod +x myperl; export PERL=`pwd`/myperl
+ fi
+
  ./configure --libdir=%p/lib/perl5/%type_raw[perl]/lib \
        --enable-shared \
        --disable-static \
@@ -78,19 +92,6 @@
        --disable-neon-version-check
 
  ### Build swig perl bindings
- # MakeMaker generates a bogus ABSPERL if PERL="/usr/bin/arch -%m perl5.10.0"
- # since it expects a full pathname. Also something is checking if ABSPERL is
- # a valid filename, which fails obviously. Here we create a wrapper so that we
- # set ABSPATH to a valid filename while still calling /usr/bin/arch but only
- # on 10.6 and later.
- let version=`uname -r | cut -f 1 -d .`
- if [ %type_pkg[perl] -ge 5100 -a $version -ge 10 ]; then
-  cat > myperl <<_Eof
-#!/bin/sh
-exec /usr/bin/arch -%m $PERL "\$@"
-_Eof
-  chmod +x myperl; export PERL=`pwd`/myperl
- fi
  
  perl -pi -e 's/-arch i386 -arch ppc//g' Makefile
  make libsvn_swig_perl CPPFLAGS='-I$(top_srcdir)/subversion/include 
-I$(top_builddir)/subversion -I%p/include/neon -I%p/include/apache2 
-I%p/lib/system-openssl/include -I%p/include  -DDARWIN 
-DSIGPROCMASK_SETS_THREAD_MASK' INCLUDES=''


------------------------------------------------------------------------------
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
_______________________________________________
Fink-commits mailing list
[email protected]
http://news.gmane.org/gmane.os.apple.fink.cvs

Reply via email to