# New ports collection makefile for:	potracegui
# Date created:				Tue Jun 22 10:03:28 CEST 2004
# Whom:					Markus Brueffer <markus@FreeBSD.org>
#
# $FreeBSD: branches/RELEASE_8_4_0/graphics/potracegui/Makefile 309662 2012-12-30 12:03:51Z beat $
#

PORTNAME=	potracegui
PORTVERSION=	1.3.4
PORTREVISION=	7
CATEGORIES=	graphics kde
MASTER_SITES=	SF

MAINTAINER=	ports@FreeBSD.org
COMMENT=	GUI for potrace, a program for tracing bitmap images

EXTRA_PATCHES=	${.CURDIR}/../../x11/kde3/files/extrapatch-configure

DEPRECATED=	Depends on QT3; unmaintained
EXPIRATION_DATE=	2013-07-01

USE_BZIP2=	yes
USE_KDELIBS_VER=3
USE_GMAKE=	yes
USE_AUTOTOOLS=	libtool

OPTIONS_DEFINE=	POTRACE AUTOTRACE
OPTIONS_DEFAULT=	POTRACE AUTOTRACE
POTRACE_DESC=	potrace backend
AUTOTRACE_DESC=	Autotrace backend

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MPOTRACE}
RUN_DEPENDS+=	potrace:${PORTSDIR}/graphics/potrace
.endif

.if ${PORT_OPTIONS:MAUTOTRACE}
RUN_DEPENDS+=	autotrace:${PORTSDIR}/graphics/autotrace
.endif

post-patch:
	@${TOUCH} ${WRKSRC}/aclocal.m4 ${WRKSRC}/config.h.in
	@${FIND} ${WRKSRC} -name Makefile.in | ${XARGS} ${TOUCH}
	@${REINPLACE_CMD} -e 's|-O2||g' ${WRKSRC}/${CONFIGURE_SCRIPT}

.include <bsd.port.mk>
