1 # This file is part of the OpenADK project. OpenADK is copyrighted
2 # material, please see the LICENCE file in the top-level directory.
4 include $(ADK_TOPDIR
)/rules.mk
9 PKG_HASH
:= a40b887a3ba98cc26976eb11bdb6613988f145b19024d1b6555c6a03c9cba1a0
10 PKG_DESCR
:= sound system
11 PKG_SECTION
:= mm
/audio
12 PKG_DEPENDS
:= libltdl json-c libsndfile libspeex libncurses
13 PKG_DEPENDS
+= libflac libvorbis libogg libuuid libsndfile
14 PKG_DEPENDS
+= alsa-lib libICE libSM libxtst glib
15 PKG_BUILDDEP
:= libtool json-c libsndfile speex
check meson-host
16 PKG_BUILDDEP
+= flac libvorbis libogg util-linux ncurses alsa-lib
17 PKG_BUILDDEP
+= libICE libSM libXtst glib
19 PKG_URL
:= http
://www.freedesktop.org
/wiki
/Software
/PulseAudio
/
20 PKG_SITES
:= http
://freedesktop.org
/software
/pulseaudio
/releases
/
23 include $(ADK_TOPDIR
)/mk
/package.mk
25 $(eval
$(call PKG_template
,PULSEAUDIO
,pulseaudio
,$(PKG_VERSION
)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
27 WRKBUILD
= $(WRKDIR
)/$(PKG_NAME
)-obj
33 TARGET_CPPFLAGS
+= -D_GNU_SOURCE
-D_POSIX_SOURCE
35 MESON_FLAGS
+= -Ddatabase
=simple \
41 $(INSTALL_DIR
) $(IDIR_PULSEAUDIO
)/etc
/pulse
42 $(CP
) .
/files
/*.
{conf
,pa
} \
43 $(IDIR_PULSEAUDIO
)/etc
/pulse
44 $(INSTALL_DIR
) $(IDIR_PULSEAUDIO
)/usr
/bin
45 $(CP
) $(WRKINST
)/usr
/bin
/* \
46 $(IDIR_PULSEAUDIO
)/usr
/bin
47 $(INSTALL_DIR
) $(IDIR_PULSEAUDIO
)/usr
/lib
48 $(CP
) $(WRKINST
)/usr
/lib
/libpulse
*.so
* \
49 $(IDIR_PULSEAUDIO
)/usr
/lib
50 $(INSTALL_DIR
) $(IDIR_PULSEAUDIO
)/usr
/lib
/pulseaudio
51 $(CP
) $(WRKINST
)/usr
/lib
/pulseaudio
/libpulse
*.so
* \
52 $(IDIR_PULSEAUDIO
)/usr
/lib
/pulseaudio
53 $(INSTALL_DIR
) $(IDIR_PULSEAUDIO
)/usr
/lib
/pulse-
$(PKG_VERSION
)/modules
54 $(CP
) $(WRKINST
)/usr
/lib
/pulse-
$(PKG_VERSION
)/modules
/*.so \
55 $(IDIR_PULSEAUDIO
)/usr
/lib
/pulse-
$(PKG_VERSION
)/modules
56 # pa uses $HOME from root user otherwise
57 mv
$(IDIR_PULSEAUDIO
)/usr
/bin
/pacmd
$(IDIR_PULSEAUDIO
)/usr
/bin
/pacmd.bin
58 echo
"#!/bin/sh" > $(IDIR_PULSEAUDIO
)/usr
/bin
/pacmd
59 echo
'PULSE_RUNTIME_PATH=/var/run/pulse pacmd.bin "$$@"' >> $(IDIR_PULSEAUDIO
)/usr
/bin
/pacmd
60 chmod
755 $(IDIR_PULSEAUDIO
)/usr
/bin
/pacmd
62 include ${ADK_TOPDIR}/mk
/pkg-bottom.mk