# $OpenBSD: Makefile,v 1.22 2005/12/11 16:45:14 alek Exp $

COMMENT=	"creating & editing GIF images and animations"

DISTNAME=	gifsicle-1.44
CATEGORIES=    	graphics

MAINTAINER=	Eric Faurot <eric.faurot@gmail.com>

PERMIT_PACKAGE_CDROM=	Yes
PERMIT_PACKAGE_FTP=	Yes
PERMIT_DISTFILES_CDROM=	Yes
PERMIT_DISTFILES_FTP=	Yes
WANTLIB=		c

HOMEPAGE=	http://www.lcdf.org/gifsicle/

MASTER_SITES=	${HOMEPAGE}/ \
		ftp://ftp.lcdf.org/pub/ \
		ftp://ftp.lcdf.org/pub/OLD-VERSIONS/

FLAVORS=	no_x11
FLAVOR?=

CONFIGURE_STYLE=	gnu
CONFIGURE_ARGS=		--enable-gifdiff

SEPARATE_BUILD=		concurrent

.if ${FLAVOR:L:Mno_x11}
CONFIGURE_ARGS+=	--disable-gifview
.else
USE_X11=	Yes
WANTLIB+=	ICE SM X11
.endif

.include <bsd.port.mk>
