2013-02-28 17:22:30 +01:00
|
|
|
# Created by: Dmitry Marakasov <amdmi3@FreeBSD.org>
|
2010-05-06 18:29:43 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= resynthesizer
|
2013-02-28 17:22:30 +01:00
|
|
|
PORTVERSION= 2.0
|
2015-05-07 17:17:32 +02:00
|
|
|
DISTVERSIONPREFIX= v
|
2015-05-27 02:02:04 +02:00
|
|
|
PORTREVISION= 3
|
2010-05-06 18:29:43 +02:00
|
|
|
CATEGORIES= graphics
|
|
|
|
PKGNAMEPREFIX= gimp-
|
|
|
|
|
|
|
|
MAINTAINER= amdmi3@FreeBSD.org
|
|
|
|
COMMENT= Gimp plug-in for texture synthesis
|
|
|
|
|
2016-01-12 17:20:31 +01:00
|
|
|
LICENSE= GPLv2+ # though COPYING has GPLv3
|
2015-05-27 02:02:04 +02:00
|
|
|
|
2016-04-01 16:00:51 +02:00
|
|
|
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
|
2010-05-06 18:29:43 +02:00
|
|
|
|
2013-02-28 17:22:30 +01:00
|
|
|
USE_GITHUB= yes
|
|
|
|
GH_ACCOUNT= bootchk
|
2010-05-06 18:29:43 +02:00
|
|
|
|
2015-05-27 02:02:04 +02:00
|
|
|
USES= autoreconf compiler:nestedfct gettext gmake pkgconfig
|
2013-02-28 17:22:30 +01:00
|
|
|
GNU_CONFIGURE= yes
|
2015-08-05 21:13:24 +02:00
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
|
|
LIBS+= -L${LOCALBASE}/lib
|
2015-05-27 02:02:04 +02:00
|
|
|
|
|
|
|
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)
|
2015-08-21 18:48:16 +02:00
|
|
|
THREADS_LIBS= `pkg-config --libs gthread-2.0`
|
2013-02-28 17:22:30 +01:00
|
|
|
|
|
|
|
post-patch:
|
2015-05-27 02:02:04 +02:00
|
|
|
@${REINPLACE_CMD} -e 's|^\(GIMP_LIBDIR=\).*|\1"$${prefix}/${PLUGIN_DIR:H}"|; \
|
|
|
|
s|^\(gimpplugindir=\).*|\1"$$GIMP_LIBDIR"|' ${WRKSRC}/configure.in
|
2015-08-21 18:48:16 +02:00
|
|
|
|
|
|
|
post-patch-THREADS-off:
|
2013-02-28 17:22:30 +01:00
|
|
|
@${REINPLACE_CMD} -e '/^#define SYNTH_THREADED/ d' \
|
|
|
|
${WRKSRC}/src/buildSwitches.h
|
2010-05-06 18:29:43 +02:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|