blob: abb139dc6ec70b196773f43ce2e8713a5dd2159e (
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
45
46
47
48
49
50
|
# Created by: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>
# $FreeBSD$
PORTNAME= lensfun
DISTVERSION= 0.2.4-dev
PORTREVISION= 9
CATEGORIES= graphics
PKGNAMEPREFIX= gimp-
PKGNAMESUFFIX= -plugin
MAINTAINER= ports@FreeBSD.org
COMMENT= Gimp plugin to correct lens distortion using the lensfun library
LICENSE= GPLv3+
LICENSE_FILE= ${WRKSRC}/LICENSE.txt
BUILD_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/exiv2.pc:graphics/exiv2 \
${LOCALBASE}/libdata/pkgconfig/gimp-2.0.pc:graphics/gimp-app \
${LOCALBASE}/libdata/pkgconfig/lensfun.pc:graphics/lensfun
RUN_DEPENDS:= ${BUILD_DEPENDS}
USES= compiler:c++11-lang gmake pkgconfig
USE_GITHUB= yes
GH_ACCOUNT= seebk
GH_PROJECT= GIMP-Lensfun
GH_TAGNAME= d0a0bd2
PLUGIN_DIR?= libexec/gimp/2.2/plug-ins
PLUGINS= gimp-lensfun
# installed files
.for plugin in ${PLUGINS}
PLIST_FILES+= ${PLUGIN_DIR}/${plugin}
.endfor
post-patch:
@${REINPLACE_CMD} \
-e 's|gimptool-2.0|${LOCALBASE}/bin/gimptool-2.0|' \
${WRKSRC}/Makefile
# CCI support has been removed from recent versions of lensfun
@${REINPLACE_CMD} -e '/CCI/d' ${WRKSRC}/src/gimplensfun.cpp
do-install:
@${MKDIR} ${STAGEDIR}${PREFIX}/${PLUGIN_DIR}
.for plugin in ${PLUGINS}
${INSTALL_PROGRAM} ${WRKSRC}/${plugin} ${STAGEDIR}${PREFIX}/${PLUGIN_DIR}
.endfor
.include <bsd.port.mk>
|