the Fink project is an effort to port
popular Unix programs to Mac OS X
Package: udunits
Version: 1.12.11
Revision: 2
Maintainer: Daniel Macks
BuildDepends: fink (>= 0.24.12-1)
Source: ftp://ftp.unidata.ucar.edu/pub/%n/%n-%v.tar.gz
Source-MD5: 2d984c738be0d674ec774d03997fdd9c
SourceDirectory: %n-%v/src
PatchFile: %n.patch
PatchFile-MD5: 68fac7a6ccb931445bd0739a4b2bd433
PatchScript: patch -p2 < %{PatchFile}
SetCC: gcc
SetCPPFLAGS: -Df2cFortran
UseMaxBuildJobs: false
CompileScript: <<
PERL='' MANDIR=%p/share/man ./configure %c
make MANDIR=%p/share/man
<<
InstallScript: <<
make -e install prefix=%i exec_prefix=%i MANDIR=%i/share/man
rm -f %i/share/man/whatis.db
cd %i && rm -rf man
cd %i && rm -rf share/manf share/man/cat*
<<
DocFiles: COPYRIGHT CUSTOMIZE ORIGIN README RELEASE_NOTES
SplitOff: <<
Package: %N-dev
Depends: %N (>= %v-%r)
BuildDependsOnly: true
Conflicts: %N2-dev
Replaces: %N (<< 1.12.11-2), %N2-dev
Files: include lib share/man/man3
DocFiles: COPYRIGHT CUSTOMIZE ORIGIN README RELEASE_NOTES
<<
Description: Manipulation units of physical quantities
DescPackaging: <<
Maintained by Jeffrey Whitaker through 1.12.3
Builds static-only lib.
Ok to ignore lots of catman msgs during build (nuke possibly-
created dirs later also)...difficult to disable this mess!
Have to force various paths many different ways:(
<<
License: OSI-Approved
Homepage: http://www.unidata.ucar.edu/packages/udunits/
diff -Nurd -x'*~' udunits-1.12.4.orig/src/configure udunits-1.12.4/src/configure
--- udunits-1.12.4.orig/src/configure 2004-10-14 20:05:01.000000000 -0400
+++ udunits-1.12.4/src/configure 2007-11-19 23:45:34.000000000 -0500
@@ -4006,6 +4006,12 @@
*) LD_UDPORT="-R$udportdir -L$udportdir -ludport";;
esac
;;
+ darwin*)
+ case "$udportdir" in
+ '') LD_UDPORT="-ludport";;
+ *) LD_UDPORT="$udportdir/libudport.a";;
+ esac
+ ;;
*)
case "$udportdir" in
'') LD_UDPORT="-ludport";;
@@ -4197,6 +4203,12 @@
*) LD_UDUNITS="-R$libdir -L$libdir -ludunits";;
esac
;;
+ darwin*)
+ case "$libdir" in
+ '') LD_UDUNITS="-ludunits";;
+ *) LD_UDUNITS="$libdir/libudunits.a";;
+ esac
+ ;;
*)
case "$libdir" in
'') LD_UDUNITS="-ludunits";;