Prune audio/clementine-player
[dports.git] / audio / libcanberra / Makefile
1 # Created by: Joe Marcus Clarke <marcus@FreeBSD.org>
2 # $FreeBSD$
3 #   $MCom: ports/trunk/audio/libcanberra/Makefile 20031 2014-11-02 21:47:55Z kwm $
4
5 PORTNAME=       libcanberra
6 PORTVERSION=    0.30
7 PORTREVISION=   3
8 CATEGORIES=     audio devel
9 MASTER_SITES=   http://0pointer.de/lennart/projects/libcanberra/ \
10                 http://pkgs.fedoraproject.org/repo/pkgs/libcanberra/libcanberra-0.30.tar.xz/34cb7e4430afaf6f447c4ebdb9b42072/
11
12 MAINTAINER=     gnome@FreeBSD.org
13 COMMENT=        Implementation of the Freedesktop sound theme spec
14
15 LICENSE=        LGPL21
16 LICENSE_FILE=   ${WRKSRC}/LGPL
17
18 LIB_DEPENDS=    libvorbisfile.so:audio/libvorbis \
19                 libltdl.so:devel/libltdl
20
21 USES=           gmake libtool pathfix pkgconfig tar:xz
22 USE_GNOME=      gnomeprefix gtk20
23 USE_LDCONFIG=   yes
24 GNU_CONFIGURE=  yes
25 CONFIGURE_ARGS= --disable-lynx --disable-tdb --disable-alsa
26 CPPFLAGS+=      -I${LOCALBASE}/include
27 LDFLAGS+=       -L${LOCALBASE}/lib
28 INSTALL_TARGET= install-strip
29
30 .if defined(SLAVEPORT)
31 OPTIONS_DEFINE= PULSEAUDIO GSTREAMER
32 .endif
33
34 PLIST_SUB=      VERSION=${PORTVERSION}
35
36 .include <bsd.port.options.mk>
37
38 .if defined(SLAVEPORT)
39 USE_GNOME+=     gtk30
40 LIB_DEPENDS+=   libcanberra.so:audio/libcanberra
41 CONFIGURE_ARGS+=--enable-gtk3
42 .else
43 CONFIGURE_ARGS+=--disable-gtk3
44
45 .if ${PORT_OPTIONS:MPULSEAUDIO}
46 LIB_DEPENDS+=   libpulse.so:audio/pulseaudio
47 PLIST_SUB+=     PULSE=""
48 .else
49 CONFIGURE_ARGS+=--disable-pulse
50 PLIST_SUB+=     PULSE="@comment "
51 .endif
52
53 .if ${PORT_OPTIONS:MGSTREAMER}
54 USE_GSTREAMER1= yes
55 PLIST_SUB+=     GSTREAMER=""
56 .else
57 CONFIGURE_ARGS+=--disable-gstreamer
58 PLIST_SUB+=     GSTREAMER="@comment "
59 .endif
60
61 .endif # end slaveport
62
63 post-patch:
64         @${REINPLACE_CMD} -e 's|-Wmissing-include-dirs||g' \
65                 ${WRKSRC}/configure
66
67 .include <bsd.port.mk>