2011-05-26 08:47:53 -04:00
|
|
|
$OpenBSD: patch-configure,v 1.7 2011/05/26 12:47:53 dcoppa Exp $
|
2009-10-31 08:26:25 -04:00
|
|
|
|
|
|
|
don't check for libgpod 0.6.x: it's not in our ports tree
|
|
|
|
|
2011-04-28 07:47:48 -04:00
|
|
|
--- configure.orig Tue Apr 26 15:08:48 2011
|
|
|
|
+++ configure Tue Apr 26 15:10:54 2011
|
|
|
|
@@ -620,8 +620,6 @@ GPOD_CFLAGS
|
2009-10-31 08:26:25 -04:00
|
|
|
GPOD07_LIBS
|
|
|
|
GPOD07_CFLAGS
|
|
|
|
GPOD_DEFINES
|
|
|
|
-GPOD06_LIBS
|
|
|
|
-GPOD06_CFLAGS
|
|
|
|
NOTIFY_DEFINES
|
2011-04-28 07:47:48 -04:00
|
|
|
LIBNOTIFY_07_LIBS
|
|
|
|
LIBNOTIFY_07_CFLAGS
|
|
|
|
@@ -866,8 +864,6 @@ NOTIFY_CFLAGS
|
2009-10-31 08:26:25 -04:00
|
|
|
NOTIFY_LIBS
|
2011-04-28 07:47:48 -04:00
|
|
|
LIBNOTIFY_07_CFLAGS
|
|
|
|
LIBNOTIFY_07_LIBS
|
2009-10-31 08:26:25 -04:00
|
|
|
-GPOD06_CFLAGS
|
|
|
|
-GPOD06_LIBS
|
|
|
|
GPOD07_CFLAGS
|
|
|
|
GPOD07_LIBS
|
|
|
|
MUSICBRAINZ_CFLAGS
|
2011-04-28 07:47:48 -04:00
|
|
|
@@ -1597,9 +1593,6 @@ Some influential environment variables:
|
|
|
|
C compiler flags for LIBNOTIFY_07, overriding pkg-config
|
|
|
|
LIBNOTIFY_07_LIBS
|
|
|
|
linker flags for LIBNOTIFY_07, overriding pkg-config
|
2009-10-31 08:26:25 -04:00
|
|
|
- GPOD06_CFLAGS
|
|
|
|
- C compiler flags for GPOD06, overriding pkg-config
|
|
|
|
- GPOD06_LIBS linker flags for GPOD06, overriding pkg-config
|
|
|
|
GPOD07_CFLAGS
|
|
|
|
C compiler flags for GPOD07, overriding pkg-config
|
|
|
|
GPOD07_LIBS linker flags for GPOD07, overriding pkg-config
|
2011-04-28 07:47:48 -04:00
|
|
|
@@ -8926,86 +8919,6 @@ fi
|
2010-11-08 10:04:15 -05:00
|
|
|
if test "x$with_libgpod" != xno; then :
|
2009-10-31 08:26:25 -04:00
|
|
|
|
|
|
|
pkg_failed=no
|
2010-11-08 10:04:15 -05:00
|
|
|
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GPOD06" >&5
|
2009-10-31 08:26:25 -04:00
|
|
|
-$as_echo_n "checking for GPOD06... " >&6; }
|
|
|
|
-
|
|
|
|
-if test -n "$GPOD06_CFLAGS"; then
|
|
|
|
- pkg_cv_GPOD06_CFLAGS="$GPOD06_CFLAGS"
|
|
|
|
- elif test -n "$PKG_CONFIG"; then
|
|
|
|
- if test -n "$PKG_CONFIG" && \
|
2010-11-08 10:04:15 -05:00
|
|
|
- { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgpod-1.0 <= 0.6.0\""; } >&5
|
2009-10-31 08:26:25 -04:00
|
|
|
- ($PKG_CONFIG --exists --print-errors "libgpod-1.0 <= 0.6.0") 2>&5
|
|
|
|
- ac_status=$?
|
2010-11-08 10:04:15 -05:00
|
|
|
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
|
|
|
- test $ac_status = 0; }; then
|
2009-10-31 08:26:25 -04:00
|
|
|
- pkg_cv_GPOD06_CFLAGS=`$PKG_CONFIG --cflags "libgpod-1.0 <= 0.6.0" 2>/dev/null`
|
|
|
|
-else
|
|
|
|
- pkg_failed=yes
|
|
|
|
-fi
|
|
|
|
- else
|
|
|
|
- pkg_failed=untried
|
|
|
|
-fi
|
|
|
|
-if test -n "$GPOD06_LIBS"; then
|
|
|
|
- pkg_cv_GPOD06_LIBS="$GPOD06_LIBS"
|
|
|
|
- elif test -n "$PKG_CONFIG"; then
|
|
|
|
- if test -n "$PKG_CONFIG" && \
|
2010-11-08 10:04:15 -05:00
|
|
|
- { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgpod-1.0 <= 0.6.0\""; } >&5
|
2009-10-31 08:26:25 -04:00
|
|
|
- ($PKG_CONFIG --exists --print-errors "libgpod-1.0 <= 0.6.0") 2>&5
|
|
|
|
- ac_status=$?
|
2010-11-08 10:04:15 -05:00
|
|
|
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
|
|
|
- test $ac_status = 0; }; then
|
2009-10-31 08:26:25 -04:00
|
|
|
- pkg_cv_GPOD06_LIBS=`$PKG_CONFIG --libs "libgpod-1.0 <= 0.6.0" 2>/dev/null`
|
|
|
|
-else
|
|
|
|
- pkg_failed=yes
|
|
|
|
-fi
|
|
|
|
- else
|
|
|
|
- pkg_failed=untried
|
|
|
|
-fi
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-if test $pkg_failed = yes; then
|
2011-04-28 07:47:48 -04:00
|
|
|
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
|
|
-$as_echo "no" >&6; }
|
2009-10-31 08:26:25 -04:00
|
|
|
-
|
|
|
|
-if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
|
|
|
|
- _pkg_short_errors_supported=yes
|
|
|
|
-else
|
|
|
|
- _pkg_short_errors_supported=no
|
|
|
|
-fi
|
|
|
|
- if test $_pkg_short_errors_supported = yes; then
|
|
|
|
- GPOD06_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgpod-1.0 <= 0.6.0" 2>&1`
|
|
|
|
- else
|
|
|
|
- GPOD06_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgpod-1.0 <= 0.6.0" 2>&1`
|
|
|
|
- fi
|
|
|
|
- # Put the nasty error message in config.log where it belongs
|
|
|
|
- echo "$GPOD06_PKG_ERRORS" >&5
|
|
|
|
-
|
2011-04-28 07:47:48 -04:00
|
|
|
- { $as_echo "$as_me:${as_lineno-$LINENO}: Compiling without libgpod 0.6.0 support" >&5
|
|
|
|
-$as_echo "$as_me: Compiling without libgpod 0.6.0 support" >&6;}
|
2009-10-31 08:26:25 -04:00
|
|
|
-elif test $pkg_failed = untried; then
|
2011-04-28 07:47:48 -04:00
|
|
|
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
|
|
-$as_echo "no" >&6; }
|
|
|
|
- { $as_echo "$as_me:${as_lineno-$LINENO}: Compiling without libgpod 0.6.0 support" >&5
|
|
|
|
-$as_echo "$as_me: Compiling without libgpod 0.6.0 support" >&6;}
|
2009-10-31 08:26:25 -04:00
|
|
|
-else
|
|
|
|
- GPOD06_CFLAGS=$pkg_cv_GPOD06_CFLAGS
|
|
|
|
- GPOD06_LIBS=$pkg_cv_GPOD06_LIBS
|
2010-11-08 10:04:15 -05:00
|
|
|
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
2009-10-31 08:26:25 -04:00
|
|
|
-$as_echo "yes" >&6; }
|
|
|
|
- GPOD_DEFINES="-DHAVE_GPOD -DGPOD_06"
|
2010-11-08 10:04:15 -05:00
|
|
|
-$as_echo "#define GPOD_ENABLED 1" >>confdefs.h
|
2009-10-31 08:26:25 -04:00
|
|
|
-
|
|
|
|
-fi
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-fi
|
|
|
|
-
|
2010-11-08 10:04:15 -05:00
|
|
|
-if test "x$with_libgpod" != xno; then :
|
2009-10-31 08:26:25 -04:00
|
|
|
-
|
|
|
|
-pkg_failed=no
|
2010-11-08 10:04:15 -05:00
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GPOD07" >&5
|
2009-10-31 08:26:25 -04:00
|
|
|
$as_echo_n "checking for GPOD07... " >&6; }
|
|
|
|
|
2011-04-28 07:47:48 -04:00
|
|
|
@@ -9083,8 +8996,8 @@ fi
|
2009-10-31 08:26:25 -04:00
|
|
|
|
2010-11-08 10:04:15 -05:00
|
|
|
fi
|
2009-10-31 08:26:25 -04:00
|
|
|
|
|
|
|
-GPOD_CFLAGS="$GPOD06_CFLAGS $GPOD07_CFLAGS"
|
|
|
|
-GPOD_LIBS="$GPOD06_LIBS $GPOD07_LIBS"
|
|
|
|
+GPOD_CFLAGS="$GPOD07_CFLAGS"
|
|
|
|
+GPOD_LIBS="$GPOD07_LIBS"
|
|
|
|
|
|
|
|
|
|
|
|
|