From 9e4b15c605ed8e07f896ed7121d4f18dc2a12e77 Mon Sep 17 00:00:00 2001 From: maho Date: Sun, 28 Dec 2003 14:49:05 +0000 Subject: fix build on 64 bit environment Submitted by: kris (bento) Suggestion from: marcel --- graphics/povray/Makefile | 10 +++++----- graphics/povray/files/patch-src::frame.h | 23 +++++++++++++++++++++++ graphics/povray/files/patch-src::optin.cpp | 11 +++++++++++ 3 files changed, 39 insertions(+), 5 deletions(-) create mode 100644 graphics/povray/files/patch-src::frame.h create mode 100644 graphics/povray/files/patch-src::optin.cpp (limited to 'graphics/povray') diff --git a/graphics/povray/Makefile b/graphics/povray/Makefile index 85db215..247b556 100644 --- a/graphics/povray/Makefile +++ b/graphics/povray/Makefile @@ -36,11 +36,11 @@ USE_GMAKE= yes GNU_CONFIGURE= yes .if defined(WITH_OPTIMIZED_FLAGS) -CFLAGS+= -O3 -ffast-math -finline-functions -fomit-frame-pointer -funroll-loops -fexpensive-optimizations -malign-double -CXXFLAGS+= -O3 -ffast-math -finline-functions -fomit-frame-pointer -funroll-loops -fexpensive-optimizations -malign-double -Wno-multichar -.if (${MACHINE_ARCH} == "i386") -CFLAGS+= -mcpu=i686 -march=i686 -mfancy-math-387 -CXXFLAGS+= -mcpu=i686 -march=i686 -mfancy-math-387 +CFLAGS+= -O3 -ffast-math -finline-functions -fomit-frame-pointer -funroll-loops -fexpensive-optimizations +CXXFLAGS+= -O3 -ffast-math -finline-functions -fomit-frame-pointer -funroll-loops -fexpensive-optimizations -Wno-multichar +.if (${MACHINE_ARCH} == "i386" && !${MACHINE_ARCH} == "amd64" ) +CFLAGS+= -mfancy-math-387 -mpreferred-stack-boundary=3 -malign-double +CXXFLAGS+= -mfancy-math-387 -mpreferred-stack-boundary=3 -malign-double .endif # i386 .endif diff --git a/graphics/povray/files/patch-src::frame.h b/graphics/povray/files/patch-src::frame.h new file mode 100644 index 0000000..c37f3c0 --- /dev/null +++ b/graphics/povray/files/patch-src::frame.h @@ -0,0 +1,23 @@ +--- src/frame.h.orig Tue Jan 7 10:08:30 2003 ++++ src/frame.h Sun Dec 28 23:37:04 2003 +@@ -44,12 +44,20 @@ + class pov_istream_class; + class pov_ostream_class; + ++#if defined(__LP64__) ++typedef unsigned int u_int32 ; ++#else + typedef unsigned long u_int32 ; ++#endif + typedef unsigned short u_int16 ; + typedef unsigned char u_int8 ; + typedef unsigned char byte ; + ++#if defined(__LP64__) ++typedef signed int int32 ; ++#else + typedef signed long int32 ; ++#endif + typedef signed short int16 ; + typedef signed char int8 ; + diff --git a/graphics/povray/files/patch-src::optin.cpp b/graphics/povray/files/patch-src::optin.cpp new file mode 100644 index 0000000..861253a --- /dev/null +++ b/graphics/povray/files/patch-src::optin.cpp @@ -0,0 +1,11 @@ +--- src/optin.cpp.orig Sun Dec 28 23:43:15 2003 ++++ src/optin.cpp Sun Dec 28 23:43:52 2003 +@@ -364,7 +364,7 @@ + + static bool matches(char *v1, char *v2); + +-POV_ISTREAM *Opts_Locate_File(char *filename, unsigned long stype, char *buffer, int err_flag, POVMSObjectPtr obj); ++POV_ISTREAM *Opts_Locate_File(char *filename, u_int32 stype, char *buffer, int err_flag, POVMSObjectPtr obj); + + + /***************************************************************************** -- cgit v1.1