aboutsummaryrefslogtreecommitdiffstats
path: root/audio/xmms-faad/Makefile
blob: b229ff049a26b9e673a0963cbdc6623ef6e1debe (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
# New ports collection makefile for:    xmms-faad
# Date created:         23 Feb, 2002
# Whom:             David Yeske <dyeske@yahoo.com>
#
# $FreeBSD$
#

PORTNAME=   faad2
PORTVERSION=    1.1
CATEGORIES= audio
MASTER_SITES=   http://faac.sourceforge.net/files/
PKGNAMEPREFIX=  xmms-

MAINTAINER= dyeske@yahoo.com
COMMENT=    XMMS plugin for faad

BUILD_DEPENDS=  xmms-config:${PORTSDIR}/multimedia/xmms
LIB_DEPENDS=    id3-3.8.2:${PORTSDIR}/audio/id3lib \
        xmms.3:${PORTSDIR}/multimedia/xmms \
        faad.0:${PORTSDIR}/audio/faad

USE_X_PREFIX=   yes
USE_GMAKE=  yes
USE_REINPLACE=  yes
ALL_TARGET=

WRKSRC=     ${WRKDIR}/${PORTNAME}/plugins/xmms

DESCR=      ${PORTSDIR}/audio/faad/pkg-descr
MD5_FILE=   ${PORTSDIR}/audio/faad/distinfo

post-patch:
    @${REINPLACE_CMD} -e \
        's|gcc|${CC} ${CFLAGS}|; \
        s|-I/usr/include/glib-1.2/||; \
        s|-lfaad2|-lfaad -lstdc++|; \
        s|-I/usr/lib/glib/include|-L${LOCALBASE}/lib|; \
        s|-I/usr/include/gtk-1.2/|\`xmms-config --cflags\`|' \
        ${WRKSRC}/Makefile

do-install:
    @${INSTALL_PROGRAM} ${WRKSRC}/libaac-XMMS.so ${PREFIX}/lib/xmms/Input/

.include <bsd.port.mk>