# Created by: Will Andrews <andrews@technologist.com>
# $FreeBSD: graphics/zimg/Makefile 327733 2013-09-20 18:35:44Z bapt $

PORTNAME=	zimg
PORTVERSION=	5.0.0
PORTREVISION=	6
CATEGORIES=	graphics
MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION}

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Image-generator that uses ASCII input files to create PNGs/EDFs

LIB_DEPENDS=	gd:${PORTSDIR}/graphics/gd

GNU_CONFIGURE=	yes
CONFIGURE_ARGS=	--with-dynaload-cc="${CC}" \
		--with-dynaload-cflags="${CFLAGS} -shared" \
		--with-gd-includes="${LOCALBASE}/include" \
		--with-gd-lib="${LOCALBASE}/lib"

MAN1=		zimg.1
PLIST_FILES=	include/zimg.h bin/zimg

CFLAGS+=	-DHAVE_GD_FREETYPE

NO_STAGE=	yes
.include <bsd.port.mk>
