Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 22 Dec 2018 01:44:15 +0000 (UTC)
From:      Mark Linimon <linimon@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r488043 - head/graphics/gimmage
Message-ID:  <201812220144.wBM1iF9J079295@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: linimon
Date: Sat Dec 22 01:44:15 2018
New Revision: 488043
URL: https://svnweb.freebsd.org/changeset/ports/488043

Log:
  This port needs USES=compiler:c++11-lang to build on GCC-based
  architectures.
  
  Additionally, our CXXFLAGS conflict with GCC.  Set them only on Clang-
  based architectures.  -stdlib=libc++ isn't needed anymore, it's used
  by default.
  
  While here, also set USES=gnome.
  
  PR:		234190
  Submitted by:	Piotr Kubaj
  Approved by:	portmgr (tier-2 blanket)

Modified:
  head/graphics/gimmage/Makefile

Modified: head/graphics/gimmage/Makefile
==============================================================================
--- head/graphics/gimmage/Makefile	Sat Dec 22 01:31:58 2018	(r488042)
+++ head/graphics/gimmage/Makefile	Sat Dec 22 01:44:15 2018	(r488043)
@@ -13,13 +13,11 @@ COMMENT=	Simple image viewer
 LICENSE=	GPLv2+
 LICENSE_FILE=	${WRKSRC}/COPYING
 
-BROKEN_powerpc64=	fails to configure: C++ compiler cannot create executables
-
 LIB_DEPENDS=	libcurl.so:ftp/curl \
 		libfontconfig.so:x11-fonts/fontconfig \
 		libfreetype.so:print/freetype2
 
-USES=		compiler:c++11-lang desktop-file-utils gettext pkgconfig
+USES=		compiler:c++11-lang desktop-file-utils gettext gnome pkgconfig
 USE_GNOME=	gtkmm24 gdkpixbuf2
 GNU_CONFIGURE=	yes
 USE_CXXSTD=	c++11
@@ -28,9 +26,12 @@ OPTIONS_DEFINE=		NLS
 NLS_USES=		gettext
 NLS_CONFIGURE_ENABLE=	gettext
 
-CXXFLAGS+=	-stdlib=libc++ -Wc++11-extensions -Wc++11-long-long \
+CONFIGURE_ARGS=	--with-libintl-prefix=${LOCALBASE}
+
+.if !exists(/usr/lib/libstdc++.so)
+CXXFLAGS+=	-Wc++11-extensions -Wc++11-long-long \
 		-Wunused-command-line-argument -Wreturn-type \
 		-Wwritable-strings -Wlogical-op-parentheses
-CONFIGURE_ARGS=	--with-libintl-prefix=${LOCALBASE}
+.endif
 
 .include <bsd.port.mk>



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