On 11/24/2013 6:22 AM, Schindler Karl-Michael wrote:
Date: Sat, 23 Nov 2013 18:56:00 -0500
From: Hanspeter Niederstrasser <f...@snaggledworks.com>
Subject: [Fink-devel] povray on 10.7 doesn't download
Message-ID: <52914090.7060...@snaggledworks.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

The newly added povray 3.6.1 on 10.7 doesn't download. The source file
is not found in the upstream download site (looks like it changed
directories).  Also, since it uses really old versions of graphics
libraries, it is not going to work on 10.9.  The website also says that
3.7 is now out (from 2 weeks ago) and the changelog says libpng and
libjpeg support were modernized.

Hanspeter

I tried to build 3.7, but i did not manage. I also had a look at 3.7, whether 
the changes to use a newer libpng could be ported to 3.6.1. Again, beyond my 
capabilities. my plan is to fix the download site and also backport it.

Michael.

Try the attached info/patch for 3.7. I was able to render one of the included .pov files. (tested on 10.7). Not sure if the povray.conf/povray.ini directions need updating.

Hanspeter

Package: povray
Version: 3.7.0.0
Revision: 2
GCC: 4.0
Maintainer: Andrew Rohl <andrewr...@mac.com>
BuildDepends: <<
        boost1.53.nopython,
        fink-package-precedence
        ilmbase,
        libjpeg9,
        libopenexr6,
        libpng16,
        libtiff5,
        sdl,
        x11-dev
<<
Depends: <<
        boost1.53.nopython-shlibs,
        ilmbase-shlibs,
        libjpeg9-shlibs,
        libopenexr6-shlibs,
        libpng16-shlibs,
        libtiff5-shlibs,
        sdl-shlibs,
        x11
<<
#Source: ftp://ftp.povray.org/pub/povray/Official/Unix/%n-3.6.1.tar.bz2
Source: https://github.com/POV-Ray/povray/archive/v%v.tar.gz
Source-MD5: c9473256677808e9e3246e6eb8f69a75
SourceRename: %n-%v.tar.gz
PatchFile: %n.patch
PatchFile-MD5: 3c8087e6f1eee90f302425e64239be3d
ConfigureParams: <<
        --build=%m-apple-darwin`uname -r|cut -f1 -d.` \
        --host=%m-apple-darwin`uname -r|cut -f1 -d.` \
        --with-boost=%p \
        --with-boost-thread=boost_thread-mt \
        --x-includes=/usr/X11R6/includes \
        --x-libraries=/usr/X11R6/lib \
        --enable-dependency-tracking \
        COMPILED_BY="Andrew Rohl as part of Fink"
<<
#SetCPPFLAGS: -MD
SetLDFLAGS: -L%p/lib -L/usr/X11R6/lib
SetLIBS: -lboost_system-mt
CompileScript: <<
        #!/bin/sh -ev
        pushd unix
                ./prebuild.sh
        popd
        %{default_script}
        fink-package-precedence  .
<<
DocFiles: AUTHORS COPYING ChangeLog INSTALL NEWS README
ConfFiles: %p/etc/povray/3.7/povray.conf %p/etc/povray/3.7/povray.ini
Description: The Persistence of Vision Ray Tracer
DescDetail: <<
 POV-Ray is a free, full-featured ray tracer, written and
 maintained by a team of volunteers on the Internet.
<<
DescUsage: <<
 You must copy Fink's %p/etc/povray/3.7/povray.ini file to 
 $HOME/.povrayrc for all users who want to use povray.
<<
DescPackaging: <<
Avoid GNUism when copying files
https://github.com/POV-Ray/povray/issues/5

Avoid GNUism when using stat
https://github.com/POV-Ray/povray/issues/7

* Include <sys/types.h> to get uint
* LIBS needs boost_system-mt to link with boost_thread-mt
<<
License: OSI-Approved
Homepage: http://www.povray.org/
--- a/source/base/image/image.cpp       2013-11-24 10:09:02.000000000 -0500
+++ b/source/base/image/image.cpp       2013-11-24 10:06:44.000000000 -0500
@@ -2829,7 +2829,7 @@
                        meta[0] = sizeof(pixel_type);
                        meta[1] = m_Width;
                        meta[2] = m_Height;
