]> Pileus Git - ~andy/sunrise/blobdiff - sci-libs/rsl/files/rsl-automake.patch
sci-libs/rsl: Update to RSL 1.43
[~andy/sunrise] / sci-libs / rsl / files / rsl-automake.patch
index 270873a6b3a2123456ebb537bfd28ab79308040b..675eca15708d2e2d5a9bfecb9b758f46618cdad2 100644 (file)
@@ -1,22 +1,22 @@
-diff --git a/colors/Makefile.am b/colors/Makefile.am
-index 709a367..b043f7f 100644
+Update automake files
+
+* Avoid modifying source code at compile time
+* Avoid install-exec-hook
 --- a/colors/Makefile.am
 +++ b/colors/Makefile.am
 @@ -1,6 +1,6 @@
  AUTOMAKE_OPTIONS = foreign
  
 -colordir = $(prefix)/lib/colors
-+colordir = $(datadir)/rsl/colors
++colordir = $(datadir)/rsl1/colors
  color_DATA = *.???
  
  EXTRA_DIST = $(color_DATA)
-diff --git a/Makefile.am b/Makefile.am
-index 3c106a8..6aca2ec 100644
 --- a/Makefile.am
 +++ b/Makefile.am
-@@ -1,73 +1,49 @@
+@@ -1,72 +1,48 @@
  ## Process w/ automake.  Or, autoreconf; make ##
-+AM_CFLAGS = -DDATADIR="\"$(datadir)/rsl\""
++AM_CFLAGS = -DDATADIR="\"$(datadir)/rsl1\""
  AUTOMAKE_OPTIONS = foreign
  SUBDIRS = . colors doc examples
  INCLUDES = -I. -I$(srcdir) -I$(prefix)/include -I$(prefix)/toolkit/include
@@ -26,12 +26,11 @@ index 3c106a8..6aca2ec 100644
 -
  lib_LTLIBRARIES = librsl.la
  
--librsl_la_LDFLAGS = -version-info 1:41
+-librsl_la_LDFLAGS = -version-info 1:43
 -librsl_la_SOURCES = \
 -$(rapic_c) $(radtec_c)\
 -dorade.c dorade_print.c dorade_to_radar.c\
 -lassen.c lassen_to_radar.c \
--edge_to_radar.c \
 - radar.c volume.c image_gen.c cappi.c fraction.c read_write.c farea.c \
 - range.c radar_to_uf.c uf_to_radar.c wsr88d_to_radar.c \
 - carpi.c cube.c sort_rays.c toga_to_radar.c gts.c histogram.c \
@@ -44,7 +43,7 @@ index 3c106a8..6aca2ec 100644
 - radar_to_hdf_1.c rainbow.c rainbow_to_radar.c $(headers)
 -
 -librsl_la_DEPENDENCIES = $(build_headers)
-+wsr88ddir = $(datadir)/rsl/
++wsr88ddir = $(datadir)/rsl1/
 +dist_wsr88d_DATA = wsr88d_locations.dat
  
 -build_headers = rsl.h wsr88d.h toolkit_1BC-51_appl.h
@@ -57,12 +56,11 @@ index 3c106a8..6aca2ec 100644
 +          wsr88d.h \
 +        $(include_HEADERS)
 +
-+librsl_la_LDFLAGS = -version-info 1:41
++librsl_la_LDFLAGS = -version-info 1:43
 +librsl_la_SOURCES = \
 +    $(rapic_c) $(radtec_c) \
 +    dorade.c dorade_print.c dorade_to_radar.c \
 +    lassen.c lassen_to_radar.c \
-+    edge_to_radar.c \
 +    radar.c volume.c image_gen.c cappi.c fraction.c read_write.c farea.c \
 +    range.c radar_to_uf.c uf_to_radar.c wsr88d_to_radar.c \
 +    carpi.c cube.c sort_rays.c toga_to_radar.c gts.c histogram.c \
@@ -112,8 +110,6 @@ index 3c106a8..6aca2ec 100644
  EXTRA_DIST = CHANGES Copyright GPL LGPL wsr88d_locations.dat rapic.h
  
  DISTCLEANFILES = rapic.c rapic-lex.c
