1 # Created by: Joe Marcus Clarke <marcus@FreeBSD.org>
3 # $MCom: ports/trunk/audio/libcanberra/Makefile 20031 2014-11-02 21:47:55Z kwm $
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/
12 MAINTAINER= gnome@FreeBSD.org
13 COMMENT= Implementation of the Freedesktop sound theme spec
16 LICENSE_FILE= ${WRKSRC}/LGPL
18 LIB_DEPENDS= libvorbisfile.so:audio/libvorbis \
19 libltdl.so:devel/libltdl
21 USES= gmake libtool pathfix pkgconfig tar:xz
22 USE_GNOME= gnomeprefix gtk20
25 CONFIGURE_ARGS= --disable-lynx --disable-tdb --disable-alsa
26 CPPFLAGS+= -I${LOCALBASE}/include
27 LDFLAGS+= -L${LOCALBASE}/lib
28 INSTALL_TARGET= install-strip
30 .if defined(SLAVEPORT)
31 OPTIONS_DEFINE= PULSEAUDIO GSTREAMER
34 PLIST_SUB= VERSION=${PORTVERSION}
36 .include <bsd.port.options.mk>
38 .if defined(SLAVEPORT)
40 LIB_DEPENDS+= libcanberra.so:audio/libcanberra
41 CONFIGURE_ARGS+=--enable-gtk3
43 CONFIGURE_ARGS+=--disable-gtk3
45 .if ${PORT_OPTIONS:MPULSEAUDIO}
46 LIB_DEPENDS+= libpulse.so:audio/pulseaudio
49 CONFIGURE_ARGS+=--disable-pulse
50 PLIST_SUB+= PULSE="@comment "
53 .if ${PORT_OPTIONS:MGSTREAMER}
55 PLIST_SUB+= GSTREAMER=""
57 CONFIGURE_ARGS+=--disable-gstreamer
58 PLIST_SUB+= GSTREAMER="@comment "
61 .endif # end slaveport
64 @${REINPLACE_CMD} -e 's|-Wmissing-include-dirs||g' \
67 .include <bsd.port.mk>