2012-09-30 06:25:19 +00:00
|
|
|
# Created by: Roman Bogorodskiy <novel@FreeBSD.org>
|
2004-02-28 13:39:35 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
2004-02-28 13:40:37 +00:00
|
|
|
PORTNAME= xmms-wma
|
2006-05-25 20:57:32 +00:00
|
|
|
PORTVERSION= 1.0.5
|
2014-01-19 08:57:40 +00:00
|
|
|
PORTREVISION= 3
|
2004-02-28 13:40:37 +00:00
|
|
|
CATEGORIES= audio
|
2004-06-02 17:25:19 +00:00
|
|
|
MASTER_SITES= http://mcmcc.bat.ru/xmms-wma/
|
2004-02-28 13:39:35 +00:00
|
|
|
|
2013-10-22 18:50:47 +00:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2004-02-28 13:40:37 +00:00
|
|
|
COMMENT= WMA plugin for xmms
|
2004-02-28 13:39:35 +00:00
|
|
|
|
2013-12-11 14:35:36 +00:00
|
|
|
LIB_DEPENDS= libxmms.so:${PORTSDIR}/multimedia/xmms
|
2004-02-28 13:39:35 +00:00
|
|
|
|
2014-01-19 08:57:40 +00:00
|
|
|
OPTIONS_DEFINE= ICONV
|
|
|
|
OPTIONS_DEFAULT=ICONV
|
|
|
|
|
2006-07-08 20:34:21 +00:00
|
|
|
ONLY_FOR_ARCHS= i386 amd64 sparc64
|
2014-01-19 08:57:40 +00:00
|
|
|
|
|
|
|
USE_BZIP2= yes
|
|
|
|
USES= compiler gmake
|
2008-03-14 16:28:12 +00:00
|
|
|
USE_XORG= xi xext x11
|
2014-01-19 08:57:40 +00:00
|
|
|
USE_CSTD= gnu89
|
|
|
|
USE_LDCONFIG= yes
|
|
|
|
|
|
|
|
CFLAGS+= -fPIC -DPIC
|
2004-03-03 10:26:37 +00:00
|
|
|
|
2004-02-28 13:39:35 +00:00
|
|
|
PLIST_FILES= lib/xmms/Input/libwma.so
|
|
|
|
|
2014-01-19 08:57:40 +00:00
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
|
|
|
|
.if ${PORT_OPTIONS:MICONV}
|
|
|
|
USES+= iconv
|
2005-06-13 04:26:08 +00:00
|
|
|
CFLAGS+= -DUSE_ICONV
|
2004-12-12 22:04:19 +00:00
|
|
|
.endif
|
|
|
|
|
2006-07-08 20:34:21 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2014-01-19 08:57:40 +00:00
|
|
|
.if ${CHOSEN_COMPILER_TYPE} == "clang"
|
|
|
|
CFLAGS+= -D__inline__=
|
2005-06-13 04:26:08 +00:00
|
|
|
.endif
|
|
|
|
|
2004-07-14 11:08:29 +00:00
|
|
|
post-extract:
|
2014-01-19 08:57:40 +00:00
|
|
|
@${REINPLACE_CMD} -e \
|
|
|
|
's|^CC :=|CC ?=| ; \
|
|
|
|
s|^CFLAGS :=|CFLAGS += | ; \
|
|
|
|
s|-O[0-9]||' ${WRKSRC}/Makefile.inc
|
|
|
|
@${REINPLACE_CMD} -e \
|
|
|
|
's|^MAKE=|MAKE?=| ; \
|
|
|
|
s|^CC=|CC?=| ; \
|
|
|
|
s|-O[0-9]||' ${WRKSRC}/ffmpeg-strip-wma/config.mak
|
|
|
|
.if ${ARCH} == "sparc64"
|
|
|
|
@${REINPLACE_CMD} -e \
|
|
|
|
s|X86|SPARC64|' ${WRKSRC}/ffmpeg-strip-wma/config.mak
|
|
|
|
@${REINPLACE_CMD} -e \
|
|
|
|
's|#define ARCH_X86 1|#define ARCH_SPARC64 1|' \
|
|
|
|
${WRKSRC}/ffmpeg-strip-wma/config.h
|
2006-07-08 20:34:21 +00:00
|
|
|
.endif
|
2004-07-14 11:08:29 +00:00
|
|
|
|
2014-01-19 08:57:40 +00:00
|
|
|
do-install:
|
|
|
|
@${MKDIR} ${STAGEDIR}${PREFIX}/lib/xmms/Input
|
|
|
|
(cd ${WRKSRC} && ${INSTALL_LIB} libwma.so \
|
|
|
|
${STAGEDIR}${PREFIX}/lib/xmms/Input)
|
|
|
|
|
2006-07-08 20:34:21 +00:00
|
|
|
.include <bsd.port.post.mk>
|