aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2022-05-19 16:12:41 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2022-05-19 16:20:28 +0000
commit1ac2359a88f69ac1dba2e9eef8ab0402fd244850 (patch)
tree4f92c456134638f5175be30d33636c0c370d6560
parent274d6cb1a528615b4616f179f77e47e766a0f146 (diff)
downloadports-1ac2359a88f69ac1dba2e9eef8ab0402fd244850.tar.gz
ports-1ac2359a88f69ac1dba2e9eef8ab0402fd244850.zip
-rw-r--r--audio/libcanberra-gtk2/Makefile4
-rw-r--r--audio/libcanberra-gtk3/Makefile4
-rw-r--r--audio/libcanberra/Makefile11
-rw-r--r--audio/libcanberra/files/patch-libcanberra-gtk.pc.in11
-rw-r--r--audio/libcanberra/files/patch-libcanberra-gtk3.pc.in11
-rw-r--r--audio/libcanberra/pkg-plist3
6 files changed, 40 insertions, 4 deletions
diff --git a/audio/libcanberra-gtk2/Makefile b/audio/libcanberra-gtk2/Makefile
index 80b43da73f6e..047d9d77e49c 100644
--- a/audio/libcanberra-gtk2/Makefile
+++ b/audio/libcanberra-gtk2/Makefile
@@ -4,4 +4,8 @@
MASTERDIR= ${.CURDIR:H}/libcanberra
SLAVEPORT= gtk2
+post-install:
+ @${MKDIR} ${STAGEDIR}/${PREFIX}/include/canberra-gtk2
+ @${MV} ${STAGEDIR}/${PREFIX}/include/canberra-gtk.h ${STAGEDIR}/${PREFIX}/include/canberra-gtk2
+
.include "${MASTERDIR}/Makefile"
diff --git a/audio/libcanberra-gtk3/Makefile b/audio/libcanberra-gtk3/Makefile
index cccd151f3676..2b81f4d539d7 100644
--- a/audio/libcanberra-gtk3/Makefile
+++ b/audio/libcanberra-gtk3/Makefile
@@ -4,4 +4,8 @@
MASTERDIR= ${.CURDIR:H}/libcanberra
SLAVEPORT= gtk3
+post-install:
+ @${MKDIR} ${STAGEDIR}/${PREFIX}/include/canberra-gtk3
+ @${MV} ${STAGEDIR}/${PREFIX}/include/canberra-gtk.h ${STAGEDIR}/${PREFIX}/include/canberra-gtk3
+
.include "${MASTERDIR}/Makefile"
diff --git a/audio/libcanberra/Makefile b/audio/libcanberra/Makefile
index 4f2d3d9262a9..7535bb147d9f 100644
--- a/audio/libcanberra/Makefile
+++ b/audio/libcanberra/Makefile
@@ -3,7 +3,7 @@
PORTNAME= libcanberra
PORTVERSION= 0.30
-PORTREVISION= 6
+PORTREVISION= 7
CATEGORIES= audio devel
MASTER_SITES= http://0pointer.de/lennart/projects/libcanberra/ \
http://pkgs.fedoraproject.org/repo/pkgs/libcanberra/libcanberra-0.30.tar.xz/34cb7e4430afaf6f447c4ebdb9b42072/
@@ -35,13 +35,17 @@ PKGNAMESUFFIX= -${SLAVEPORT}
USE_GNOME+= gtk30
LIB_DEPENDS+= libcanberra.so:audio/libcanberra
CONFIGURE_ARGS+= --enable-gtk3 \
- --disable-gtk
+ --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-gtk3 \
+ --disable-gstreamer \
+ --disable-pulse
PLIST_SUB+= BASE="@comment " GTK3="@comment " GTK2=""
.else
CONFIGURE_ARGS+= --disable-gtk \
@@ -61,4 +65,5 @@ post-patch:
@${REINPLACE_CMD} -e 's|-Wmissing-include-dirs||g' \
${WRKSRC}/configure
+
.include <bsd.port.mk>
diff --git a/audio/libcanberra/files/patch-libcanberra-gtk.pc.in b/audio/libcanberra/files/patch-libcanberra-gtk.pc.in
new file mode 100644
index 000000000000..9fae2df88c29
--- /dev/null
+++ b/audio/libcanberra/files/patch-libcanberra-gtk.pc.in
@@ -0,0 +1,11 @@
+--- libcanberra-gtk.pc.in.orig 2022-05-19 16:04:44 UTC
++++ libcanberra-gtk.pc.in
+@@ -1,7 +1,7 @@ libdir=@libdir@
+ prefix=@prefix@
+ exec_prefix=${prefix}
+ libdir=@libdir@
+-includedir=@includedir@
++includedir=@includedir@/canberra-gtk2
+
+ Name: libcanberra-gtk
+ Description: Gtk Event Sound API
diff --git a/audio/libcanberra/files/patch-libcanberra-gtk3.pc.in b/audio/libcanberra/files/patch-libcanberra-gtk3.pc.in
new file mode 100644
index 000000000000..5238c31eac22
--- /dev/null
+++ b/audio/libcanberra/files/patch-libcanberra-gtk3.pc.in
@@ -0,0 +1,11 @@
+--- libcanberra-gtk3.pc.in.orig 2022-05-19 16:04:19 UTC
++++ libcanberra-gtk3.pc.in
+@@ -1,7 +1,7 @@ libdir=@libdir@
+ prefix=@prefix@
+ exec_prefix=${prefix}
+ libdir=@libdir@
+-includedir=@includedir@
++includedir=@includedir@/canberra-gtk3
+
+ Name: libcanberra-gtk3
+ Description: Gtk3 Event Sound API
diff --git a/audio/libcanberra/pkg-plist b/audio/libcanberra/pkg-plist
index e92f3d0a6c9a..a24f785cf019 100644
--- a/audio/libcanberra/pkg-plist
+++ b/audio/libcanberra/pkg-plist
@@ -1,5 +1,6 @@
%%GTK2%%bin/canberra-gtk-play
-%%GTK2%%include/canberra-gtk.h
+%%GTK2%%include/canberra-gtk2/canberra-gtk.h
+%%GTK3%%include/canberra-gtk3/canberra-gtk.h
%%BASE%%include/canberra.h
%%GTK2%%lib/gnome-settings-daemon-3.0/gtk-modules/canberra-gtk-module.desktop
%%GTK2%%lib/gtk-2.0/modules/libcanberra-gtk-module.so