# Created by: Dmitry Marakasov <amdmi3@FreeBSD.org>
# $FreeBSD: head/graphics/autopano-sift-c/Makefile 455260 2017-12-01 11:08:55Z amdmi3 $

PORTNAME=	autopano-sift-C
PORTVERSION=	2.5.1
PORTREVISION=	5
CATEGORIES=	graphics
MASTER_SITES=	SF/hugin/${PORTNAME}/${PORTNAME}-${PORTVERSION}

MAINTAINER=	amdmi3@FreeBSD.org
COMMENT=	Automatic panorama control point generation tool, C port

LIB_DEPENDS=	libtiff.so:graphics/tiff \
		libpng.so:graphics/png \
		libpano13.so:graphics/libpano13

RESTRICTED=	May be covered by patents

CONFLICTS=	autopano-sift-[0-9]*

USE_GNOME=	libxml2
USES=		cmake jpeg

PORTDOCS=	*

OPTIONS_DEFINE=	DOCS

post-patch:
	@${REINPLACE_CMD} -e 's|share/man|man|' -e '/set(all_libs/s/$$/ m/' \
		${WRKSRC}/CMakeLists.txt

post-install-DOCS-on:
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/README.1ST ${STAGEDIR}${DOCSDIR}/

.include <bsd.port.mk>
