freebsd-ports/graphics/gimp-resynthesizer/Makefile

45 lines
1.4 KiB
Makefile
Raw Normal View History

PORTNAME= resynthesizer
2018-02-02 17:13:39 +01:00
PORTVERSION= 2.0.3
2020-09-10 01:21:37 +02:00
PORTREVISION= 2
2018-02-02 17:13:39 +01:00
DISTVERSIONPREFIX= v
CATEGORIES= graphics
PKGNAMEPREFIX= gimp-
MAINTAINER= amdmi3@FreeBSD.org
COMMENT= Gimp plug-in for texture synthesis
LICENSE= GPLv2+ # though COPYING has GPLv3
LICENSE_FILE= ${WRKSRC}/COPYING
2020-09-10 01:21:37 +02:00
# XXX: this is python2 only dependency which is going to be removed from ports; it is
# required for a (huge) part of plugin functionality, but not mandatory, so if someday
# it returns with python3 support, full functionality of resynthesizer may be restored
#RUN_DEPENDS= ${LOCALBASE}/libexec/gimp/2.2/python/gimpfu.py:graphics/py-gimp
BUILD_DEPENDS= intltool-extract:textproc/intltool
LIB_DEPENDS= libgimp-2.0.so:graphics/gimp-app
2013-02-28 17:22:30 +01:00
USE_GITHUB= yes
GH_ACCOUNT= bootchk
USES= autoreconf compiler:c++11-lang gettext gmake localbase \
2020-09-10 01:21:37 +02:00
pkgconfig python:run shebangfix
SHEBANG_FILES= PluginScripts/*.py
2013-02-28 17:22:30 +01:00
GNU_CONFIGURE= yes
PLUGIN_DIR?= libexec/gimp/2.2/plug-ins
PLIST_SUB= PLUGIN_DIR=${PLUGIN_DIR}
2013-02-28 17:22:30 +01:00
OPTIONS_DEFINE= THREADS
THREADS_DESC= Threading support (produces nondeterministic results)
THREADS_LIBS= `pkg-config --libs gthread-2.0`
2013-02-28 17:22:30 +01:00
post-patch:
@${REINPLACE_CMD} -e 's|^\(GIMP_LIBDIR=\).*|\1"$${prefix}/${PLUGIN_DIR:H}"|; \
s|^\(gimpplugindir=\).*|\1"$$GIMP_LIBDIR"|' ${WRKSRC}/configure.ac
post-patch-THREADS-off:
2013-02-28 17:22:30 +01:00
@${REINPLACE_CMD} -e '/^#define SYNTH_THREADED/ d' \
${WRKSRC}/lib/buildSwitches.h
.include <bsd.port.mk>