# New ports collection makefile for:	glame
# Date created:				26 September 2000
# Whom:					Maxim Sobolev <sobomax@FreeBSD.org>
#
# $FreeBSD: ports/audio/glame/Makefile,v 1.23 2004/03/26 08:13:03 vs Exp $
#

PORTNAME=	glame
PORTVERSION=	1.0.2
CATEGORIES=	audio gnome
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR=	${PORTNAME}

MAINTAINER=	ports@FreeBSD.org
COMMENT=	A powerful, fast, stable, and easily extensible sound editor for GNOME

BUILD_DEPENDS=	${LOCALBASE}/include/ladspa.h:${PORTSDIR}/audio/ladspa
LIB_DEPENDS=	vorbis.3:${PORTSDIR}/audio/libvorbis \
		ltdl.4:${PORTSDIR}/devel/libltdl

USE_X_PREFIX=	yes
USE_GNOME=	gnomehack gnomeprefix gnometarget libglade lthack
USE_GMAKE=	yes
USE_LIBTOOL_VER=	13
CONFIGURE_ENV=	CPPFLAGS="-I${LOCALBASE}/include ${PTHREAD_CFLAGS}" \
		LDFLAGS="-L${LOCALBASE}/lib -lltdl ${PTHREAD_LIBS}" \
		MAKEINFO="makeinfo --no-split"

INFO=		glame glame-dev

post-extract:
	@cd ${WRKSRC}/doc && ${RM} -f *.info*

post-patch:
	@${REINPLACE_CMD} -e 's| libltdl||g ; \
		 s|,$$LIBLTDL,|,,|g ; \
		 s|,$$LTDLINCL,|,,|g ; \
		 s|,$$LTLIBOBJS,|,,|g' ${WRKSRC}/configure

.include <bsd.port.mk>
