summaryrefslogtreecommitdiff
path: root/audio/flac-xmms/Makefile
blob: 8c6453b05dcc205a24677c9a5e62f75ce6875406 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# $NetBSD: Makefile,v 1.2 2001/07/24 10:14:56 wiz Exp $
#

DISTNAME=		flac-1.0-src
PKGNAME=		flac-xmms-1.0
WRKSRC=			${WRKDIR}/flac-1.0
CATEGORIES=		audio archivers
MASTER_SITES=		${MASTER_SITE_SOURCEFORGE:=flac/}

MAINTAINER=		collver@linuxfreemail.com
HOMEPAGE=		http://flac.sourceforge.net
COMMENT=		FLAC xmms plugin

BUILD_DEPENDS+=		automake>=1.4:../../devel/automake
DEPENDS+=		xmms>=1.2.4:../../audio/xmms
DEPENDS+=		flac>=1.0:../../audio/flac

.include "../../mk/bsd.prefs.mk"

.if ${MACHINE_PLATFORM:MNetBSD-*-i386} != ""
BUILD_DEPENDS+=		nasm>=0.98:../../devel/nasm
.endif

GNU_CONFIGURE=		yes
USE_GMAKE=		yes
USE_LIBTOOL=		yes
LTCONFIG_OVERRIDE=	${WRKSRC}/ltconfig

pre-configure:
	(cd ${WRKSRC}/src/libFLAC/ia32 && \
		${MV} Makefile.am Makefile.am.orig && \
		${CP} Makefile.am.libtool-1.4b Makefile.am)
	(cd ${WRKSRC} && ${LOCALBASE}/bin/automake)

do-install:
	${LIBTOOL} --mode=install ${INSTALL_DATA} \
		${WRKSRC}/src/plugin_xmms/libxmms-flac.la \
		${PREFIX}/lib/xmms/Input

.include "../../mk/bsd.pkg.mk"