Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 9 May 2019 19:40:30 +0000 (UTC)
From:      Piotr Kubaj <pkubaj@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r501138 - head/graphics/gimp-wavelet-sharpen-plugin
Message-ID:  <201905091940.x49JeU32020137@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pkubaj
Date: Thu May  9 19:40:29 2019
New Revision: 501138
URL: https://svnweb.freebsd.org/changeset/ports/501138

Log:
  graphics/gimp-wavelet-sharpen-plugin: fix build with GCC-based architectures
  
  Add USES=compiler:c++11-lang and respect LDFLAGS to fix build.
  
  Approved by:	mat (mentor)

Modified:
  head/graphics/gimp-wavelet-sharpen-plugin/Makefile

Modified: head/graphics/gimp-wavelet-sharpen-plugin/Makefile
==============================================================================
--- head/graphics/gimp-wavelet-sharpen-plugin/Makefile	Thu May  9 19:12:37 2019	(r501137)
+++ head/graphics/gimp-wavelet-sharpen-plugin/Makefile	Thu May  9 19:40:29 2019	(r501138)
@@ -18,7 +18,7 @@ LICENSE_FILE=	${WRKSRC}/COPYING
 BUILD_DEPENDS=	${LOCALBASE}/libdata/pkgconfig/gimp-2.0.pc:graphics/gimp-app
 RUN_DEPENDS=	${LOCALBASE}/libdata/pkgconfig/gimp-2.0.pc:graphics/gimp-app
 
-USES=		gettext gmake pkgconfig
+USES=		compiler:c++11-lang gettext gmake pkgconfig
 
 PLIST_SUB=	GIMP_PLUGIN_DIR=${GIMP_PLUGIN_DIR}
 GIMP_PLUGIN_DIR=	libexec/gimp/2.2/plug-ins
@@ -34,7 +34,7 @@ OPTIMIZED_CFLAGS_CFLAGS=	-O3
 post-patch:
 	@${REINPLACE_CMD} \
 		-e 's|gimptool-2.0|${LOCALBASE}/bin/gimptool-2.0|' \
-		-e '/^LIBS =/s/$$/ -lm/' \
+		-e '/^LIBS =/s/$$/ $$\(LDFLAGS\) -lm/' \
 		${WRKSRC}/src/Makefile
 
 post-patch-NLS-off:



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