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

Modified Files:
        fpprofiler.info 
Added Files:
        fpprofiler-cross.info 
Log Message:
split off cross compiler parts, fix dependencies, fix install bug, ...

--- NEW FILE: fpprofiler-cross.info ---
Package: fpprofiler-cross
Version: 20110108
Revision: 1
Description: Profiler for the FreePascal cross compiler
Architecture: powerpc, i386, x86_64
Source: 
http://michael-ep3.physik.uni-halle.de/fink-sources/fpprofiler-%v.tar.bz2
Source-MD5: f798933eecda64a4a7cb9e284c862e52
Depends: <<
  fpprofiler,
  (%m = i386)     fpc-cross-x86-64-darwin,
  (%m = x86_64)   fpc-cross-i386-darwin,
  (%m != powerpc) fpc-cross-powerpc-darwin,
  (%m != powerpc) fpc-cross-powerpc-linux,
  (%m != powerpc) fpc-cross-i386-linux,
  (%m != powerpc) fpc-cross-i386-freebsd,
  (%m != powerpc) fpc-cross-i386-win32,
  (%m != powerpc) fpc-cross-i386-wince,
  (%m != powerpc) fpc-cross-x86-64-linux,
  (%m != powerpc) fpc-cross-x86-64-win64
<<
Recommends: graphviz
License: GPL

CompileScript: <<
#!/bin/sh -ev
  cd fpprof

  if [ "%m" = "i386" ]; then
    SYSTEMS='powerpc-darwin x86_64-darwin'
  fi  
  if [ "%m" = "x86_64" ]; then
    SYSTEMS='powerpc-darwin i386-darwin'
  fi  
  for system in $SYSTEMS
  do
    cpu_target=`echo $system |cut -d '-' -f 1`
    os_target=` echo $system |cut -d '-' -f 2`
    mkdir -p units/$system/fpprof
    fpc   -FEunits/$system/fpprof -P$cpu_target -T$os_target fpprof.pp
  done

  SYSTEMS=''
  if [ "%m" != "powerpc" ]; then
    SYSTEMS=$SYSTEMS' powerpc-linux arm-linux i386-linux i386-freebsd 
i386-win32 i386-wince'
    SYSTEMS=$SYSTEMS' x86_64-linux x86_64-win64'
  fi  
  for system in $SYSTEMS
  do
    cpu_target=`echo $system |cut -d '-' -f 1`
    os_target=` echo $system |cut -d '-' -f 2`
    mkdir -p units/$system/fpprof
    fpc   -FEunits/$system/fpprof -P$cpu_target -T$os_target 
-XP$cpu_target-$os_target- fpprof.pp
  done

<<

