gnu: bitshuffle-for-snappy: Simplify.
* gnu/packages/compression.scm (bitshuffle-for-snappy)[arguments]: Simplify Makefile generation.
This commit is contained in:
parent
b8e2af9a05
commit
04e91134af
|
@ -1098,26 +1098,27 @@ for most inputs, but the resulting compressed files are anywhere from 20% to
|
||||||
(lambda* (#:key outputs #:allow-other-keys)
|
(lambda* (#:key outputs #:allow-other-keys)
|
||||||
(with-output-to-file "Makefile"
|
(with-output-to-file "Makefile"
|
||||||
(lambda _
|
(lambda _
|
||||||
(display
|
(format #t "\
|
||||||
(string-append
|
libbitshuffle.so: src/bitshuffle.o src/bitshuffle_core.o src/iochain.o lz4/lz4.o
|
||||||
"libbitshuffle.so: src/bitshuffle.o src/bitshuffle_core.o "
|
\tgcc -O3 -ffast-math -std=c99 -o $@ -shared -fPIC $^
|
||||||
"src/iochain.o lz4/lz4.o\n"
|
|
||||||
"\tgcc -O3 -ffast-math -std=c99 -o $@ -shared -fPIC $^\n"
|
%.o: %.c
|
||||||
"\n"
|
\tgcc -O3 -ffast-math -std=c99 -fPIC -Isrc -Ilz4 -c $< -o $@
|
||||||
"%.o: %.c\n"
|
|
||||||
"\tgcc -O3 -ffast-math -std=c99 -fPIC -Isrc -Ilz4 -c $< -o $@\n"
|
PREFIX:=~a
|
||||||
"\n"
|
LIBDIR:=$(PREFIX)/lib
|
||||||
"PREFIX:=" (assoc-ref outputs "out") "\n"
|
INCLUDEDIR:=$(PREFIX)/include
|
||||||
"LIBDIR:=$(PREFIX)/lib\n"
|
|
||||||
"INCLUDEDIR:=$(PREFIX)/include\n"
|
install: libbitshuffle.so
|
||||||
"install: libbitshuffle.so\n"
|
\tinstall -dm755 $(LIBDIR)
|
||||||
"\tinstall -dm755 $(LIBDIR)\n"
|
\tinstall -dm755 $(INCLUDEDIR)
|
||||||
"\tinstall -dm755 $(INCLUDEDIR)\n"
|
\tinstall -m755 libbitshuffle.so $(LIBDIR)
|
||||||
"\tinstall -m755 libbitshuffle.so $(LIBDIR)\n"
|
\tinstall -m644 src/bitshuffle.h $(INCLUDEDIR)
|
||||||
"\tinstall -m644 src/bitshuffle.h $(INCLUDEDIR)\n"
|
\tinstall -m644 src/bitshuffle_core.h $(INCLUDEDIR)
|
||||||
"\tinstall -m644 src/bitshuffle_core.h $(INCLUDEDIR)\n"
|
\tinstall -m644 src/iochain.h $(INCLUDEDIR)
|
||||||
"\tinstall -m644 src/iochain.h $(INCLUDEDIR)\n"
|
\tinstall -m644 lz4/lz4.h $(INCLUDEDIR)
|
||||||
"\tinstall -m644 lz4/lz4.h $(INCLUDEDIR)\n")))))))))
|
" (assoc-ref outputs "out"))))
|
||||||
|
#t)))))
|
||||||
(inputs '())
|
(inputs '())
|
||||||
(native-inputs '())))
|
(native-inputs '())))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue