- Switch to options helpers

- Fix build with THREADS enabled
This commit is contained in:
Dmitry Marakasov 2015-08-21 16:48:16 +00:00
parent 56c3d89e5e
commit 91695a1fae
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=394980

View File

@ -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>