the Fink project is an effort to port
popular Unix programs to Mac OS X
Package: libdap10
Version: 3.10.2
Revision: 1
BuildDependsOnly: true
GCC: 4.0
Description: DAP 2.0 C++ SDK
License: LGPL
Maintainer: Alexander Hansen
Depends: %N-shlibs (= %v-%r), pkgconfig
BuildDepends: libcurl4 (>= 7.19.3-2), libxml2, libiconv-dev, fink-package-precedence
Conflicts: aplus-fsf-dev, libdap9, libdap11
Replaces: aplus-fsf-dev, libdap9, libdap11
# Unpack Phase:
Source: http://www.opendap.org/pub/source/libdap-%v.tar.gz
Source-MD5: 4367f3266f20479a68d9fdaeaa001af8
# Patch Phase:
PatchFile: %n.patch
PatchFile-MD5: 479e22eb4a63eec9235a3b1feab4cc36
PatchScript: sed -e 's,@FINKPREFIX@,%p', -e 's,@DAPVERS@,10,' %{PatchFile} | patch -p1
# Compile Phase
SetLDFLAGS: -Wl,-dead_strip_dylibs
ConfigureParams: --libdir=%p/opt/%N/lib --includedir=%p/opt/%N/include
CompileScript: <<
#!/bin/sh -ev
./configure %c
# for some reason, the allow_undefined_flag doesn't get set right by configure.
perl -pi.BAK -e 's|-single_module |-single_module -undefined dynamic_lookup |' libtool
make
fink-package-precedence .
<<
# Install Phase:
DocFiles: COPYING COPYRIGHT_* README README.* NEWS
InstallScript: <<
make install DESTDIR=%d
<<
SplitOff: <<
Package: %N-shlibs
Files: opt/%N/lib/libdap*.*.dylib
Depends: libcurl4-shlibs (>= 7.19.3-2), libxml2-shlibs
Shlibs: <<
%p/opt/%N/lib/libdap.10.dylib 13.0.0 %n (>= 3.10.2-1)
%p/opt/%N/lib/libdapclient.3.dylib 5.0.0 %n (>= 3.10.2-1)
%p/opt/%N/lib/libdapserver.7.dylib 9.0.0 %n (>= 3.10.2-1)
<<
DocFiles: COPYING COPYRIGHT_* README README.* NEWS
<<
DescDetail: <<
A C++ SDK which contains an implementation of DAP 2.0,
Client- and Server-side support classes and a prototype
implementation of the AIS.
<<
DescPackaging: <<
Patch dap-config.in and dap-config-pkgconfig so that they actually point
dependent packages to the actual include directory and lib directory, and
.pc file, respectively.
<<
Homepage: http://www.opendap.org/download/libdap
diff -Naur libdap-3.10.2/dap-config-pkgconfig libdap-3.10.2.patched/dap-config-pkgconfig
--- libdap-3.10.2/dap-config-pkgconfig 2010-05-17 14:28:40.000000000 -0400
+++ libdap-3.10.2.patched/dap-config-pkgconfig 2011-08-04 09:51:45.000000000 -0400
@@ -2,11 +2,11 @@
#
# Borrowed the idea for this script (and some code) from libcurl.
#
-
+export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:@FINKPREFIX@/opt/libdap@DAPVERS@/lib/pkgconfig
usage()
{
cat <
+Usage: dap-config-pkgconfig [OPTION]
Available values for OPTION include:
diff -Naur libdap-3.10.2/dap-config.in libdap-3.10.2.patched/dap-config.in
--- libdap-3.10.2/dap-config.in 2010-05-17 14:28:40.000000000 -0400
+++ libdap-3.10.2.patched/dap-config.in 2011-08-04 09:51:38.000000000 -0400
@@ -4,8 +4,9 @@
#
prefix=@prefix@
exec_prefix=${prefix}
-libdir=${exec_prefix}/lib
-includedir=${prefix}/include
+dapdir=@FINKPREFIX@/opt/libdap@DAPVERS@
+libdir=${dapdir}/lib
+includedir=${dapdir}/include
usage()
{