svn commit: r394980 - head/graphics/gimp-resynthesizer
Dmitry Marakasov
amdmi3 at FreeBSD.org
Fri Aug 21 16:48:17 UTC 2015
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>
More information about the svn-ports-head
mailing list