-                       if (lseek64(m_File, pos, SEEK_SET) != pos)
+                       if (lseek(m_File, pos, SEEK_SET) != pos)
                                throw POV_EXCEPTION(kFileDataErr, "Intermediate 
image storage backing file write/seek failed at creation.");
                        if (write(m_File, &meta[0], (int) sizeof(size_type)*3) 
!= (sizeof(size_type)*3))
                                throw POV_EXCEPTION(kFileDataErr, "Intermediate 
image storage backing file write failed at creation.");
@@ -3000,7 +3000,7 @@
 #endif
                                pos = block * sizeof(pixel_type) * m_Blocksize;
                                int chunk = sizeof(pixel_type) * m_Blocksize;
-                               if (lseek64(m_File, pos, SEEK_SET) != pos)
+                               if (lseek(m_File, pos, SEEK_SET) != pos)
                                        throw POV_EXCEPTION(kFileDataErr, 
"Intermediate image storage backing file read/seek failed.");
                                int bytes = read(m_File, &m_Buffer[0], chunk);
                                if (bytes != (sizeof(pixel_type) * m_Blocksize))
@@ -3023,7 +3023,7 @@
 
                        if (m_Dirty) {
                                pos = m_CurrentBlock * sizeof(pixel_type) * 
m_Blocksize;
-                               if (lseek64(m_File, pos, SEEK_SET) != pos)
+                               if (lseek(m_File, pos, SEEK_SET) != pos)
                                        throw POV_EXCEPTION(kFileDataErr, 
"Intermediate image storage backing file write/seek failed.");
                                if (write(m_File, &m_Buffer[0], (int) 
sizeof(pixel_type) * m_Blocksize) != (sizeof(pixel_type) * m_Blocksize))
                                        throw POV_EXCEPTION(kFileDataErr, 
"Intermediate image storage backing file write failed.");
--- a/unix/configure.ac 2013-11-24 10:10:14.000000000 -0500
+++ b/unix/configure.ac 2013-11-24 10:06:44.000000000 -0500
@@ -986,8 +986,8 @@
 AC_DEFINE_UNQUOTED([BUILTIN_IMG_FORMATS], ["$pov_img_fmt_builtin 
$pov_img_fmt_enabled"], [Supported image formats.])
 AC_DEFINE_UNQUOTED([MISSING_IMG_FORMATS], ["$pov_img_fmt_disabled"], 
[Unsupported image formats.])
 
-povowner=`stat -c %u ${HOME}`
-povgroup=`stat -c %g ${HOME}`
+povowner=`stat -f %u ${HOME}`
+povgroup=`stat -f %g ${HOME}`
 AC_SUBST([povowner])
 AC_SUBST([povgroup])
 
--- a/unix/prebuild.sh  2013-11-06 15:28:15.000000000 -0500
+++ b/unix/prebuild.sh  2013-11-24 10:18:55.000000000 -0500
@@ -358,7 +358,7 @@
   do
     out=`basename $file`
     echo "Create ../$out`test -d $file && echo /`"
-    $cp_u -f -R $file ../  ||  echo "$file not copied !"
+    $cp_u -f -R $file ../$out  ||  echo "$file not copied !"
     chmod -f -R u+rw ../$out
   done
 
--- a/vfe/unix/vfeplatform.h 2012-06-19 11:29:39.000000000 -0500
+++ b/vfe/unix/vfeplatform.h 2012-09-05 08:19:08.000000000 -0500
@@ -36,6 +36,8 @@
 #ifndef __VFEPLATFORM_H__
 #define __VFEPLATFORM_H__
 
+#include <sys/types.h>
+
 #include <boost/shared_ptr.hpp>
 
 namespace vfePlatform
--- a/vfe/vfesession.h 2012-06-19 11:29:40.000000000 -0500
+++ b/vfe/vfesession.h 2012-09-05 08:19:13.000000000 -0500
@@ -36,6 +36,8 @@
 #ifndef __VFESESSION_H__
 #define __VFESESSION_H__
 
+#include <sys/types.h>
+
 #include <queue>
 
 #include "base/image/colourspace.h"
------------------------------------------------------------------------------
Shape the Mobile Experience: Free Subscription
Software experts and developers: Be at the forefront of tech innovation.
Intel(R) Software Adrenaline delivers strategic insight and game-changing 
conversations that shape the rapidly evolving mobile landscape. Sign up now. 
http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk
_______________________________________________
Fink-devel mailing list
Fink-devel@lists.sourceforge.net
List archive:
http://news.gmane.org/gmane.os.apple.fink.devel
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-devel

Reply via email to