View | Details | Raw Unified | Return to bug 224475 | Differences between
and this patch

Collapse All | Expand All

(-)gimmage/Makefile (-6 / +11 lines)
Lines 3-9 Link Here
3
3
4
PORTNAME=	gimmage
4
PORTNAME=	gimmage
5
PORTVERSION=	0.2.3
5
PORTVERSION=	0.2.3
6
PORTREVISION=	12
6
PORTREVISION=	13
7
CATEGORIES=	graphics
7
CATEGORIES=	graphics
8
MASTER_SITES=	BERLIOS
8
MASTER_SITES=	BERLIOS
9
9
Lines 13-25 Link Here
13
LICENSE=	GPLv2+
13
LICENSE=	GPLv2+
14
LICENSE_FILE=	${WRKSRC}/COPYING
14
LICENSE_FILE=	${WRKSRC}/COPYING
15
15
16
LIB_DEPENDS=	libcurl.so:ftp/curl
16
LIB_DEPENDS+=	libcurl.so:ftp/curl \
17
		libfontconfig.so:x11-fonts/fontconfig \
18
		libfreetype.so:print/freetype2
17
19
18
BROKEN=		fails to compile: ustring.h: expected ';' at end of declaration list
20
USES=		compiler:c++11-lang desktop-file-utils gettext pkgconfig
19
21
USE_GNOME+=	gtkmm24 gdkpixbuf2
20
USES=		desktop-file-utils gettext pkgconfig
21
USE_GNOME=	gtkmm24
22
GNU_CONFIGURE=	yes
22
GNU_CONFIGURE=	yes
23
USE_CXXSTD=	c++11
24
# HooWee! we still have some work to do!
25
CXXFLAGS+=	-stdlib=libc++ -Wc++11-extensions -Wc++11-long-long \
26
		-Wunused-command-line-argument -Wreturn-type \
27
		-Wwritable-strings -Wlogical-op-parentheses
23
CONFIGURE_ARGS=	--with-libintl-prefix=${LOCALBASE}
28
CONFIGURE_ARGS=	--with-libintl-prefix=${LOCALBASE}
24
29
25
.include <bsd.port.mk>
30
.include <bsd.port.mk>
(-)gimmage/files/patch-src__FileManager.cpp (-2 / +21 lines)
Lines 1-5 Link Here
1
--- ./src/FileManager.cpp.orig	2007-07-20 23:42:55.000000000 +0400
1
--- src/FileManager.cpp.orig	2017-12-19 13:56:03.689269000 -0800
2
+++ ./src/FileManager.cpp	2007-07-20 23:43:03.000000000 +0400
2
+++ src/FileManager.cpp	2017-12-19 13:58:29.142551000 -0800
3
@@ -23,12 +23,13 @@
3
@@ -23,12 +23,13 @@
4
 
4
 
5
 #include "FileManager.h"
5
 #include "FileManager.h"
Lines 14-16 Link Here
14
+#include <unistd.h>
14
+#include <unistd.h>
15
 #include <sys/stat.h>
15
 #include <sys/stat.h>
16
 }
16
 }
17
 
18
@@ -378,7 +379,7 @@
19
 	// OR
20
 	// we've hit the first picture going forwards and now want to go backwards
21
 	// we display the last picture
22
-	if( last_op_previous && file_iterator == begin || last_op_next && file_iterator == begin )
23
+	if( (last_op_previous && file_iterator == begin) || (last_op_next && file_iterator == begin) )
24
 		{
25
 		last_op_previous = true;
26
 		last_op_next = false;
27
@@ -466,7 +467,7 @@
28
 		result.find("PCX") != Glib::ustring::npos ||
29
 		result.find("PGM") != Glib::ustring::npos	||
30
 		result.find("PPM") != Glib::ustring::npos	||
31
-		result.find("TIFF") != Glib::ustring::npos && result.find("EPS") == Glib::ustring::npos	||
32
+		result.find("TIFF") != Glib::ustring::npos & result.find("EPS") == Glib::ustring::npos	||
33
 		result.find("X pixmap image text") != Glib::ustring::npos	||
34
 		result.find("Targa") != Glib::ustring::npos	||
35
 		result.find("PBM") != Glib::ustring::npos	||

Return to bug 224475