Package: xraylib Version: 2.15.0 Revision: 3 Description: X-ray fluorescence library (build-time) DescDetail: << X-ray matter interaction cross sections for X-ray fluorescence applications. It is a C library with also Python, IDL, PERL and Fortran interfaces. << DescUsage: << The Octave Forge xraylib package is currently incompatible with xraylib-2.16.0, so this package exists to provide the ability to build that. << Maintainer: Alexander Hansen License: BSD Homepage: https://github.com/tschoonj/xraylib/wiki BuildDepends: fink-package-precedence, pkgconfig, swig Depends: %n-shlibs (=%v-%r) Conflicts: %N3 Replaces: %N3 Source: http://lvserver.ugent.be/xraylib/%N-%v.tar.gz Source-MD5: 710d88bd367184cb27850f597374f9ec UseMaxBuildJobs: false BuildDependsOnly: true GCC: 4.0 ConfigureParams: << --disable-idl --disable-perl --disable-python --disable-fortran2003 \ --disable-static << PatchScript: << #!/bin/sh -ev os=`uname -r | cut -d. -f1` # check for 10.5 and 10.6 cases where the default architecture doesn't # match Fink's case $os in # 10.5/x86_64 9) if [ "%m" = "x86_64" ] ; then jsubst=" -d64" ; fi ;; # 10.6/i386 10) if [ "%m" = "i386" ] ; then jsubst=" -d32" ; fi ;; # all others *) jsubst="" ;; esac perl -pi -e "s/(JAVA\))/\1$jsubst/" example/Makefile.in << CompileScript: << %{default_script} fink-package-precedence . << InfoTest: TestScript: make check || exit 2 InstallScript: << make install DESTDIR=%d install_name_tool -id %p/share/%N/java/lib%N.jnilib %i/share/%N/java/lib%N.jnilib << DescPackaging: << Disable IDL binding because I can't control whether folks have that or not. Feel free to enable it locally :-) Disable Python and Perl bindings to allow for multiple -pm and -py versions. Disable Fortran bindings so that people can elect to build them if they need them rather than forcing them to install gcc4N if they don't. Enable Java bindings because Java is included with the OS. Use install_name_tool on the java lib so that it has an absolute install_name. Patch examples/Makefile.in so that test 7 in the test suite uses the the same architecture for the Java virtual machine as the Fink tree. The text files are in the -shlibs package because they are used at runtime. << DocFiles: AUTHORS BUGS Changelog README TODO SplitOff: << Package: %N-shlibs Files: lib/libxrl.3.dylib share/%N/*.txt Shlibs: %p/lib/libxrl.3.dylib 6.0.0 %n (>=2.13.1-1) DocFiles: AUTHORS BUGS Changelog README TODO Description: X-ray fluorescence library (shared lib) << SplitOff2: << Package: %N-java Depends: system-java, %N-shlibs (= %v-%r) Files: share/%N/java Shlibs: %p/share/%N/java/lib%N.jnilib 0.0.0 %n (>=2.15.0-1) DocFiles: AUTHORS BUGS Changelog README TODO Description: X-ray fluorescence library (Java lib) <<