mirror of
https://github.com/macports/macports-ports.git
synced 2026-07-12 18:20:25 -07:00
Also make scripts/jpeg-version.sh more robust: - Provide a default value for $CC - Use CPPFLAGS instead of CFLAGS - Get the last nonblank line of cpp output
7 lines
319 B
Diff
7 lines
319 B
Diff
--- scripts/jpeg-version.sh 2017-09-28 17:09:18.000000000 +0200
|
|
+++ scripts/jpeg-version.sh 2017-09-28 17:10:15.000000000 +0200
|
|
@@ -1,2 +1,2 @@
|
|
#!/bin/sh
|
|
-echo JPEG_LIB_VERSION | cpp $CFLAGS -include jpeglib.h | tail -1
|
|
+echo JPEG_LIB_VERSION | ${CC-cc} -E $CPPFLAGS -include jpeglib.h - | awk 'NF{p=$0} END{print p}'
|