File liquidwar6-libpng16.patch of Package liquidwar6
diff -Naur liquidwar6-0.0.13beta.orig/configure liquidwar6-0.0.13beta/configure
--- liquidwar6-0.0.13beta.orig/configure 2011-12-23 22:11:05.000000000 +0100
+++ liquidwar6-0.0.13beta/configure 2013-06-23 22:49:41.804098144 +0200
@@ -14204,7 +14204,7 @@
LW6_CODENAME="Blackbeard"
-for ac_header in arpa/inet.h ctype.h dirent.h errno.h execinfo.h expat.h fcntl.h gmp.h GL/gl.h GL/glu.h iconv.h ifaddrs.h jpeglib.h langinfo.h libintl.h libpng12/png.h libpng13/png.h libpng14/png.h libpng15/png.h lmcons.h limits.h locale.h ltdl.h mach/vm_statistics.h mach/mach_types.h mach/mach_init.h mach/mach_host.h math.h netdb.h netinet/in.h omp.h pthread.h readline/history.h readline/readline.h SDL/SDL.h SDL/SDL_image.h SDL/SDL_mixer.h SDL/SDL_ttf.h signal.h stdarg.h stdio.h stdlib.h string.h syslog.h sys/select.h sys/signal.h sys/socket.h sys/stat.h sys/sysinfo.h sys/time.h sys/types.h sys/utsname.h time.h unistd.h winbase.h windows.h winsock2.h
+for ac_header in arpa/inet.h ctype.h dirent.h errno.h execinfo.h expat.h fcntl.h gmp.h GL/gl.h GL/glu.h iconv.h ifaddrs.h jpeglib.h langinfo.h libintl.h libpng12/png.h libpng13/png.h libpng14/png.h libpng15/png.h libpng16/png.h lmcons.h limits.h locale.h ltdl.h mach/vm_statistics.h mach/mach_types.h mach/mach_init.h mach/mach_host.h math.h netdb.h netinet/in.h omp.h pthread.h readline/history.h readline/readline.h SDL/SDL.h SDL/SDL_image.h SDL/SDL_mixer.h SDL/SDL_ttf.h signal.h stdarg.h stdio.h stdlib.h string.h syslog.h sys/select.h sys/signal.h sys/socket.h sys/stat.h sys/sysinfo.h sys/time.h sys/types.h sys/utsname.h time.h unistd.h winbase.h windows.h winsock2.h
do :
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
@@ -15574,7 +15574,13 @@
fi
-if test x${HAVE_LIBPNG12_PNG_H} = x1 || test x${HAVE_LIBPNG13_PNG_H} = x1 || test x${HAVE_LIBPNG14_PNG_H} = x1 || test x${HAVE_LIBPNG15_PNG_H} = x1; then
+ac_fn_c_check_header_mongrel "$LINENO" "libpng16/png.h" "ac_cv_header_libpng16_png_h" "$ac_includes_default"
+if test "x$ac_cv_header_libpng16_png_h" = xyes; then :
+ HAVE_LIBPNG15_PNG_H=1
+fi
+
+
+if test x${HAVE_LIBPNG12_PNG_H} = x1 || test x${HAVE_LIBPNG13_PNG_H} = x1 || test x${HAVE_LIBPNG14_PNG_H} = x1 || test x${HAVE_LIBPNG15_PNG_H} = x1 || test x${HAVE_LIBPNG16_PNG_H} = x1; then
if test x${HAVE_LIBPNG12_PNG_H} = x1; then
LIBPNG_1X_H=libpng12/png.h
fi
@@ -15587,9 +15593,12 @@
if test x${HAVE_LIBPNG15_PNG_H} = x1; then
LIBPNG_1X_H=libpng15/png.h
fi
+ if test x${HAVE_LIBPNG16_PNG_H} = x1; then
+ LIBPNG_1X_H=libpng16/png.h
+ fi
else
as_fn_error $? "
-*** Liquid War 6 needs libpng 1.2 1.3 1.4 or 1.5 (http://www.libpng.org/pub/png/libpng.html)
+*** Liquid War 6 needs libpng 1.2 1.3 1.4 1.5 or 1.6 (http://www.libpng.org/pub/png/libpng.html)
" "$LINENO" 5
fi
@@ -15634,7 +15643,7 @@
HAVE_LIBPNG=1
else
as_fn_error $? "
-*** Liquid War 6 needs libpng 1.2 1.3 1.4 or 1.5 (http://www.libpng.org/pub/png/libpng.html)
+*** Liquid War 6 needs libpng 1.2 1.3 1.4 1.5 or 1.6 (http://www.libpng.org/pub/png/libpng.html)
" "$LINENO" 5
fi
diff -Naur liquidwar6-0.0.13beta.orig/configure.ac liquidwar6-0.0.13beta/configure.ac
--- liquidwar6-0.0.13beta.orig/configure.ac 2011-12-23 22:09:58.000000000 +0100
+++ liquidwar6-0.0.13beta/configure.ac 2013-06-23 22:50:41.089565389 +0200
@@ -47,7 +47,7 @@
AC_SUBST(LW6_CODENAME)
dnl Headers, some are optional
-AC_CHECK_HEADERS(arpa/inet.h ctype.h dirent.h errno.h execinfo.h expat.h fcntl.h gmp.h GL/gl.h GL/glu.h iconv.h ifaddrs.h jpeglib.h langinfo.h libintl.h libpng12/png.h libpng13/png.h libpng14/png.h libpng15/png.h lmcons.h limits.h locale.h ltdl.h mach/vm_statistics.h mach/mach_types.h mach/mach_init.h mach/mach_host.h math.h netdb.h netinet/in.h omp.h pthread.h readline/history.h readline/readline.h SDL/SDL.h SDL/SDL_image.h SDL/SDL_mixer.h SDL/SDL_ttf.h signal.h stdarg.h stdio.h stdlib.h string.h syslog.h sys/select.h sys/signal.h sys/socket.h sys/stat.h sys/sysinfo.h sys/time.h sys/types.h sys/utsname.h time.h unistd.h winbase.h windows.h winsock2.h)
+AC_CHECK_HEADERS(arpa/inet.h ctype.h dirent.h errno.h execinfo.h expat.h fcntl.h gmp.h GL/gl.h GL/glu.h iconv.h ifaddrs.h jpeglib.h langinfo.h libintl.h libpng12/png.h libpng13/png.h libpng14/png.h libpng15/png.h libpng15/png.h lmcons.h limits.h locale.h ltdl.h mach/vm_statistics.h mach/mach_types.h mach/mach_init.h mach/mach_host.h math.h netdb.h netinet/in.h omp.h pthread.h readline/history.h readline/readline.h SDL/SDL.h SDL/SDL_image.h SDL/SDL_mixer.h SDL/SDL_ttf.h signal.h stdarg.h stdio.h stdlib.h string.h syslog.h sys/select.h sys/signal.h sys/socket.h sys/stat.h sys/sysinfo.h sys/time.h sys/types.h sys/utsname.h time.h unistd.h winbase.h windows.h winsock2.h)
AM_MISSING_PROG(PERL, perl, ${missing_dir})
AM_MISSING_PROG(AWK, awk, ${missing_dir})
@@ -319,7 +319,8 @@
AC_CHECK_HEADER(libpng13/png.h, HAVE_LIBPNG13_PNG_H=1)
AC_CHECK_HEADER(libpng14/png.h, HAVE_LIBPNG14_PNG_H=1)
AC_CHECK_HEADER(libpng15/png.h, HAVE_LIBPNG15_PNG_H=1)
-if test x${HAVE_LIBPNG12_PNG_H} = x1 || test x${HAVE_LIBPNG13_PNG_H} = x1 || test x${HAVE_LIBPNG14_PNG_H} = x1 || test x${HAVE_LIBPNG15_PNG_H} = x1; then
+AC_CHECK_HEADER(libpng16/png.h, HAVE_LIBPNG16_PNG_H=1)
+if test x${HAVE_LIBPNG12_PNG_H} = x1 || test x${HAVE_LIBPNG13_PNG_H} = x1 || test x${HAVE_LIBPNG14_PNG_H} = x1 || test x${HAVE_LIBPNG15_PNG_H} = x1 || test x${HAVE_LIBPNG16_PNG_H} = x1; then
if test x${HAVE_LIBPNG12_PNG_H} = x1; then
LIBPNG_1X_H=libpng12/png.h
fi
@@ -332,15 +333,18 @@
if test x${HAVE_LIBPNG15_PNG_H} = x1; then
LIBPNG_1X_H=libpng15/png.h
fi
+ if test x${HAVE_LIBPNG16_PNG_H} = x1; then
+ LIBPNG_1X_H=libpng16/png.h
+ fi
else
AC_MSG_ERROR([
-*** Liquid War 6 needs libpng 1.2 1.3 1.4 or 1.5 (http://www.libpng.org/pub/png/libpng.html)
+*** Liquid War 6 needs libpng 1.2 1.3 1.4 1.5 or 1.6 (http://www.libpng.org/pub/png/libpng.html)
])
fi
AC_SUBST(LIBPNG_1X_H)
AC_CHECK_LIB(png, png_sig_cmp, HAVE_LIBPNG=1, AC_MSG_ERROR([
-*** Liquid War 6 needs libpng 1.2 1.3 1.4 or 1.5 (http://www.libpng.org/pub/png/libpng.html)
+*** Liquid War 6 needs libpng 1.2 1.3 1.4 1.5 or 1.6 (http://www.libpng.org/pub/png/libpng.html)
]))
AC_CHECK_HEADER(jpeglib.h, HAVE_JPEGLIB_H=1, AC_MSG_ERROR([