# $MidnightBSD: trunk/audio/timemachine/Makefile 15462 2013-09-17 03:15:41Z laffer1 $

PORTNAME=	timemachine
PORTVERSION=	0.3.3
PORTREVISION=	3
CATEGORIES=	audio
MASTER_SITES=	http://plugin.org.uk/timemachine/

MAINTAINER=	ports@MidnightBSD.org
COMMENT=	JACK audio capture tool

LICENSE=	gpl2

LIB_DEPENDS=	jack:${PORTSDIR}/audio/jack \
		lo:${PORTSDIR}/audio/liblo \
		sndfile:${PORTSDIR}/audio/libsndfile

OPTIONS_DEFINE=	LASH

USES=        pathfix
USE_GNOME=	gtk20
USE_GMAKE=	yes
GNU_CONFIGURE=	yes
LDFLAGS+=	-lm

.include <bsd.mport.options.mk>

.if ${PORT_OPTIONS:MLASH}
LIB_DEPENDS+=	lash:${PORTSDIR}/audio/lash
.else
CONFIGURE_ARGS+=--disable-lash
.endif

post-patch:
	@${REINPLACE_CMD} -e \
		'/^PACKAGE_CFLAGS=/s|-g||; \
		 /^PACKAGE_LIBS=/s|-g||' ${WRKSRC}/configure

.include <bsd.port.mk>
