From owner-svn-ports-head@FreeBSD.ORG Mon May 13 18:20:15 2013 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 7AEDEEB2; Mon, 13 May 2013 18:20:15 +0000 (UTC) (envelope-from mi@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) by mx1.freebsd.org (Postfix) with ESMTP id 5D8E6FD7; Mon, 13 May 2013 18:20:15 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.6/8.14.6) with ESMTP id r4DIKFSx029353; Mon, 13 May 2013 18:20:15 GMT (envelope-from mi@svn.freebsd.org) Received: (from mi@localhost) by svn.freebsd.org (8.14.6/8.14.5/Submit) id r4DIKFMi029351; Mon, 13 May 2013 18:20:15 GMT (envelope-from mi@svn.freebsd.org) Message-Id: <201305131820.r4DIKFMi029351@svn.freebsd.org> From: Mikhail Teterin Date: Mon, 13 May 2013 18:20:15 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r318122 - in head/graphics/libgfx: . files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 May 2013 18:20:15 -0000 Author: mi Date: Mon May 13 18:20:14 2013 New Revision: 318122 URL: http://svnweb.freebsd.org/changeset/ports/318122 Log: Stop insisting on particular major versions of the shared libraries we depend on. Make compilable with newer compilers (gcc47, gcc48). Added: head/graphics/libgfx/files/patch-warnings (contents, props changed) Modified: head/graphics/libgfx/Makefile (contents, props changed) Modified: head/graphics/libgfx/Makefile ============================================================================== --- head/graphics/libgfx/Makefile Mon May 13 16:46:51 2013 (r318121) +++ head/graphics/libgfx/Makefile Mon May 13 18:20:14 2013 (r318122) @@ -16,11 +16,11 @@ COMMENT= OpenGL/FLTK development LICENSE= MIT -LIB_DEPENDS= fltk.1:${PORTSDIR}/x11-toolkits/fltk \ - tiff.4:${PORTSDIR}/graphics/tiff \ +LIB_DEPENDS= fltk:${PORTSDIR}/x11-toolkits/fltk \ + tiff:${PORTSDIR}/graphics/tiff \ png15:${PORTSDIR}/graphics/png \ - gzstream.0:${PORTSDIR}/devel/gzstream \ - jpeg.11:${PORTSDIR}/graphics/jpeg + gzstream:${PORTSDIR}/devel/gzstream \ + jpeg:${PORTSDIR}/graphics/jpeg BUILD_WRKSRC= ${WRKSRC}/src Added: head/graphics/libgfx/files/patch-warnings ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/graphics/libgfx/files/patch-warnings Mon May 13 18:20:14 2013 (r318122) @@ -0,0 +1,52 @@ +--- src/raster.cxx 2004-09-27 00:45:31.000000000 -0400 ++++ src/raster.cxx 2013-05-13 13:53:50.000000000 -0400 +@@ -10,4 +10,6 @@ + #include + ++#include /* For memcpy() */ ++ + #include + #include +@@ -49,6 +51,6 @@ + + +-static char *img_names[] = {"PPM", "PNG", "TIFF", "JPEG"}; +-static char *img_ext[] = {"ppm", "png", "tif", "jpg"}; ++static const char *img_names[] = {"PPM", "PNG", "TIFF", "JPEG"}; ++static const char *img_ext[] = {"ppm", "png", "tif", "jpg"}; + + const char *image_type_name(int type) +--- src/gltools.cxx 2005-06-18 09:58:15.000000000 -0400 ++++ src/gltools.cxx 2013-05-13 13:56:31.000000000 -0400 +@@ -57,5 +57,5 @@ + GLuint nnames = *ptr++; + GLuint cur_zmin = *ptr++; +- /* GLuint cur_zmax = */ *ptr++; ++ ptr++; + + if( cur_zmin < zmin ) +--- src/arcball.cxx 2004-09-27 00:45:31.000000000 -0400 ++++ src/arcball.cxx 2013-05-13 13:58:11.000000000 -0400 +@@ -20,22 +20,4 @@ + { + +-// Converts a unit quaternion to two points on the unit sphere +-static void quat_to_sphere(const Quat& q, Vec3& from, Vec3& to) +-{ +- const Vec3& v = q.vector(); +- +- double s = sqrt(v[0]*v[0] + v[1]*v[1]); +- if( s==0.0 ) +- from = Vec3(0.0, 1.0, 0.0); +- else +- from = Vec3(-v[1]/s, v[0]/s, 0.0); +- +- to[0] = q.scalar()*from[0] - v[2]*from[1]; +- to[1] = q.scalar()*from[1] + v[2]*from[2]; +- to[2] = v[0]*from[1] - v[1]*from[0]; +- +- if(q.scalar() < 0.0) from = -from; +-} +- + // Converts to points on unit sphere into a unit quaternion + static Quat quat_from_sphere(const Vec3& from, const Vec3& to)