# New ports collection makefile for:	gifsicle
# Date created:			19 December 1998
# Whom:				Brad Hendrickse <bradh@iafrica.com>
#
# $FreeBSD: ports/graphics/gifsicle/Makefile,v 1.16 2003/02/21 12:15:11 knu Exp $
#

PORTNAME=	gifsicle
PORTVERSION=	1.35
CATEGORIES=	graphics
MASTER_SITES=	http://www.lcdf.org/gifsicle/

MAINTAINER=	bradh@uunet.co.za
COMMENT=	Manipulates GIF images and animations

GNU_CONFIGURE=	yes

MAN1=		gifdiff.1 gifsicle.1

.if !defined(HAVE_UNISYS_LICENSE)
CONFIGURE_ARGS+=	--enable-ungif
.endif

.if defined(WITHOUT_X11)
PKGNAMESUFFIX=	-nox11
CONFIGURE_ARGS+=	--without-x --disable-gifview
PLIST_SUB=	X11='@comment '
.else
USE_XLIB=	yes
MAN1+=		gifview.1
PLIST_SUB=	X11=''
.endif

post-install:
.if !defined(NOPORTDOCS)
	@${MKDIR} ${DOCSDIR}
	${INSTALL_MAN} ${WRKSRC}/README ${DOCSDIR}
.endif

.include <bsd.port.mk>
