ports/graphics/zphoto/files/patch-configure
Nuno Teixeira 06f249d2be graphics/zphoto: Fix build with graphics/imlib2 1.12.1
- Add license
- Pet portlint, portclippy, portfmt and Q/A check

Add minimal support to `pkg-config imlib2`; imlib2-config has been
dropped since imlib2-1.7.5.

PR:		276430
2024-01-18 21:55:03 +00:00

27 lines
696 B
Text

Add minimal support to `pkg-config imlib2`; imlib2-config has been
dropped since imlib2-1.7.5.
--- configure.orig 2004-07-20 16:49:27 UTC
+++ configure
@@ -4494,7 +4494,7 @@ EOF
SWFMovie_save(movie, "foo"); /* 0.2a API */
}
EOF
-if $CC -c tmp.c > /dev/null 2>&1; then
+if $CC -c $CFLAGS $CPPFLAGS tmp.c > /dev/null 2>&1; then
cat >>confdefs.h <<_ACEOF
#define MING_0_2a 1
@@ -4867,6 +4867,12 @@ IMLIB2CONFIG=$ac_cv_path_IMLIB2CONFIG
esac
fi
IMLIB2CONFIG=$ac_cv_path_IMLIB2CONFIG
+
+if test -z "$IMLIB2CONFIG"; then
+ if pkg-config imlib2; then
+ IMLIB2CONFIG="pkg-config imlib2"
+ fi
+fi
if test -n "$IMLIB2CONFIG"; then
echo "$as_me:$LINENO: result: $IMLIB2CONFIG" >&5