Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 21 Aug 2015 16:48:17 +0000 (UTC)
From:      Dmitry Marakasov <amdmi3@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r394980 - head/graphics/gimp-resynthesizer
Message-ID:  <201508211648.t7LGmH1V071854@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: amdmi3
Date: Fri Aug 21 16:48:16 2015
New Revision: 394980
URL: https://svnweb.freebsd.org/changeset/ports/394980

Log:
  - Switch to options helpers
  - Fix build with THREADS enabled

Modified:
  head/graphics/gimp-resynthesizer/Makefile

Modified: head/graphics/gimp-resynthesizer/Makefile
==============================================================================
--- head/graphics/gimp-resynthesizer/Makefile	Fri Aug 21 16:47:29 2015	(r394979)
+++ head/graphics/gimp-resynthesizer/Makefile	Fri Aug 21 16:48:16 2015	(r394980)
@@ -30,15 +30,14 @@ PLIST_SUB=	PLUGIN_DIR=${PLUGIN_DIR}
 
 OPTIONS_DEFINE=	THREADS
 THREADS_DESC=	Threading support (produces nondeterministic results)
-
-.include <bsd.port.options.mk>
+THREADS_LIBS=	`pkg-config --libs gthread-2.0`
 
 post-patch:
 	@${REINPLACE_CMD} -e 's|^\(GIMP_LIBDIR=\).*|\1"$${prefix}/${PLUGIN_DIR:H}"|; \
 		s|^\(gimpplugindir=\).*|\1"$$GIMP_LIBDIR"|' ${WRKSRC}/configure.in
-.if ! ${PORT_OPTIONS:MTHREADS}
+
+post-patch-THREADS-off:
 	@${REINPLACE_CMD} -e '/^#define SYNTH_THREADED/ d' \
 		${WRKSRC}/src/buildSwitches.h
-.endif
 
 .include <bsd.port.mk>



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