File povray-3.6.1-wronglibdetect.patch of Package povray
Index: acinclude.m4
===================================================================
--- acinclude.m4.orig 2004-08-03 01:16:14.000000000 +0200
+++ acinclude.m4 2008-06-01 05:21:51.000000000 +0200
@@ -352,14 +352,15 @@ AC_DEFUN([POV_CHECK_LIB],
AC_RUN_IFELSE(
[
AC_LANG_SOURCE(
-[#include <stdio.h>
+[#define _GNU_SOURCE
+#include <stdio.h>
#include <string.h>
#include "$5"
int main (void)
{
const char *version = $6;
fprintf (stderr, "%s\n", version);
- return ! (strcmp (version ? version : "", "$2") >= 0);
+ return ! (strverscmp (version ? version : "", "$2") >= 0);
}]
)
],
Index: source/png_pov.cpp
===================================================================
--- source/png_pov.cpp.orig 2004-08-03 01:11:37.000000000 +0200
+++ source/png_pov.cpp 2008-06-01 05:30:53.000000000 +0200
@@ -782,7 +782,7 @@ PNG_Image::~PNG_Image()
{
// finished prematurely - trick into thinking done
png_ptr->num_rows = png_ptr->row_number;
- png_write_finish_row(png_ptr);
+ png_write_row(png_ptr, row_ptr);
}
#ifdef POV_COMMENTS // temporarily skip comment writing code
Index: Makefile.am
===================================================================
--- Makefile.am.orig 2004-08-03 01:20:02.000000000 +0200
+++ Makefile.am 2008-06-01 05:40:59.000000000 +0200
@@ -32,12 +32,12 @@ povconfdir = @sysconfdir@/@PACKAGE@/@VER
povconfuser = $(HOME)/.@PACKAGE@/@VERSION_BASE@
# Directories to build.
-SUBDIRS = libraries source unix
+SUBDIRS = source unix
# Additional files to distribute.
EXTRA_DIST = \
bootstrap kde_install.sh \
- doc icons include ini libraries scenes scripts \
+ doc icons include ini scenes scripts \
povray.ini.in
# Additional files to clean with 'make distclean'.
Index: configure.ac
===================================================================
--- configure.ac.orig 2004-08-03 01:16:14.000000000 +0200
+++ configure.ac 2008-06-01 05:46:30.000000000 +0200
@@ -615,7 +615,6 @@ if test x"$pov_check_lib" != x"ok"; then
if test x"$enable_lib_checks" != x"no"; then
AC_MSG_NOTICE([libpng will be built and statically linked to $PACKAGE_NAME])
fi
- AC_CONFIG_SUBDIRS([libraries/png])
if test "$ac_cv_search_png_get_libpng_ver"; then
LIBS=`echo $LIBS | sed s,$ac_cv_search_png_get_libpng_ver,,g`
fi
@@ -644,7 +643,6 @@ if test x"$pov_check_libjpeg" != x"ok";
if test x"$enable_lib_checks" != x"no"; then
AC_MSG_NOTICE([libjpeg will be built and statically linked to $PACKAGE_NAME])
fi
- AC_CONFIG_SUBDIRS([libraries/jpeg])
if test "$ac_cv_search_jpeg_std_error"; then
LIBS=`echo $LIBS | sed s,$ac_cv_search_jpeg_std_error,,g`
fi
@@ -679,7 +677,6 @@ if test x"$pov_check_libtiff" != x"ok";
if test x"$enable_lib_checks" != x"no"; then
AC_MSG_NOTICE([libtiff will be built and statically linked to $PACKAGE_NAME])
fi
- AC_CONFIG_SUBDIRS([libraries/tiff])
if test "$ac_cv_search_TIFFGetVersion"; then
LIBS=`echo $LIBS | sed s,$ac_cv_search_TIFFGetVersion,,g`
fi
@@ -1111,7 +1108,6 @@ AC_SUBST([POVLIBSCLEAN])
AC_CONFIG_FILES([\
Makefile \
- libraries/Makefile \
source/base/Makefile \
source/frontend/Makefile \
source/Makefile \