freebsd-ports/graphics/gimp-lensfun-plugin/Makefile
Dima Panov b9f2c0fc9d graphics/gimp-lensfun-plugin: update to latest git commit
- Take maintainership
- Update to latest 0.2.5-dev commit with fixes:
** Sony lens not detected
** Add GoPro to CameraMakers list
** Wrong lens detected for Fujifilm X-E2
** Fix for exiv2 >=0.27.1
2021-01-05 18:34:09 +00:00

49 lines
1.2 KiB
Makefile

# Created by: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>
# $FreeBSD$
PORTNAME= lensfun
DISTVERSION= 0.2.5-dev
CATEGORIES= graphics
PKGNAMEPREFIX= gimp-
PKGNAMESUFFIX= -plugin
MAINTAINER= fluffy@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= c5eaf97
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>