Files
macports-ports/graphics/exiftran/files/patch-jpeg-version.diff
Ryan Schmidt 7d57f8938b exiftran: Add pkgconfig and libpixman dependencies
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
2017-09-29 10:41:17 -05:00

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}'