Update graphics/cimg to version 1.7.5,3
[dports.git] / graphics / gimp-focusblur-plugin / Makefile
1 # Created by: Denis Barov <dindin@dindin.ru>
2 # $FreeBSD$
3
4 PORTNAME=       focusblur
5 PORTVERSION=    3.2.6
6 PORTREVISION=   5
7 CATEGORIES=     graphics
8 MASTER_SITES=   http://registry.gimp.org/files/
9 PKGNAMEPREFIX=  gimp-
10 PKGNAMESUFFIX=  -plugin
11
12 MAINTAINER=     ports@FreeBSD.org
13 COMMENT=        Gimp realistic focus blur plugin
14
15 LICENSE=        GPLv2
16 LICENSE_FILE=   ${WRKSRC}/COPYING
17
18 LIB_DEPENDS=    libfftw3.so:math/fftw3 \
19                 libgimp-2.0.so:graphics/gimp-app
20
21 USES=           gmake pkgconfig tar:bzip2
22 GNU_CONFIGURE=  yes
23 USE_GNOME=      gtk20 intltool
24
25 PLUGIN_DIR?=    libexec/gimp/2.2/plug-ins
26 PLIST_SUB=      PLUGIN_DIR=${PLUGIN_DIR}
27
28 CPPFLAGS+=      -I${LOCALBASE}/include
29 LDFLAGS+=       -lm -L${LOCALBASE}/lib
30
31 OPTIONS_DEFINE= NLS
32 OPTIONS_SUB=    yes
33
34 NLS_USES=       gettext
35 NLS_CONFIGURE_OFF=      --disable-nls
36
37 post-patch:
38         @${REINPLACE_CMD} -e 's|^bindir = .*|bindir = ${PREFIX}/${PLUGIN_DIR}|g' ${WRKSRC}/src/Makefile.in
39         @${REINPLACE_CMD} -e 's|glib/.*\.h|glib.h|g' \
40                 ${WRKSRC}/src/*.[ch]
41
42 .include <bsd.port.mk>