From 3b56eb5bad4b703deacb1f3c8f1523af261f4827 Mon Sep 17 00:00:00 2001 From: Orion Poplawski Date: Thu, 31 Mar 2011 12:34:54 -0600 Subject: [PATCH] Add netcdf-4.1.2-pkgconfig.patch --- netcdf-4.1.2-pkgconfig.patch | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 netcdf-4.1.2-pkgconfig.patch diff --git a/netcdf-4.1.2-pkgconfig.patch b/netcdf-4.1.2-pkgconfig.patch new file mode 100644 index 0000000..761bd5b --- /dev/null +++ b/netcdf-4.1.2-pkgconfig.patch @@ -0,0 +1,34 @@ +diff -up netcdf-4.1.2-beta2-snapshot2010120222/nc-config.in.pkgconfig netcdf-4.1.2-beta2-snapshot2010120222/nc-config.in +--- netcdf-4.1.2-beta2-snapshot2010120222/nc-config.in.pkgconfig 2010-12-02 22:20:11.000000000 -0700 ++++ netcdf-4.1.2-beta2-snapshot2010120222/nc-config.in 2010-12-03 10:02:30.598407327 -0700 +@@ -8,7 +8,6 @@ + + prefix=@prefix@ + exec_prefix=${prefix} +-libdir=${exec_prefix}/lib + includedir=${prefix}/include + + cc="@CC@" +@@ -16,8 +15,6 @@ cxx="@CXX@" + fc="@FC@" + cflags=" -I${includedir} @EXTERN_CPPFLAGS@" + fflags="@FFLAGS@ @MOD_FLAG@${includedir}" +-libs="-L${libdir} @NC_LIBS@ @EXTERN_LDFLAGS@" +-flibs="-L${libdir} @NC_FLIBS@" + has_dap="@HAS_DAP@" + has_nc2="@HAS_NC2@" + has_nc4="@HAS_NC4@" +@@ -141,11 +138,11 @@ while test $# -gt 0; do + ;; + + --libs) +- echo $libs ++ pkg-config netcdf --libs + ;; + + --flibs) +- echo $flibs ++ pkg-config netcdf --flibs + ;; + + --has-dap)