# Created by: Emanuel Haupt <ehaupt@FreeBSD.org>
# $FreeBSD: tags/RELEASE_10_3_0/audio/audacious-dumb/Makefile 388545 2015-06-04 19:53:09Z oliver $

PORTNAME=	audacious-dumb
PORTVERSION=	0.83
PORTREVISION=	1
CATEGORIES=	audio
MASTER_SITES=	http://www.netswarm.net/misc/ \
		LOCAL/ehaupt

MAINTAINER=	ehaupt@FreeBSD.org
COMMENT=	Audacious plugin that support the IT, XM, S3M, or MOD formats

LICENSE=	GPLv2

RUN_DEPENDS=	audacious:${PORTSDIR}/multimedia/audacious
BUILD_DEPENDS=	audacious:${PORTSDIR}/multimedia/audacious \
		${LOCALBASE}/lib/libdumb.a:${PORTSDIR}/audio/dumb

BROKEN=		Does not compile with audacious 3.6.x.
USES=		gmake pkgconfig
USE_LDCONFIG=	yes

post-patch:
	@${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|g' ${WRKSRC}/Makefile

post-install:
	@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/audacious/Input/dumb.so

.include <bsd.port.mk>
