Index: head/graphics/gimmage/Makefile =================================================================== --- head/graphics/gimmage/Makefile (revision 457191) +++ head/graphics/gimmage/Makefile (revision 457192) @@ -1,25 +1,34 @@ # Created by: Andrew Pantyukhin # $FreeBSD$ PORTNAME= gimmage PORTVERSION= 0.2.3 -PORTREVISION= 12 +PORTREVISION= 13 CATEGORIES= graphics MASTER_SITES= BERLIOS MAINTAINER= portmaster@bsdforge.com COMMENT= Simple image viewer LICENSE= GPLv2+ LICENSE_FILE= ${WRKSRC}/COPYING -LIB_DEPENDS= libcurl.so:ftp/curl +LIB_DEPENDS= libcurl.so:ftp/curl \ + libfontconfig.so:x11-fonts/fontconfig \ + libfreetype.so:print/freetype2 -BROKEN= fails to compile: ustring.h: expected ';' at end of declaration list - -USES= desktop-file-utils gettext pkgconfig -USE_GNOME= gtkmm24 +USES= compiler:c++11-lang desktop-file-utils gettext pkgconfig +USE_GNOME= gtkmm24 gdkpixbuf2 GNU_CONFIGURE= yes +USE_CXXSTD= c++11 + +OPTIONS_DEFINE= NLS +NLS_USES= gettext +NLS_CONFIGURE_ENABLE= gettext + +CXXFLAGS+= -stdlib=libc++ -Wc++11-extensions -Wc++11-long-long \ + -Wunused-command-line-argument -Wreturn-type \ + -Wwritable-strings -Wlogical-op-parentheses CONFIGURE_ARGS= --with-libintl-prefix=${LOCALBASE} .include Index: head/graphics/gimmage/files/patch-src__FileManager.cpp =================================================================== --- head/graphics/gimmage/files/patch-src__FileManager.cpp (revision 457191) +++ head/graphics/gimmage/files/patch-src__FileManager.cpp (revision 457192) @@ -1,16 +1,35 @@ ---- ./src/FileManager.cpp.orig 2007-07-20 23:42:55.000000000 +0400 -+++ ./src/FileManager.cpp 2007-07-20 23:43:03.000000000 +0400 -@@ -23,12 +23,13 @@ +--- src/FileManager.cpp.orig 2007-06-26 13:51:15 UTC ++++ src/FileManager.cpp +@@ -23,12 +23,13 @@ Copyright 2006 Bartek Kostrzewa #include "FileManager.h" #include "defines.h" +#define get_current_dir_name() getcwd(NULL, PATH_MAX) #include "../config.h" extern "C" { #include -// #include +#include #include } + +@@ -378,7 +379,7 @@ Glib::ustring FileManager::get_previous_file() + // OR + // we've hit the first picture going forwards and now want to go backwards + // we display the last picture +- if( last_op_previous && file_iterator == begin || last_op_next && file_iterator == begin ) ++ if( (last_op_previous && file_iterator == begin) || (last_op_next && file_iterator == begin) ) + { + last_op_previous = true; + last_op_next = false; +@@ -466,7 +467,7 @@ bool FileManager::filter_filename(Glib::ustring filena + result.find("PCX") != Glib::ustring::npos || + result.find("PGM") != Glib::ustring::npos || + result.find("PPM") != Glib::ustring::npos || +- result.find("TIFF") != Glib::ustring::npos && result.find("EPS") == Glib::ustring::npos || ++ result.find("TIFF") != Glib::ustring::npos & result.find("EPS") == Glib::ustring::npos || + result.find("X pixmap image text") != Glib::ustring::npos || + result.find("Targa") != Glib::ustring::npos || + result.find("PBM") != Glib::ustring::npos || Index: head/graphics/gimmage/files/patch-src__ImageEventBox.cpp =================================================================== --- head/graphics/gimmage/files/patch-src__ImageEventBox.cpp (nonexistent) +++ head/graphics/gimmage/files/patch-src__ImageEventBox.cpp (revision 457192) @@ -0,0 +1,38 @@ +--- src/ImageEventBox.cpp.orig 2007-06-26 13:51:16 UTC ++++ src/ImageEventBox.cpp +@@ -149,7 +149,7 @@ void ImageEventBox::LoadImage( const Glib::ustring & f + void ImageEventBox::ScaleImage( double scalefactor, + Gdk::InterpType interp_type) + { +- if(ImagePixbuf_Original != 0 && loaded == true) ++ if(ImagePixbuf_Original && loaded == true) + { + int new_width = (int)(scalefactor * (double)ImagePixbuf_Original->get_width()); + int new_height = (int)(scalefactor * (double)ImagePixbuf_Original->get_height()); +@@ -176,7 +176,7 @@ void ImageEventBox::ScaleImage( int width, + double * scalefactor, + Gdk::InterpType interp_type) + { +- if(ImagePixbuf_Original != 0 && loaded == true) ++ if(ImagePixbuf_Original && loaded == true) + { + double ratioh = (double)height/(double)ImagePixbuf_Original->get_height(); + double ratiow = (double)width/(double)ImagePixbuf_Original->get_width(); +@@ -206,7 +206,7 @@ void ImageEventBox::ScaleImage2( int width, + double * scalefactor, + Gdk::InterpType interp_type) + { +- if(ImagePixbuf_Original != 0 && loaded == true) ++ if(ImagePixbuf_Original && loaded == true) + { + if( width <= ImagePixbuf_Original->get_width() || height <= ImagePixbuf_Original->get_height() ) + { +@@ -242,7 +242,7 @@ void ImageEventBox::ScaleImage2( int width, + // the rotation of the image + void ImageEventBox::RotateImage(Gdk::PixbufRotation rotateby) + { +- if(ImagePixbuf_Original != 0 && loaded == true) ++ if(ImagePixbuf_Original && loaded == true) + { + try + { Property changes on: head/graphics/gimmage/files/patch-src__ImageEventBox.cpp ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property