diff --git a/archivers/pigz/Portfile b/archivers/pigz/Portfile
a
|
b
|
PortSystem 1.0 |
4 | 4 | |
5 | 5 | name pigz |
6 | 6 | version 2.1.6 |
| 7 | revision 1 |
7 | 8 | categories archivers |
8 | 9 | platforms darwin |
9 | 10 | maintainers gmail.com:danchr openmaintainer |
… |
… |
checksums md5 cbe9030c4be3 |
25 | 26 | patchfiles patch-Makefile |
26 | 27 | |
27 | 28 | use_configure no |
| 29 | depends_lib port:zlib |
28 | 30 | |
29 | 31 | build.target |
30 | | build.args CC=${configure.cc} |
| 32 | build.args CC="${configure.cc}" \ |
| 33 | CFLAGS="${configure.cc_archflags}" \ |
| 34 | CPPFLAGS="${configure.cppflags}" \ |
| 35 | LDFLAGS="${configure.ldflags}" |
| 36 | |
| 37 | variant universal { |
| 38 | build.args-append \ |
| 39 | CFLAGS="${configure.universal_cflags}" \ |
| 40 | LDFLAGS+="${configure.universal_ldflags}" |
| 41 | } |
31 | 42 | |
32 | 43 | destroot { |
33 | 44 | xinstall -m 644 ${worksrcpath}/${name}.1 ${destroot}${prefix}/share/man/man1 |
diff --git a/archivers/pigz/files/patch-Makefile b/archivers/pigz/files/patch-Makefile
a
|
b
|
|
5 | 5 | |
6 | 6 | pigz: pigz.o yarn.o |
7 | 7 | - cc -o pigz pigz.o yarn.o -lpthread -lz |
8 | | + $(CC) -o pigz pigz.o yarn.o -lpthread -lz |
| 8 | + $(CC) $(LDFLAGS) -o pigz pigz.o yarn.o -lpthread -lz |
9 | 9 | ln -f pigz unpigz |
10 | 10 | |
11 | 11 | pigz.o: pigz.c yarn.h |
… |
… |
|
14 | 14 | |
15 | 15 | pigzt: pigzt.o yarnt.o |
16 | 16 | - cc -o pigzt pigzt.o yarnt.o -lpthread -lz |
17 | | + $(CC) -o pigzt pigzt.o yarnt.o -lpthread -lz |
| 17 | + $(CC) $(LDFLAGS) -o pigzt pigzt.o yarnt.o -lpthread -lz |
18 | 18 | |
19 | 19 | pigzt.o: pigz.c yarn.h |
20 | 20 | - cc -Wall -O3 -DDEBUG -g -c -o pigzt.o pigz.c |
21 | | + $(CC) -Wall -O3 -DDEBUG -g -c -o pigzt.o pigz.c |
| 21 | + $(CC) $(CPPFLAGS) $(CFLAGS) -Wall -O3 -DDEBUG -g -c -o pigzt.o pigz.c |
22 | 22 | |
23 | 23 | yarnt.o: yarn.c yarn.h |
24 | 24 | - cc -Wall -O3 -DDEBUG -g -c -o yarnt.o yarn.c |
25 | | + $(CC) -Wall -O3 -DDEBUG -g -c -o yarnt.o yarn.c |
| 25 | + $(CC) $(CPPFLAGS) $(CFLAGS) -Wall -O3 -DDEBUG -g -c -o yarnt.o yarn.c |
26 | 26 | |
27 | 27 | pigzn: pigzn.o |
28 | 28 | - cc -o pigzn pigzn.o -lz |
29 | | + $(CC) -o pigzn pigzn.o -lz |
| 29 | + $(LDFLAGS) $(CPPFLAGS) $(CFLAGS) -o pigzn pigzn.o -lz |
30 | 30 | |
31 | 31 | pigzn.o: pigz.c |
32 | 32 | - cc -Wall -O3 -DDEBUG -DNOTHREAD -g -c -o pigzn.o pigz.c |
33 | | + $(CC) -Wall -O3 -DDEBUG -DNOTHREAD -g -c -o pigzn.o pigz.c |
| 33 | + $(CC) $(CPPFLAGS) $(CFLAGS) -Wall -O3 -DDEBUG -DNOTHREAD -g -c -o pigzn.o pigz.c |
34 | 34 | |
35 | 35 | test: pigz |
36 | 36 | ./pigz -kf pigz.c ; ./pigz -t pigz.c.gz |