The patch file
diff -Naur ncl_ncarg-6.1.0-beta.orig/common/src/fontcap/yMakefile ncl_ncarg-6.1.0-beta/common/src/fontcap/yMakefile
--- ncl_ncarg-6.1.0-beta.orig/common/src/fontcap/yMakefile 2012-05-29 03:35:49.000000000 +0800
+++ ncl_ncarg-6.1.0-beta/common/src/fontcap/yMakefile 2012-05-31 10:44:43.004246702 +0800
@@ -43,7 +43,7 @@
# Rule for processing fontcaps
.SUFFIXES: .fc
-.fc:
+.fc: $(FONTC)
@echo " Processing fontcap $@"
@$(FONTC) $< $@
diff -Naur ncl_ncarg-6.1.0-beta.orig/config/LINUX ncl_ncarg-6.1.0-beta/config/LINUX
--- ncl_ncarg-6.1.0-beta.orig/config/LINUX 2012-05-29 03:35:50.000000000 +0800
+++ ncl_ncarg-6.1.0-beta/config/LINUX 2012-05-31 10:51:14.667560316 +0800
@@ -22,7 +22,7 @@
#define FCompiler gfortran
#define CtoFLibraries -lgfortran -lm
#define CcOptions -ansi -fPIC
-#define FcOptions -fPIC -fno-second-underscore
+#define FcOptions -fPIC -fno-second-underscore -fno-range-check
#define XToolLibrary -lXt -lSM -lICE
#define BuildShared NO
#define XLibrary -lX11 -lXext
diff -Naur ncl_ncarg-6.1.0-beta.orig/ncarg2d/src/libncarg/ezmap/mapngb.c ncl_ncarg-6.1.0-beta/ncarg2d/src/libncarg/ezmap/mapngb.c
--- ncl_ncarg-6.1.0-beta.orig/ncarg2d/src/libncarg/ezmap/mapngb.c 2012-05-29 03:34:48.000000000 +0800
+++ ncl_ncarg-6.1.0-beta/ncarg2d/src/libncarg/ezmap/mapngb.c 2012-05-31 10:44:43.004246702 +0800
@@ -1,6 +1,7 @@
/*
* C routines needed to read a PNG file.
*/
+#define int_p_NULL (int*)NULL
#include <math.h>
#include <ncarg/c.h>
diff -Naur ncl_ncarg-6.1.0-beta.orig/ncarview/src/lib/libncarg_ras/hdf.c ncl_ncarg-6.1.0-beta/ncarview/src/lib/libncarg_ras/hdf.c
--- ncl_ncarg-6.1.0-beta.orig/ncarview/src/lib/libncarg_ras/hdf.c 2012-05-29 03:36:41.000000000 +0800
+++ ncl_ncarg-6.1.0-beta/ncarview/src/lib/libncarg_ras/hdf.c 2012-05-31 10:44:43.004246702 +0800
@@ -51,9 +51,9 @@
#include <fcntl.h>
#include <string.h>
#include <ncarg/c.h>
-#include <hdf/hdf.h>
-#include <hdf/df.h>
-#include <hdf/dfgr.h>
+#include <hdf.h>
+#include <df.h>
+#include <dfgr.h>
#include "ncarg_ras.h"
#include "hdfP.h"
#include "options.h"
diff -Naur ncl_ncarg-6.1.0-beta.orig/ni/src/ncl/FileSupport.c ncl_ncarg-6.1.0-beta/ni/src/ncl/FileSupport.c
--- ncl_ncarg-6.1.0-beta.orig/ni/src/ncl/FileSupport.c 2012-05-29 03:35:57.000000000 +0800
+++ ncl_ncarg-6.1.0-beta/ni/src/ncl/FileSupport.c 2012-05-31 10:47:30.557571599 +0800
@@ -38,7 +38,7 @@
#endif
#ifdef BuildHDF4
-#include <hdf/mfhdf.h>
+#include <mfhdf.h>
#endif
#ifdef BuildHDFEOS5
diff -Naur ncl_ncarg-6.1.0-beta.orig/ni/src/ncl/NclHDF.c ncl_ncarg-6.1.0-beta/ni/src/ncl/NclHDF.c
--- ncl_ncarg-6.1.0-beta.orig/ni/src/ncl/NclHDF.c 2012-05-29 03:35:57.000000000 +0800
+++ ncl_ncarg-6.1.0-beta/ni/src/ncl/NclHDF.c 2012-05-31 10:47:22.090905359 +0800
@@ -29,7 +29,7 @@
#endif
#include "defs.h"
#define HAVE_NETCDF
-#include <hdf/mfhdf.h>
+#include <mfhdf.h>
#include "NclData.h"
#include "NclFileInterfaces.h"
#include <math.h>
diff -Naur ncl_ncarg-6.1.0-beta.orig/ni/src/ncl/NclHDFEOS.c ncl_ncarg-6.1.0-beta/ni/src/ncl/NclHDFEOS.c
--- ncl_ncarg-6.1.0-beta.orig/ni/src/ncl/NclHDFEOS.c 2012-05-29 03:35:57.000000000 +0800
+++ ncl_ncarg-6.1.0-beta/ni/src/ncl/NclHDFEOS.c 2012-05-31 10:47:08.507572709 +0800
@@ -28,7 +28,7 @@
#endif
#include "defs.h"
#define HAVE_NETCDF
-#include <hdf/mfhdf.h>
+#include <mfhdf.h>
#include "NclDataDefs.h"
#include "NclFileInterfaces.h"
#include "NclData.h"
diff -Naur ncl_ncarg-6.1.0-beta.orig/ni/src/ncl/yMakefile ncl_ncarg-6.1.0-beta/ni/src/ncl/yMakefile
--- ncl_ncarg-6.1.0-beta.orig/ni/src/ncl/yMakefile 2012-05-29 03:35:57.000000000 +0800
+++ ncl_ncarg-6.1.0-beta/ni/src/ncl/yMakefile 2012-05-31 10:44:19.547581216 +0800
@@ -162,7 +162,7 @@
#elif defined(Darwin)
DODS_LIBS = -lnc-dap -ldap -ldapclient -lcurl -lxml2 -lpthread -lssl
#elif defined(linux)
-DODS_LIBS = -lnc-dap -ldap -ldapclient -lcurl -lrx -lxml2 -lpthread -lidn -ldl
+DODS_LIBS = -lcurl -lpthread
#else
DODS_LIBS = -lnc-dap -ldap -ldapclient -lcurl -lrx -lxml2 -lpthread -lssl
#endif
Search Criteria
Package Details: ncl 6.6.2-2
Package Actions
Git Clone URL: | https://aur.archlinux.org/ncl.git (read-only, click to copy) |
---|---|
Package Base: | ncl |
Description: | Ncar Command Language, is an interpreted language designed specifically for scientific data analysis and visualization |
Upstream URL: | http://www.ncl.ucar.edu |
Licenses: | Apache |
Provides: | ncl |
Submitter: | Xavier |
Maintainer: | Xavier |
Last Packager: | Xavier |
Votes: | 17 |
Popularity: | 0.000000 |
First Submitted: | 2010-09-24 16:46 (UTC) |
Last Updated: | 2021-06-04 01:16 (UTC) |
Dependencies (34)
- bzip2 (bzip2-gitAUR)
- cairo (cairo-gitAUR)
- expat (expat-gitAUR)
- flex (flex-gitAUR)
- fontconfig (fontconfig-gitAUR, fontconfig-ubuntuAUR)
- g2clibAUR (g2clibAUR)
- gdal (gdal-ecwAUR, gdal-hdf4AUR, gdal-libkml-filegdbAUR, gdal-libkmlAUR)
- glibc (glibc-gitAUR, glibc-linux4AUR, glibc-eacAUR, glibc-eac-binAUR, glibc-eac-rocoAUR)
- gsl (gsl-gitAUR)
- hdf4AUR
- hdf5 (hdf5-gitAUR, hdf5-openmpi)
- imake
- jasper (jasper-gitAUR)
- lesstifAUR
- libaec (libaec-gitAUR)
- libjpeg (mozjpeg-gitAUR, libjpeg-turbo-gitAUR, mozjpegAUR, libjpeg-turbo)
- libpng (libpng-apngAUR, libpng-gitAUR)
- libx11 (libx11-gitAUR)
- libxaw (xawmAUR)
- libxext (libxext-gitAUR)
- libxpm (libxpm-gitAUR)
- libxt
- netcdf (netcdf-openmpi)
- netcdf-fortran (netcdf-fortran-openmpi)
- pixman (pixman-gitAUR)
- tcsh (tcsh-gitAUR)
- triangleAUR
- udunitsAUR
- zlib (zlib-ng-compat-gitAUR, zlib-gitAUR, zlib-ng-compatAUR)
- byacc (make)
- gcc (gcc-gitAUR, gccrs-gitAUR, gcc11AUR, gcc-snapshotAUR) (make)
- gcc-fortran (gcc-fortran-gitAUR, gcc11-fortranAUR, gcc-fortran-snapshotAUR) (make)
- tcsh (tcsh-gitAUR) (make)
- ncl-highresAUR (ncl-highresAUR) (optional) – High-resolution coastlines (RANGS and GSHHS)
Required by (3)
- garli
- jaziku (optional)
- ncl-highres
Sources (15)
lijpbasin commented on 2012-05-31 04:06 (UTC)
lijpbasin commented on 2012-05-31 04:05 (UTC)
Hi, ncl-6.1.0-beta is released, I guess the package would not update until there is no '-beta' in the release name, but I do compiled it using the source code here with some additional modifications to make it pass.
Hope this would be of help to the next version of the package
Here's the changes:
Added -fno-range-check to gfortran compile flags (reflected in the patch file)
Adjusted some line numbers in the patch file, where the mfhdf.h was
Add openmotif to the makedepends as there were Xm/Xm.h ... warnings in make logs (don't know if the compilation to be incomplete without openmotif)
I also tried to add gcc include path in Site.local, but strangely all 'x86_64-unknown-linux-gnu' turned into '1-unknown-1-gnu' when make is done, haven't solved it, but it's not crucial
Xavier commented on 2012-05-15 19:32 (UTC)
Hi @lijpbasin, this is right, but you can do too overwrite variable thus: export NCARG_USRRESFILE=~/.hluresfile
and save this line, if you want, in ~/.basrc
lijpbasin commented on 2012-05-15 13:52 (UTC)
Add something like
unset NCARG_USRRESFILE
to your shell's rc file to use the ~/.hluresfile which can be modified more easily
Xavier commented on 2011-08-22 05:17 (UTC)
Hi guys,
I make a repository of my packages, this is easier than compile :)
http://code.google.com/p/epsilom-aur-repo/
[epsilom-aur-repo]
Server = http://epsilom-aur-repo.googlecode.com/files/
Xavier commented on 2011-05-23 04:54 (UTC)
add 'g2clib' 'gdal' to makedepends for compile complete
Xavier commented on 2010-11-18 17:27 (UTC)
fix for support cairo and png and some changes in hdf-eos 2 y 5.
now you can png export (i.e wks = gsn_open_wks(png,"plt_Precip") )
dsadcsadsadacasd commented on 2010-11-14 10:10 (UTC)
Really usefull, thanks!
Xavier commented on 2010-10-18 23:48 (UTC)
fix compile, dependencies and install, now work fine!!
Pinned Comments
Xavier commented on 2017-08-27 03:23 (UTC) (edited on 2021-06-04 01:22 (UTC) by Xavier)
If everything went well in the build, it generates the binary /usr/bin/ncl, else rebuild (not use repositories) these packages: g2clib, triangle, udunits, hdf4 (>=4.2.14-4), and try again. For fresh install run 'source /etc/profile' or relogin.