summaryrefslogtreecommitdiffstats
path: root/audio/libcanberra/Makefile
blob: 63a21d8885e265a3746ff3c6472faacf9ab1f38a (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
# Created by: Joe Marcus Clarke <marcus@FreeBSD.org>
# $FreeBSD$
#   $MCom$

PORTNAME=   libcanberra
PORTVERSION=    0.28
PORTREVISION=   4
CATEGORIES= audio devel
MASTER_SITES=   http://0pointer.de/lennart/projects/libcanberra/

MAINTAINER= gnome@FreeBSD.org
COMMENT=    Implementation of the Freedesktop sound theme spec

LICENSE=    LGPL21
LICENSE_FILE=   ${WRKSRC}/LGPL

LIB_DEPENDS=    libvorbisfile.so:${PORTSDIR}/audio/libvorbis

USES=       gmake libtool pathfix pkgconfig
USE_GNOME=  gnomeprefix gnomehier gtk20 gconf2
USE_LDCONFIG=   yes
GNU_CONFIGURE=  yes
CONFIGURE_ARGS= --disable-lynx --disable-tdb --disable-alsa
CPPFLAGS+=  -I${LOCALBASE}/include
LDFLAGS+=   -L${LOCALBASE}/lib
INSTALL_TARGET= install-strip

.if !defined(SLAVEPORT)
GCONF_SCHEMAS=  libcanberra.schemas
.else
OPTIONS_DEFINE= PULSEAUDIO GSTREAMER
.endif

PLIST_SUB=  VERSION=${PORTVERSION}

.include <bsd.port.options.mk>

.if defined(SLAVEPORT)
USE_GNOME+= gtk30
LIB_DEPENDS+=   libcanberra.so:${PORTSDIR}/audio/libcanberra
CONFIGURE_ARGS+=--enable-gtk3
.else
CONFIGURE_ARGS+=--disable-gtk3

.if ${PORT_OPTIONS:MPULSEAUDIO}
LIB_DEPENDS+=   libpulse.so:${PORTSDIR}/audio/pulseaudio
PLIST_SUB+= PULSE=""
.else
CONFIGURE_ARGS+=--disable-pulse
PLIST_SUB+= PULSE="@comment "
.endif

.if ${PORT_OPTIONS:MGSTREAMER}
USE_GSTREAMER=  yes
PLIST_SUB+= GSTREAMER=""
.else
CONFIGURE_ARGS+=--disable-gstreamer
PLIST_SUB+= GSTREAMER="@comment "
.endif

.endif # end slaveport

post-patch:
    @${REINPLACE_CMD} -e 's|-Wmissing-include-dirs||g' \
            ${WRKSRC}/configure

.include <bsd.port.mk>