aboutsummaryrefslogtreecommitdiffstats
path: root/audio/xmms-a52dec/Makefile
blob: 4c0ff3494f45923009ed16607628e6af4634a8e1 (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
# Created by: Amar Takhar <verm@drunkmonk.net>
# $FreeBSD$

PORTNAME=   xmms-a52dec
PORTVERSION=    1.0
PORTREVISION=   5
CATEGORIES= audio
MASTER_SITES=   SF

MAINTAINER= ports@FreeBSD.org
COMMENT=    A52 (aka AC3) decoder plugin for XMMS

LIB_DEPENDS=    libxmms.so:${PORTSDIR}/multimedia/xmms \
        liba52.so:${PORTSDIR}/audio/liba52
RUN_DEPENDS=    ${LOCALBASE}/lib/xmms/Output/libOSSSurround.so:${PORTSDIR}/audio/xmms-osssurround

USE_BZIP2=  yes
USE_GNOME=  gtk12
CFLAGS+=    `xmms-config --cflags` -L${LOCALBASE}/lib

.include <bsd.port.pre.mk>
.if ${ARCH} == "amd64"
CFLAGS+=    -fPIC
.endif

PLIST_FILES=    lib/xmms/Input/liba52dec.so

do-build:
    cd ${WRKSRC} && ${CC} ${CFLAGS} -shared -o liba52dec.so xmms-a52dec.c -la52

do-install:
    ${MKDIR} ${STAGEDIR}${PREFIX}/lib/xmms/Input
    ${INSTALL_PROGRAM} ${WRKSRC}/liba52dec.so \
        ${STAGEDIR}${PREFIX}/lib/xmms/Input/

.include <bsd.port.post.mk>