blob: 72f4a515e136c04d2c08f4fbc8d12bf6f07e3000 (
plain)
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
|
# Created by: Joe Marcus Clarke <marcus@FreeBSD.org>
# $MCom: ports/trunk/audio/libcanberra/Makefile 20031 2014-11-02 21:47:55Z kwm $
PORTNAME= libcanberra
PORTVERSION= 0.30
PORTREVISION= 8
CATEGORIES= audio devel
MASTER_SITES= http://0pointer.de/lennart/projects/libcanberra/ \
http://pkgs.fedoraproject.org/repo/pkgs/libcanberra/libcanberra-0.30.tar.xz/34cb7e4430afaf6f447c4ebdb9b42072/
MAINTAINER= desktop@FreeBSD.org
COMMENT= Implementation of the Freedesktop sound theme spec
LICENSE= LGPL21
LICENSE_FILE= ${WRKSRC}/LGPL
LIB_DEPENDS= libvorbisfile.so:audio/libvorbis \
libltdl.so:devel/libltdl
USES= gmake gnome localbase libtool pathfix pkgconfig tar:xz
USE_LDCONFIG= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --disable-lynx --disable-tdb --disable-alsa --disable-udev
INSTALL_TARGET= install-strip
SLAVEPORT?=
PLIST_SUB= VERSION=${PORTVERSION}
.if ${SLAVEPORT} != ""
PKGNAMESUFFIX= -${SLAVEPORT}
.endif
.if ${SLAVEPORT:U} == gtk3
USE_GNOME+= gtk30
LIB_DEPENDS+= libcanberra.so:audio/libcanberra
CONFIGURE_ARGS+= --enable-gtk3 \
--disable-gtk \
--disable-gstreamer \
--disable-pulse
PLIST_SUB+= BASE="@comment " GTK3="" GTK2="@comment "
.elif ${SLAVEPORT:U} == gtk2
USE_GNOME+= gnomeprefix gtk20
LIB_DEPENDS+= libcanberra.so:audio/libcanberra
CONFIGURE_ARGS+= --enable-gtk \
--disable-gtk3 \
--disable-gstreamer \
--disable-pulse
PLIST_SUB+= BASE="@comment " GTK3="@comment " GTK2=""
.else
CONFIGURE_ARGS+= --disable-gtk \
--disable-gtk3
PLIST_SUB+= BASE="" GTK3="@comment " GTK2="@comment "
OPTIONS_DEFINE= PULSEAUDIO GSTREAMER
OPTIONS_SUB= yes
.endif
PULSEAUDIO_LIB_DEPENDS= libpulse.so:audio/pulseaudio
PULSEAUDIO__CONFIGURE_ENABLE= pulse
GSTREAMER_USES= gstreamer
GSTREAMER_CONFIGURE_ENABLE= gstreamer
post-patch:
@${REINPLACE_CMD} -e 's|-Wmissing-include-dirs||g' \
${WRKSRC}/configure
@${REINPLACE_CMD} -e 's| gtkdoc | |g' \
${WRKSRC}/Makefile.in
.include <bsd.port.mk>
|