# Created by: Mario Sergio Fujikawa Ferreira # $FreeBSD$ PORTNAME= lensfun DISTVERSION= 0.2.4-dev PORTREVISION= 2 CATEGORIES= graphics PKGNAMEPREFIX= gimp- PKGNAMESUFFIX= -plugin MAINTAINER= lioux@FreeBSD.org COMMENT= Gimp plugin to correct lens distortion using the lensfun library LICENSE= GPLv3 BUILD_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/exiv2.pc:${PORTSDIR}/graphics/exiv2 \ ${LOCALBASE}/libdata/pkgconfig/gimp-2.0.pc:${PORTSDIR}/graphics/gimp-app \ ${LOCALBASE}/libdata/pkgconfig/lensfun.pc:${PORTSDIR}/graphics/lensfun RUN_DEPENDS:= ${BUILD_DEPENDS} USES= gmake pkgconfig USE_GITHUB= yes GH_ACCOUNT= seebk GH_PROJECT= GIMP-Lensfun GH_COMMIT= d0a0bd2 GH_TAGNAME= ${GH_COMMIT} PLUGIN_DIR?= libexec/gimp/2.2/plug-ins/ PLUGINS= gimp-lensfun # installed files .for plugin in ${PLUGINS} PLIST_FILES+= ${PLUGIN_DIR}/${plugin} .endfor # installed dirs PLIST_DIRSTRY= libexec/gimp/2.2/plug-ins \ libexec/gimp/2.2 \ libexec/gimp post-patch: @${REINPLACE_CMD} \ -e 's|gimptool-2.0|${LOCALBASE}/bin/gimptool-2.0|' \ ${WRKSRC}/Makefile do-install: @${MKDIR} ${STAGEDIR}${PREFIX}/${PLUGIN_DIR} .for plugin in ${PLUGINS} ${INSTALL_PROGRAM} ${WRKSRC}/${plugin} ${STAGEDIR}${PREFIX}/${PLUGIN_DIR} .endfor .include