aboutsummaryrefslogtreecommitdiff
path: root/graphics/gimp-focusblur-plugin/Makefile
blob: c08c7a47da9dbc68817e0a3a1d4751829bdf9b0d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# Created by: Denis Barov <dindin@dindin.ru>
# $FreeBSD$

PORTNAME=	focusblur
PORTVERSION=	3.2.6
PORTREVISION=	7
CATEGORIES=	graphics
MASTER_SITES=	http://registry.gimp.org/files/
PKGNAMEPREFIX=	gimp-
PKGNAMESUFFIX=	-plugin

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Gimp realistic focus blur plugin

LICENSE=	GPLv2
LICENSE_FILE=	${WRKSRC}/COPYING

BROKEN=		unfetchable

LIB_DEPENDS=	libfftw3.so:math/fftw3 \
		libgimp-2.0.so:graphics/gimp-app

USES=		compiler:c11 gmake gnome localbase:ldflags pkgconfig tar:bzip2
GNU_CONFIGURE=	yes
USE_GNOME=	gtk20 intltool

PLUGIN_DIR?=	libexec/gimp/2.2/plug-ins
PLIST_SUB=	PLUGIN_DIR=${PLUGIN_DIR}

CPPFLAGS+=	-DGIMP_DISABLE_DEPRECATED
LDFLAGS+=	-lm

OPTIONS_DEFINE=	NLS
OPTIONS_SUB=	yes

NLS_USES=	gettext
NLS_CONFIGURE_OFF=	--disable-nls

post-patch:
	@${REINPLACE_CMD} -e 's|^bindir = .*|bindir = ${PREFIX}/${PLUGIN_DIR}|g' ${WRKSRC}/src/Makefile.in
	@${REINPLACE_CMD} -e 's|glib/.*\.h|glib.h|g' \
		${WRKSRC}/src/*.[ch]

.include <bsd.port.mk>