1
0

Makefile 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. # This file is part of the OpenADK project. OpenADK is copyrighted
  2. # material, please see the LICENCE file in the top-level directory.
  3. include $(TOPDIR)/rules.mk
  4. PKG_NAME:= pulseaudio
  5. PKG_VERSION:= 4.0
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= 591f211db2790a7e4d222f2dc6858db3
  8. PKG_DESCR:= sound system for POSIX OSes
  9. PKG_SECTION:= multimedia
  10. PKG_DEPENDS:= libltdl json-c libsndfile libspeex libncurses
  11. PKG_DEPENDS+= libflac libvorbis libogg libuuid libsndfile
  12. PKG_DEPENDS+= libgcc libpthread librt alsa-lib libsamplerate
  13. PKG_BUILDDEP:= libtool json-c libsndfile speex libsamplerate
  14. PKG_BUILDDEP+= flac libvorbis libogg util-linux ncurses alsa-lib
  15. PKG_URL:= http://www.freedesktop.org/wiki/Software/PulseAudio/
  16. PKG_SITES:= http://freedesktop.org/software/pulseaudio/releases/
  17. PKG_OPTS:= dev
  18. PKG_LIBC_DEPENDS:= uclibc glibc
  19. include $(TOPDIR)/mk/package.mk
  20. $(eval $(call PKG_template,PULSEAUDIO,pulseaudio,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
  21. TARGET_CPPFLAGS+= -D_GNU_SOURCE -D_POSIX_SOURCE
  22. CONFIGURE_ARGS+= --disable-systemd \
  23. --disable-manpages \
  24. --disable-neon-opt \
  25. --disable-x11 \
  26. --disable-avahi \
  27. --disable-lirc \
  28. --disable-openssl \
  29. --disable-orc \
  30. --disable-tcpwrap \
  31. --disable-oss-output \
  32. --disable-oss-wrapper \
  33. --disable-esound \
  34. --disable-jack \
  35. --disable-gconf \
  36. --disable-udev \
  37. --disable-dbus \
  38. --disable-hal-compat \
  39. --enable-samplerate \
  40. --enable-alsa \
  41. --with-speex \
  42. --with-access-group=audio
  43. pulseaudio-install:
  44. $(INSTALL_DIR) $(IDIR_PULSEAUDIO)/etc/pulse
  45. $(CP) ./files/*.{conf,pa} \
  46. $(IDIR_PULSEAUDIO)/etc/pulse
  47. $(INSTALL_DIR) $(IDIR_PULSEAUDIO)/usr/bin
  48. $(INSTALL_BIN) $(WRKINST)/usr/bin/* \
  49. $(IDIR_PULSEAUDIO)/usr/bin
  50. $(INSTALL_DIR) $(IDIR_PULSEAUDIO)/usr/lib
  51. $(CP) $(WRKINST)/usr/lib/libpulse*.so* \
  52. $(IDIR_PULSEAUDIO)/usr/lib
  53. $(INSTALL_DIR) $(IDIR_PULSEAUDIO)/usr/lib/pulseaudio
  54. $(CP) $(WRKINST)/usr/lib/pulseaudio/libpulse*.so* \
  55. $(IDIR_PULSEAUDIO)/usr/lib/pulseaudio
  56. $(INSTALL_DIR) $(IDIR_PULSEAUDIO)/usr/lib/pulse-$(PKG_VERSION)/modules
  57. $(CP) $(WRKINST)/usr/lib/pulse-$(PKG_VERSION)/modules/*.so \
  58. $(IDIR_PULSEAUDIO)/usr/lib/pulse-$(PKG_VERSION)/modules
  59. # pa uses $HOME from root user otherwise
  60. mv $(IDIR_PULSEAUDIO)/usr/bin/pacmd $(IDIR_PULSEAUDIO)/usr/bin/pacmd.bin
  61. echo "#!/bin/sh" > $(IDIR_PULSEAUDIO)/usr/bin/pacmd
  62. echo 'PULSE_RUNTIME_PATH=/var/run/pulse pacmd.bin "$$@"' >> $(IDIR_PULSEAUDIO)/usr/bin/pacmd
  63. chmod 755 $(IDIR_PULSEAUDIO)/usr/bin/pacmd
  64. include ${TOPDIR}/mk/pkg-bottom.mk