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