aboutsummaryrefslogtreecommitdiffstats
path: root/audio/xmms2/Makefile
blob: 492f964876df736a265e10eb9ac3fb4c17c3443c (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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
# New ports collection makefile for:    xmms2
# Date created:             20 May 2005
# Whom:                 Alexander Botero-Lowry <alex@foxybanana.com>
#
# $FreeBSD$
#

PORTNAME=   xmms2
DISTVERSION=    0.2DrAlban
CATEGORIES= audio
MASTER_SITES=   ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
DISTNAME=   ${PORTNAME}-${DISTVERSION}

MAINTAINER= alex@foxybanana.com
COMMENT=    Rewrite of xmms as a client/server system (developer release)

BUILD_DEPENDS=  scons:${PORTSDIR}/devel/scons
LIB_DEPENDS=    sqlite3.8:${PORTSDIR}/databases/sqlite3 \
        mad.2:${PORTSDIR}/audio/libmad \
        vorbis.3:${PORTSDIR}/audio/libvorbis

WRKSRC=     ${WRKDIR}/${DISTNAME}

USE_PYTHON= yes
USE_BZIP2=  yes
USE_GNOME=  glib20
INSTALLS_SHLIB= yes

MAN1=       xmms2.1
MAN8=       xmms2d.8
MANCOMPRESSED=  yes

DATADIR=    share/xmms2

.if defined(WITH_CURL)
LIB_DEPENDS+=   curl.3:${PORTSDIR}/ftp/curl
PLIST_SUB+= CURL=""
.else
EXCLUDE+=   curl
PLIST_SUB+= CURL="@comment "
.endif

.if defined(WITH_SID)
LIB_DEPENDS+=   resid.0:${PORTSDIR}/audio/resid \
        sidplay.2:${PORTSDIR}/audio/libsidplay2
PLIST_SUB+= SID=""
.else
EXCLUDE+=   sid
PLIST_SUB+= SID="@comment "
.endif

.if defined(WITH_PYTHON_BINDINGS)
BUILD_DEPENDS+= pyrex:${PORTSDIR}/devel/pyrex
PLIST_SUB+= PYTHON=""
.else
EXCLUDE+=   python
PLIST_SUB+= PYTHON="@comment "
.endif

.if defined(WITH_RUBY_BINDINGS)
USE_RUBY=   yes
PLIST_SUB+= RUBY=""
.else
EXCLUDE+=   ruby
PLIST_SUB+= RUBY="@comment "
.endif

.if defined(WITH_ECORE)
BUILD_DEPENDS+= ecore.1:${PORTSDIR}/x11/ecore
PLIST_SUB+= ECORE=""
.else
EXCLUDE+=   xmmsclient-ecore
PLIST_SUB+= ECORE="@comment "
.endif

.if defined(WITH_FLAC)
BUILD_DEPENDS+= FLAC.7:${PORTSDIR}/audio/flac
PLIST_SUB+= FLAC=""
.else
EXCLUDE+=   flac
PLIST_SUB+= FLAC="@comment "
.endif

.if defined(WITH_FAAD)
BUILD_DEPENDS+= faad.0:${PORTSDIR}/audio/faad
PLIST_SUB+= FAAD=""
#EXTRA_PATCHES+=    ${FILESDIR}/extraPatch-src::clients::faad::Plugin
.else
EXCLUDE+=   faad
PLIST_SUB+= FAAD="@comment "
.endif

.if defined(WITH_SDL)
USE_SDL=    sdl ttf
PLIST_SUB+= SDL=""
#EXTRA_PATCHES+=    ${FILESDIR}/extraPatch-src::clients::sdl-vis::Program
.else
EXCLUDE+=   sdl-vis
PLIST_SUB+= SDL="@comment "
.endif

.if defined(WITH_MUSEPACK)
BUILD_DEPENDS+= mpcdec.3:${PORTSDIR}/audio/libmpcdec
PLIST_SUB+= MUSEPACK=""
.else
EXCLUDE+=   musepack
PLIST_SUB+= MUSEPACK="@comment "
.endif

.if defined(WITH_JACK)
LIB_DEPENDS+=   jack.0:${PORTSDIR}/audio/jack
PLIST_SUB+= JACK=""
.else
EXCLUDE+=   jack
PLIST_SUB+= JACK="@comment "
.endif

.if defined(WITH_MODPLUG)
LIB_DEPENDS+=   modplug.0:${PORTSDIR}/audio/libmodplug
PLIST_SUB+= MODPLUG=""
.else
EXCLUDE+=   modplug
PLIST_SUB+= MODPLUG="@comment "
.endif

.if defined(WITH_SAMBA)
LIB_DEPENDS+=   smbclient.0:${PORTSDIR}/net/samba-libsmbclient
PLIST_SUB+= SAMBA=""
.else
EXCLUDE+=   samba
PLIST_SUB+= SAMBA="@comment "
.endif

.include <bsd.port.pre.mk>

.if ${OSVERSION} < 500000
BROKEN= "Doesn't build on FreeBSD < 5.x"
.endif

do-build:
    cd ${WRKSRC} && \
        scons CC=${CC} LINKFLAGS="${LDFLAGS}" CCFLAGS="${CFLAGS}" \
        LIBPATH=${LOCALBASE}/lib CPPPATH=${LOCALBASE}/include \
        PKGCONFIGDIR=${PREFIX}/libdata/pkgconfig EXCLUDE="${EXCLUDE}"

do-install:
    @cd ${WRKSRC} && scons install

.include <bsd.port.post.mk>