Commit 00a03274 authored by Lukáš Krupčík's avatar Lukáš Krupčík

Merge branch 'it4i-salomon'

parents f2ec94bb ed5f270b
# Patch Makefile so zlib provided by EasyBuild is picked up
# Authors:: Jack Perdue <j-perdue@tamu.edu> - TAMU HPRC - http://hprc.tamu.edu
--- Makefile.orig 2017-07-12 22:16:56.931252958 -0500
+++ Makefile 2017-07-12 22:25:34.472386094 -0500
@@ -1,12 +1,11 @@
-CC=cc
-CFLAGS=-O3 -Wall -Wextra
+ZLIB=-L$(EBROOTZLIB)/lib
LDFLAGS=
LIBS=-lm -lpthread -lz
ZOPFLI=zopfli/src/zopfli/
# use gcc and gmake on Solaris
pigz: pigz.o yarn.o try.o ${ZOPFLI}deflate.o ${ZOPFLI}blocksplitter.o ${ZOPFLI}tree.o ${ZOPFLI}lz77.o ${ZOPFLI}cache.o ${ZOPFLI}hash.o ${ZOPFLI}util.o ${ZOPFLI}squeeze.o ${ZOPFLI}katajainen.o
- $(CC) $(LDFLAGS) -o pigz $^ $(LIBS)
+ $(CC) $(LDFLAGS) -o pigz $^ $(ZLIB) $(LIBS)
ln -f pigz unpigz
pigz.o: pigz.c yarn.h try.h ${ZOPFLI}deflate.h ${ZOPFLI}util.h
easyblock = 'MakeCp'
name = 'pigz'
version = '2.4'
homepage = 'http://zlib.net/pigz/'
description = """
pigz, which stands for parallel implementation of gzip, is a fully
functional replacement for gzip that exploits multiple processors and multiple
cores to the hilt when compressing data. pigz was written by Mark Adler, and
uses the zlib and pthread libraries.
"""
toolchain = {'name': 'GCC', 'version': '6.3.0-2.27'}
source_urls = ['http://zlib.net/pigz/']
sources = [SOURCE_TAR_GZ]
# Patch Makefile so zlib provided by EasyBuild is picked up
patches = ['%(name)s-%(version)s_Makefile.patch']
builddependencies = [
('binutils', '2.27'),
]
dependencies = [
('zlib', '1.2.11', '', True),
]
parallel = 1
files_to_copy = [(["pigz", "unpigz"], "bin")]
sanity_check_paths = {
'files': ['bin/pigz', 'bin/unpigz'],
'dirs': [],
}
moduleclass = 'tools'
--- Makefile.orig 2017-12-27 01:35:01.000000000 +0100
+++ Makefile 2018-02-12 11:02:29.189027856 +0100
@@ -1,7 +1,7 @@
CC=gcc
CFLAGS=-O3 -Wall -Wextra -Wno-unknown-pragmas
LDFLAGS=
-LIBS=-lm -lpthread -lz
+LIBS=-lm -lpthread -lz -L${EBROOTZLIB}/lib
ZOPFLI=zopfli/src/zopfli/
ZOP=deflate.o blocksplitter.o tree.o lz77.o cache.o hash.o util.o squeeze.o katajainen.o
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment