# New ports collection makefile for:	xmms-openspc
# Date created:				11 June 2005
# Whom:					Emanuel Haupt <ehaupt@critical.ch>
#
# $FreeBSD: ports/audio/xmms-openspc/Makefile,v 1.13 2009/03/30 14:18:26 ehaupt Exp $
#

PORTNAME=	openspc
PORTVERSION=	0.0.3
PORTREVISION=	4
CATEGORIES=	audio
MASTER_SITES=	CRITICAL
PKGNAMEPREFIX=	xmms-
DISTNAME=	xmms-OpenSPC-${PORTVERSION}

MAINTAINER=	ehaupt@FreeBSD.org
COMMENT=	An SPC player for XMMS using OpenSPC

BUILD_DEPENDS=	nasm:${PORTSDIR}/devel/nasm \
		xmms:${PORTSDIR}/multimedia/xmms
RUN_DEPENDS=	xmms:${PORTSDIR}/multimedia/xmms

MAKE_JOBS_SAFE=	yes

PLIST_FILES=	lib/xmms/Input/openspc.la \
		lib/xmms/Input/openspc.so

ONLY_FOR_ARCHS=	i386	# contains x86 assembler code
GNU_CONFIGURE=	yes

post-patch:
	@${REINPLACE_CMD} -e '/objformat=/s|=.*|=elf|' ${WRKSRC}/configure

.include <bsd.port.mk>
