Bump graphics/hugin to version 2019.2.0_4
[dports.git] / graphics / gimp-resynthesizer / Makefile
1 # Created by: Dmitry Marakasov <amdmi3@FreeBSD.org>
2 # $FreeBSD$
3
4 PORTNAME=       resynthesizer
5 PORTVERSION=    2.0.3
6 PORTREVISION=   1
7 DISTVERSIONPREFIX=      v
8 CATEGORIES=     graphics
9 PKGNAMEPREFIX=  gimp-
10
11 MAINTAINER=     amdmi3@FreeBSD.org
12 COMMENT=        Gimp plug-in for texture synthesis
13
14 LICENSE=        GPLv2+ # though COPYING has GPLv3
15 LICENSE_FILE=   ${WRKSRC}/COPYING
16
17 DEPRECATED=     Uses deprecated version of python
18 EXPIRATION_DATE=        2020-08-15
19
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
23
24 USE_GITHUB=     yes
25 GH_ACCOUNT=     bootchk
26
27 USES=           autoreconf compiler:c++11-lang gettext gmake localbase \
28                 pkgconfig python:2.7,run shebangfix
29 SHEBANG_FILES=  PluginScripts/*.py
30 GNU_CONFIGURE=  yes
31
32 PLUGIN_DIR?=    libexec/gimp/2.2/plug-ins
33 PLIST_SUB=      PLUGIN_DIR=${PLUGIN_DIR}
34
35 OPTIONS_DEFINE= THREADS
36 THREADS_DESC=   Threading support (produces nondeterministic results)
37 THREADS_LIBS=   `pkg-config --libs gthread-2.0`
38
39 post-patch:
40         @${REINPLACE_CMD} -e 's|^\(GIMP_LIBDIR=\).*|\1"$${prefix}/${PLUGIN_DIR:H}"|; \
41                 s|^\(gimpplugindir=\).*|\1"$$GIMP_LIBDIR"|' ${WRKSRC}/configure.ac
42
43 post-patch-THREADS-off:
44         @${REINPLACE_CMD} -e '/^#define SYNTH_THREADED/ d' \
45                 ${WRKSRC}/lib/buildSwitches.h
46
47 .include <bsd.port.mk>