# Created by: Sam Lawrance
# $FreeBSD: head/graphics/libgeotiff/Makefile 555823 2020-11-21 09:18:05Z sunpoet $

PORTNAME=	libgeotiff
PORTVERSION=	1.6.0
PORTREVISION=	2
CATEGORIES=	graphics
MASTER_SITES=	https://download.osgeo.org/geotiff/libgeotiff/ \
		LOCAL/sunpoet

MAINTAINER=	sunpoet@FreeBSD.org
COMMENT=	Library for reading and writing GeoTIFF information tags

LICENSE=	MIT
LICENSE_FILE=	${WRKSRC}/LICENSE

BUILD_DEPENDS=	proj>=6,1:graphics/proj
LIB_DEPENDS=	libjbig.so:graphics/jbigkit \
		libproj.so:graphics/proj \
		libtiff.so:graphics/tiff

USES=		jpeg libtool

CONFIGURE_ARGS=	--datadir=${DATADIR} \
		--disable-doxygen-chi \
		--disable-doxygen-chm \
		--disable-doxygen-doc \
		--disable-doxygen-dot \
		--disable-doxygen-html \
		--disable-doxygen-man \
		--disable-doxygen-pdf \
		--disable-doxygen-ps \
		--disable-doxygen-rtf \
		--disable-doxygen-xml \
		--with-jpeg=${LOCALBASE} \
		--with-libtiff=${LOCALBASE} \
		--with-proj=${LOCALBASE} \
		--with-zlib=/usr
CPPFLAGS+=	-fPIC
GNU_CONFIGURE=	yes
INSTALL_TARGET=	install-strip
USE_LDCONFIG=	yes

.include <bsd.port.mk>