contrib/libcanberra/Pkgfile

37 lines
1.2 KiB
Plaintext
Raw Normal View History

2018-02-23 10:45:14 +01:00
# Description: A small and lightweight implementation of the XDG Sound Theme Specification
# URL: http://0pointer.de/lennart/projects/libcanberra
2019-09-12 13:55:01 +02:00
# Maintainer: Tim Biermann, tbier at posteo dot de
2024-02-17 14:12:31 +01:00
# Depends on: libvorbis
# Optional: alsa-lib gstreamer gtk gtk3 pulseaudio tdb lynx
2018-02-23 10:45:14 +01:00
name=libcanberra
version=0.30
2024-02-17 14:12:31 +01:00
release=4
2018-02-23 10:45:14 +01:00
source=(http://0pointer.de/lennart/projects/libcanberra/libcanberra-$version.tar.xz
2020-11-03 20:16:51 +01:00
libcanberra-broadway-fix.patch libcanberra-multi-backend.patch)
2018-02-23 10:45:14 +01:00
build() {
2019-09-12 13:55:01 +02:00
cd $name-$version
2024-02-17 14:12:31 +01:00
2019-09-12 13:55:01 +02:00
patch -p1 -i $SRC/libcanberra-broadway-fix.patch
patch -p1 -i $SRC/libcanberra-multi-backend.patch
2018-02-23 10:45:14 +01:00
2024-02-17 14:12:31 +01:00
prt-get isinst alsa-lib && PKGMK_LIBCANBERRA+=' --enable-alsa'
prt-get isinst gstreamer && PKGMK_LIBCANBERRA+=' --enable-gstreamer'
prt-get isinst gtk && PKGMK_LIBCANBERRA+=' --enable-gtk'
prt-get isinst gtk3 && PKGMK_LIBCANBERRA+=' --enable-gtk3'
prt-get isinst pulseaudio && PKGMK_LIBCANBERRA+=' --enable-pulse'
2022-11-13 17:21:19 +01:00
./configure --prefix=/usr $PKGMK_LIBCANBERRA \
2024-02-17 14:12:31 +01:00
--enable-udev \
2019-09-12 13:55:01 +02:00
--disable-oss \
--disable-static \
2024-02-17 14:12:31 +01:00
--disable-gtk-{doc,doc-html,doc-pdf} \
2019-09-12 13:55:01 +02:00
--with-builtin=dso \
--with-pic
make
make -j1 DESTDIR=$PKG install
2018-02-23 10:45:14 +01:00
2024-02-17 14:12:31 +01:00
rm -r $PKG/usr/share/{doc,gtk-doc}
2018-02-23 10:45:14 +01:00
}