1 # Created by: Dmitry Marakasov <amdmi3@FreeBSD.org>
4 PORTNAME= resynthesizer
11 MAINTAINER= amdmi3@FreeBSD.org
12 COMMENT= Gimp plug-in for texture synthesis
14 LICENSE= GPLv2+ # though COPYING has GPLv3
15 LICENSE_FILE= ${WRKSRC}/COPYING
17 DEPRECATED= Uses deprecated version of python
18 EXPIRATION_DATE= 2020-08-15
20 RUN_DEPENDS= ${LOCALBASE}/libexec/gimp/2.2/python/gimpfu.py:graphics/py-gimp
21 BUILD_DEPENDS= intltool-extract:textproc/intltool
22 LIB_DEPENDS= libgimp-2.0.so:graphics/gimp-app
27 USES= autoreconf compiler:c++11-lang gettext gmake localbase \
28 pkgconfig python:2.7,run shebangfix
29 SHEBANG_FILES= PluginScripts/*.py
32 PLUGIN_DIR?= libexec/gimp/2.2/plug-ins
33 PLIST_SUB= PLUGIN_DIR=${PLUGIN_DIR}
35 OPTIONS_DEFINE= THREADS
36 THREADS_DESC= Threading support (produces nondeterministic results)
37 THREADS_LIBS= `pkg-config --libs gthread-2.0`
40 @${REINPLACE_CMD} -e 's|^\(GIMP_LIBDIR=\).*|\1"$${prefix}/${PLUGIN_DIR:H}"|; \
41 s|^\(gimpplugindir=\).*|\1"$$GIMP_LIBDIR"|' ${WRKSRC}/configure.ac
43 post-patch-THREADS-off:
44 @${REINPLACE_CMD} -e '/^#define SYNTH_THREADED/ d' \
45 ${WRKSRC}/lib/buildSwitches.h
47 .include <bsd.port.mk>