aboutsummaryrefslogtreecommitdiff
path: root/audio/xmms-wma/Makefile
blob: 941a8ef70ee36049d590c09e7e477f4c09c156a7 (plain) (blame)
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
41
42
43
44
45
46
47
# New ports collection makefile for:   xmms-wma
# Date created:        26 Feb 2004
# Whom:            Roman Bogorodskiy
#
# $FreeBSD$
#

PORTNAME=	xmms-wma
PORTVERSION=	1.0.4.1
PORTREVISION=	1
CATEGORIES=	audio
MASTER_SITES=	http://mcmcc.bat.ru/xmms-wma/

MAINTAINER=	ports@FreeBSD.org
COMMENT=	WMA plugin for xmms

LIB_DEPENDS=	xmms.4:${PORTSDIR}/multimedia/xmms

USE_REINPLACE=	yes
USE_BZIP2=	yes
USE_GMAKE=	yes
USE_X_PREFIX=	yes
CFLAGS+=	-fpic -DPIC

ONLY_FOR_ARCHS=	i386 amd64

PLIST_FILES=	lib/xmms/Input/libwma.so

.if defined(WITH_ICONV)
CFLAGS+=	-DUSE_ICONV
USE_ICONV=	yes
.endif

pre-everything::
.if !defined(WITH_ICONV)
	@${ECHO_MSG} "You may specify the following on the command line:"
	@${ECHO_MSG} " "
	@${ECHO_MSG} "WITH_ICONV=yes	Enable tag recoding support using iconv"
	@${ECHO_MSG} " "
.endif

post-extract:
	@${REINPLACE_CMD} -e 's|gcc|${CC}|g' ${WRKSRC}/Makefile.inc
	@${REINPLACE_CMD} -e 's|gcc|${CC}|g' ${WRKSRC}/ffmpeg-strip-wma/config.mak
	@${REINPLACE_CMD} -e 's|CFLAGS :=|CFLAGS := ${CFLAGS}|g' ${WRKSRC}/Makefile.inc

.include <bsd.port.mk>