InstallScript: <<
#!/bin/sh -ev
  FPC_VERSION=`fpc -iV`
  mkdir -p             %i/lib/fpc/$FPC_VERSION/units
  cp -r fpprof/units/* %i/lib/fpc/$FPC_VERSION/units
<<

DocFiles: docs/COPYING.GPL docs/develop.txt

DescDetail: <<
Compile your program by using fpp as a replacement of fpc. 
This creates a profile file (Default: fpprof.xml), 
from which fppview creates output. Output in the dot language 
can be converted to a graph with the program "dot" from the 
package "graphviz".

More details about options can be obtained with
  fpp -h
and
  fppview -h

Usage Example:

  fpp MyProgram.pp
  fppview --format=graphviz --stat=callgraph >MyProgram.dot
  dot -Tpng MyProgram.dot -o MyProgram.png
  open MyProgram.png

Please check also the home page: http://wiki.lazarus.freepascal.org/FPProfiler
<<

DescPort: <<
  Crosscompilers on powerpc still have some problems, although all powerpc and
  arm targets (except arm-darwin) should work.
<<

Homepage: http://wiki.lazarus.freepascal.org/FPProfiler
Maintainer: Karl-Michael Schindler <karl-michael.schind...@web.de>

Index: fpprofiler.info
===================================================================
RCS file: 
/cvsroot/fink/dists/10.4/unstable/main/finkinfo/devel/fpprofiler.info,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- fpprofiler.info     23 Jan 2011 14:28:15 -0000      1.2
+++ fpprofiler.info     24 Jan 2011 22:56:34 -0000      1.3
@@ -1,12 +1,12 @@
 Package: fpprofiler
 Version: 20110108
-Revision: 2
+Revision: 3
 Description: Profiler for the FreePascal compiler
 Architecture: powerpc, i386, x86_64
 Source: http://michael-ep3.physik.uni-halle.de/fink-sources/%n-%v.tar.bz2
 Source-MD5: f798933eecda64a4a7cb9e284c862e52
 Depends: fpc
-Recommends: graphviz
+Recommends: graphviz, fpprofiler-cross
 License: GPL
 
 PatchScript: <<
@@ -27,21 +27,6 @@
   fpc -Fu../fpprof -Fu../fcl-passrc/units/* fppremove.pp
   cd ../fppview
   fpc -Fu../fpprof -Fu../fcl-passrc/units/* fppview.pp
-
-  cd ../fpprof
-  rm *.o *.ppu
-  SYSTEMS='powerpc-darwin'
-  if [ "%m" <> "powerpc" ]; then
-    SYSTEMS=$SYSTEMS' i386-darwin i386-linux i386-freebsd i386-win32 
i386-wince'
-    SYSTEMS=$SYSTEMS' x86_64-darwin x86_64-linux x86_64-win64'
-  fi  
-  for system in $SYSTEMS
-  do
-    cpu_target=`echo $system |cut -d '-' -f 1`
-    os_target=` echo $system |cut -d '-' -f 2`
-    mkdir -p units/$system/fpprof
-    fpc   -FEunits/$system/fpprof -P$cpu_target -T$os_target fpprof.pp
-  done
 <<
 
 InfoTest: <<
@@ -73,12 +58,13 @@
 #!/bin/sh -ev
   FPC_VERSION=`fpc -iV`
   mkdir -p %i/bin
-  install -m 755 fpp/fpp %i/bin/fpp
-  install -m 755 fpp/fpp %i/bin/fppinsert
-  install -m 755 fpp/fpp %i/bin/fppremove
+  install -m 755 fpp/fpp         %i/bin/fpp
+  install -m 755 fpp/fppinsert   %i/bin/fppinsert
+  install -m 755 fpp/fppremove   %i/bin/fppremove
   install -m 755 fppview/fppview %i/bin/fppview
-  mkdir -p             %i/lib/fpc/$FPC_VERSION/units
-  cp -r fpprof/units/* %i/lib/fpc/$FPC_VERSION/units
+  mkdir -p           %i/lib/fpc/$FPC_VERSION/units/%m-darwin
+  cp -r fpprof/*.ppu %i/lib/fpc/$FPC_VERSION/units/%m-darwin
+  cp -r fpprof/*.o   %i/lib/fpc/$FPC_VERSION/units/%m-darwin
 <<
 
 DocFiles: docs/COPYING.GPL docs/develop.txt
@@ -98,7 +84,7 @@
 Usage Example:
 
   fpp MyProgram.pp
-  fppview --format=graphviz  --stat=callgraph >MyProgram.dot
+  fppview --format=graphviz --stat=callgraph >MyProgram.dot
   dot -Tpng MyProgram.dot -o MyProgram.png
   open MyProgram.png
 


------------------------------------------------------------------------------
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires 
February 28th, so secure your free ArcSight Logger TODAY! 
http://p.sf.net/sfu/arcsight-sfd2d
_______________________________________________
Fink-commits mailing list
Fink-commits@lists.sourceforge.net
http://news.gmane.org/gmane.os.apple.fink.cvs

Reply via email to