# Created by: Emanuel Haupt <ehaupt@critical.ch>
# $FreeBSD: head/audio/xmms-nsf/Makefile 419817 2016-08-08 11:18:50Z ehaupt $

PORTNAME=	xmms-nsf
PORTVERSION=	0.0.3
PORTREVISION=	8
CATEGORIES=	audio
MASTER_SITES=	http://optronic.sourceforge.net/files/ \
		LOCAL/ehaupt

MAINTAINER=	ehaupt@FreeBSD.org
COMMENT=	XMMS input-plugin for playing Nintendo(TM) NSF audio files

LICENSE=	GPLv2

BUILD_DEPENDS=	xmms:multimedia/xmms
RUN_DEPENDS=	xmms:multimedia/xmms

GNU_CONFIGURE=	yes
USES=		gettext-runtime libtool
USE_GNOME=	glib12 gtk12
USE_XORG=	x11 xext xi
USE_LDCONFIG=	yes
USE_CSTD=	gnu89
CONFIGURE_ARGS=	--disable-static --with-pic

ONLY_FOR_ARCHS=	i386 amd64

PLIST_FILES=	lib/xmms/Input/libnsf.so

SUB_FILES=	pkg-message
SUB_LIST=	VERSION=${PORTVERSION}

post-patch:
	@${REINPLACE_CMD} -e 's|<malloc\.h>|<stdlib.h>|' \
		${WRKSRC}/src/nes/nestypes.h

post-install:
	${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/xmms/Input/libnsf.so

.include <bsd.port.mk>
