Pierre-Yves Barriat %!s(int64=5) %!d(string=hai) anos
pai
achega
26ce7aa18f

+ 27 - 0
foss-2018b/FANN-2.2.0-GCCcore-7.3.0.eb

@@ -0,0 +1,27 @@
+easyblock = 'CMakeMake'
+
+name = 'FANN'
+version = '2.2.0'
+
+homepage = 'http://leenissen.dk'
+description = """Fast Artificial Neural Network Library is a free open source neural network library,
+ which implements multilayer artificial neural networks in C with support for both fully connected
+ and sparsely connected networks."""
+
+toolchain = {'name': 'GCCcore', 'version': '7.3.0'}
+
+source_urls = ['https://github.com/lib%(namelower)s/%(namelower)s/archive']
+sources = ['%(version)s.tar.gz']
+checksums = ['f31c92c1589996f97d855939b37293478ac03d24b4e1c08ff21e0bd093449c3c']
+
+builddependencies = [
+    ('binutils', '2.30'),
+    ('CMake', '3.12.1'),
+]
+
+sanity_check_paths = {
+    'files': ['include/fann.h', 'lib/libfann.%s' % SHLIB_EXT],
+    'dirs': ['include', 'lib'],
+}
+
+moduleclass = 'lib'

+ 33 - 0
foss-2018b/libLAS-1.8.1-foss-2018b.eb

@@ -0,0 +1,33 @@
+easyblock = 'CMakeMake'
+
+name = 'libLAS'
+version = '1.8.1'
+
+homepage = 'https://liblas.org/'
+description = """libLAS is a C/C++ library for reading and writing the very common LAS LiDAR format.
+ The ASPRS LAS format is a sequential binary format used to store data from LiDAR sensors and by LiDAR 
+ processing software for data interchange and archival."""
+
+toolchain = {'name': 'foss', 'version': '2018b'}
+
+source_urls = ['https://github.com/libLAS/libLAS/archive/']
+sources = ['%(version)s.tar.gz']
+
+builddependencies = [('CMake', '3.12.1')]
+dependencies = [
+    ('Boost', '1.67.0'),
+    ('GDAL', '2.2.3', '-Python-2.7.15'),
+    ('libgeotiff', '1.4.2'),
+]
+
+separate_build_dir = True
+
+configopts = '-DCMAKE_BUILD_TYPE=Release -DWITH_GDAL=ON'
+configopts += '-DBUILD_SHARED_LIBS=ON -DCMAKE_CXX_FLAGS="-std=c++11 -pthread" -DCMAKE_EXE_LINKER_FLAGS="$LDFLAGS -lpthread"'
+
+sanity_check_paths = {
+    'files': ['bin/lasinfo', 'lib/liblas_c.so.2.4.0', 'lib/liblas.so.2.4.0'],
+    'dirs': [],
+}
+
+moduleclass = 'lib'

+ 34 - 0
foss-2018b/libgeotiff-1.4.2-foss-2018b.eb

@@ -0,0 +1,34 @@
+easyblock = 'ConfigureMake'
+
+name = 'libgeotiff'
+version = '1.4.2'
+
+homepage = 'https://directory.fsf.org/wiki/Libgeotiff'
+description = "Library for reading and writing coordinate system information from/to GeoTIFF files"
+
+toolchain = {'name': 'foss', 'version': '2018b'}
+
+source_urls = [
+    'http://download.osgeo.org/geotiff/libgeotiff/',
+    'ftp://ftp.remotesensing.org/pub/libgeotiff/',
+]
+
+sources = ['%(name)s-%(version)s.tar.gz']
+checksums = ['ad87048adb91167b07f34974a8e53e4ec356494c29f1748de95252e8f81a5e6e']
+
+dependencies = [
+    ('zlib', '1.2.11'),
+    ('LibTIFF', '4.0.9'),
+    ('PROJ', '5.1.0'),
+    ('libjpeg-turbo', '1.5.3'),
+]
+
+configopts = ' --with-libtiff=$EBROOTLIBTIFF --with-proj=$EBROOTPROJ --with-zlib=$EBROOTZLIB'
+configopts += ' --with-jpeg=$EBROOTLIBJPEGMINTURBO'
+
+sanity_check_paths = {
+    'files': ['bin/listgeo', 'lib/libgeotiff.a', 'lib/libgeotiff.%s' % SHLIB_EXT],
+    'dirs': ['include', 'share'],
+}
+
+moduleclass = 'lib'

+ 11 - 8
foss-2018b/pktools-2.6.7-foss-2018b.eb → foss-2018b/pktools-2.6.7.6-foss-2018b.eb

@@ -1,7 +1,7 @@
 easyblock = 'CMakeMake'
 
 name = 'pktools'
-version = '2.6.7'
+version = '2.6.7.6'
 
 homepage = 'http://pktools.nongnu.org/html/index.html'
 description = """pktools is a suite of utilities written in C++ for image processing with a focus on remote sensing applications. 
@@ -10,24 +10,27 @@ description = """pktools is a suite of utilities written in C++ for image proces
 toolchain = {'name': 'foss', 'version': '2018b'}
 
 source_urls = ['http://download.savannah.gnu.org/releases/pktools/']
-sources = [SOURCELOWER_TAR_GZ]
-checksums = ['15c3e8fb5bc92b1205e99a958daf5eec']
+sources = ['PKTOOLS-%(version)s.tar.gz']
+checksums = ['9ce79a225f3232fda91ef9df6ecd1f2b']
 
-builddependencies = [('CMake', '3.11.4')]
+builddependencies = [('CMake', '3.12.1')]
 dependencies = [
     ('GDAL', '2.2.3', '-Python-2.7.15'),
     ('GSL','2.5'),
     ('Armadillo', '8.400.0'),
-    #('OpenBLAS','0.3.1'),
+    ('FANN', '2.2.0'),
+    ('libLAS','1.8.1'),
+    ('ncurses','6.1'),
 ]
 
+#libfann-dev libfann-doc libgeotiff-epsg libalgorithms1 libfann2 libfileclasses1 libimageclasses1 liblas3 liblasclasses1
+
 separate_build_dir = True
 
-#configopts = '-DBUILD_WITH_LIBLAS=ON'
-#configopts += 'LIBLAS_LIBRARY="$EBROOTOPENBLAS" LIBLAS_INCLUDE_DIR="$EBROOTOPENBLAS/include" LIBLAS_C_LIBRARY="$EBROOTOPENBLAS/lib"'
+configopts = '-DBUILD_WITH_FANN=ON -DBUILD_WITH_LIBLAS=ON'
 
 sanity_check_paths = {
-    'files': ['bin/pktools-config', 'lib/libalgorithms.a', 'lib/libbase.a', 'lib/libfileClasses.a', 'lib/libimageClasses.a'],
+    'files': ['bin/pktools-config', 'OFF/libalgorithms.a', 'OFF/libbase.a', 'OFF/libfileClasses.a', 'OFF/libimageClasses.a'],
     'dirs': [],
 }