-diff --git a/radar.c b/radar.c
-index 4078f17..7c07d01 100644
 --- a/radar.c
 +++ b/radar.c
 @@ -60,7 +60,7 @@
@@ -125,8 +121,6 @@ index 4078f17..7c07d01 100644
  }
  
  /* Debug printing global variable: radar_verbose_flag */
-diff --git a/radar_to_uf.c b/radar_to_uf.c
-index 0d3af56..53d2d8d 100644
 --- a/radar_to_uf.c
 +++ b/radar_to_uf.c
 @@ -321,7 +321,7 @@ void RSL_radar_to_uf_fp(Radar *r, FILE *fp)
@@ -138,8 +132,6 @@ index 0d3af56..53d2d8d 100644
          if (little_endian()) swap2(&uf_ma[40], 8/2);
          uf_ma[44] = (signed short)UF_NO_DATA;
          len_ma = 45;
-diff --git a/read_write.c b/read_write.c
-index 644a7b2..1e5f319 100644
 --- a/read_write.c
 +++ b/read_write.c
 @@ -314,7 +314,7 @@ int RSL_write_radar_fp(Radar *radar, FILE *fp)
@@ -151,15 +143,13 @@ index 644a7b2..1e5f319 100644
    n += fwrite(title, sizeof(char), sizeof(title), fp);
    
    memset(header_buf, 0, sizeof(header_buf));
-diff --git a/rsl.h b/rsl.h
-index a821765..597069c 100644
 --- a/rsl.h
 +++ b/rsl.h
 @@ -27,8 +27,6 @@
  #include "config.h"
  #endif
  
--#define RSL_VERSION_STR "v1.41"
+-#define RSL_VERSION_STR "v1.43"
 -
  /**********************************************************************/
  /* Configure: Define USE_TWO_BYTE_PRECISION to have RSL store internal*/
@@ -168,7 +158,7 @@ index a821765..597069c 100644
  /*            so you shouldn't have to modify anything here.          */
  /**********************************************************************/
  #ifndef COLORDIR
--#define COLORDIR "/usr/local/trmm/GVBOX/lib/colors"
+-#define COLORDIR "/usr/local/trmm/lib/colors"
 +#define COLORDIR DATADIR "/colors"
  #endif
  
@@ -204,21 +194,17 @@ index a821765..597069c 100644
  #define RAINFALL_RED_FILE   COLORDIR "/red_rainfall.clr"
  #define RAINFALL_GREEN_FILE COLORDIR "/grn_rainfall.clr"
  #define RAINFALL_BLUE_FILE  COLORDIR "/blu_rainfall.clr"
-diff --git a/wsr88d.h b/wsr88d.h
-index ecad620..7d22427 100644
 --- a/wsr88d.h
 +++ b/wsr88d.h
 @@ -7,7 +7,7 @@
   * The directory should be the same as the LIBDIR in the makefile.
   */
  #ifndef WSR88D_SITE_INFO_FILE
--#define WSR88D_SITE_INFO_FILE "/usr/local/trmm/GVBOX/lib/wsr88d_locations.dat"
+-#define WSR88D_SITE_INFO_FILE "/usr/local/trmm/lib/wsr88d_locations.dat"
 +#define WSR88D_SITE_INFO_FILE DATADIR "/wsr88d_locations.dat"
  #endif
  /*===============================================================*/
  typedef struct {
-diff --git a/doc/Makefile.am b/doc/Makefile.am
-index 6acc059..d4fc3fd 100644
 --- a/doc/Makefile.am
 +++ b/doc/Makefile.am
 @@ -1,12 +1,3 @@
@@ -235,6 +221,3 @@ index 6acc059..d4fc3fd 100644
 -      $(INSTALL) -m 444 ../README $(docdir)
 -      $(INSTALL) -m 444 ../CHANGES $(docdir)
 +dist_doc_DATA = *.html *.gif *.jpg *.fig ../README ../CHANGES
--- 
-1.7.3.4
-