Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 17 Dec 2013 02:49:24 +0900
From:      KATO Tsuguru <tkato432@yahoo.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/184832: graphics/gimmage: Fix build with clang
Message-ID:  <20131217024924.612aeb1d622b65cab264071b@yahoo.com>
Resent-Message-ID: <201312161810.rBGIA8iP016013@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         184832
>Category:       ports
>Synopsis:       graphics/gimmage: Fix build with clang
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Dec 16 18:10:08 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     KATO Tsuguru
>Release:        FreeBSD 8.4-RELEASE-p4 i386
>Organization:
>Environment:
>Description:
- Fix build with clang
- Support desktop-file-utils

>How-To-Repeat:
>Fix:

diff -urN /usr/ports/graphics/gimmage/Makefile graphics/gimmage/Makefile
--- /usr/ports/graphics/gimmage/Makefile	2013-11-06 22:02:02.000000000 +0900
+++ graphics/gimmage/Makefile	2013-12-17 00:00:00.000000000 +0900
@@ -3,19 +3,18 @@
 
 PORTNAME=	gimmage
 PORTVERSION=	0.2.3
-PORTREVISION=	9
+PORTREVISION=	10
 CATEGORIES=	graphics
 MASTER_SITES=	BERLIOS CENKES
 
 MAINTAINER=	ports@FreeBSD.org
 COMMENT=	Simple image viewer
 
-LIB_DEPENDS=	libgtkmm-2.4.so:${PORTSDIR}/x11-toolkits/gtkmm24 \
-		libcurl.so:${PORTSDIR}/ftp/curl
+LIB_DEPENDS=	libcurl.so:${PORTSDIR}/ftp/curl
 
-USES=		gettext pkgconfig
+USES=		desktop-file-utils gettext pkgconfig
+USE_GNOME=	gtkmm24
 GNU_CONFIGURE=	yes
-CONFIGURE_ARGS+=	--with-libintl-prefix=${LOCALBASE}
+CONFIGURE_ARGS=	--with-libintl-prefix=${LOCALBASE}
 
-NO_STAGE=	yes
 .include <bsd.port.mk>
diff -urN /usr/ports/graphics/gimmage/files/patch-src__FileManager.cpp graphics/gimmage/files/patch-src__FileManager.cpp
--- /usr/ports/graphics/gimmage/files/patch-src__FileManager.cpp	2013-11-06 22:02:02.000000000 +0900
+++ graphics/gimmage/files/patch-src__FileManager.cpp	2013-12-17 00:00:00.000000000 +0900
@@ -1,6 +1,6 @@
 --- ./src/FileManager.cpp.orig	2007-07-20 23:42:55.000000000 +0400
 +++ ./src/FileManager.cpp	2007-07-20 23:43:03.000000000 +0400
-@@ -23,6 +23,7 @@
+@@ -23,12 +23,13 @@
  
  #include "FileManager.h"
  #include "defines.h"
@@ -8,3 +8,10 @@
  
  #include "../config.h"
  
+ extern "C" {
+ #include <libintl.h>
+-// #include <unistd.h>
++#include <unistd.h>
+ #include <sys/stat.h>
+ }
+ 
>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20131217024924.612aeb1d622b65cab264071b>