1
0

Makefile 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  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 $(ADK_TOPDIR)/rules.mk
  4. PKG_NAME:= pulseaudio
  5. PKG_VERSION:= 5.0
  6. PKG_RELEASE:= 1
  7. PKG_HASH:= 99c13a8b1249ddbd724f195579df79484e9af6418cecf6a15f003a7f36caf939
  8. PKG_DESCR:= sound system
  9. PKG_SECTION:= mm/audio
  10. PKG_DEPENDS:= libltdl json-c libsndfile libspeex libncurses
  11. PKG_DEPENDS+= libflac libvorbis libogg libuuid libsndfile
  12. PKG_DEPENDS+= 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-ng uclibc glibc
  19. include $(ADK_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-tests \
  25. --disable-neon-opt \
  26. --disable-x11 \
  27. --disable-avahi \
  28. --disable-lirc \
  29. --disable-openssl \
  30. --disable-orc \
  31. --disable-tcpwrap \
  32. --disable-oss-output \
  33. --disable-oss-wrapper \
  34. --disable-esound \
  35. --disable-jack \
  36. --disable-gconf \
  37. --disable-udev \
  38. --disable-dbus \
  39. --disable-hal-compat \
  40. --without-caps \
  41. --with-database=simple \
  42. --enable-samplerate \
  43. --enable-alsa \
  44. --with-speex \
  45. --with-access-group=audio
  46. pulseaudio-install:
  47. $(INSTALL_DIR) $(IDIR_PULSEAUDIO)/etc/pulse
  48. $(CP) ./files/*.{conf,pa} \
  49. $(IDIR_PULSEAUDIO)/etc/pulse
  50. $(INSTALL_DIR) $(IDIR_PULSEAUDIO)/usr/bin
  51. $(CP) $(WRKINST)/usr/bin/* \
  52. $(IDIR_PULSEAUDIO)/usr/bin
  53. $(INSTALL_DIR) $(IDIR_PULSEAUDIO)/usr/lib
  54. $(CP) $(WRKINST)/usr/lib/libpulse*.so* \
  55. $(IDIR_PULSEAUDIO)/usr/lib
  56. $(INSTALL_DIR) $(IDIR_PULSEAUDIO)/usr/lib/pulseaudio
  57. $(CP) $(WRKINST)/usr/lib/pulseaudio/libpulse*.so* \
  58. $(IDIR_PULSEAUDIO)/usr/lib/pulseaudio
  59. $(INSTALL_DIR) $(IDIR_PULSEAUDIO)/usr/lib/pulse-$(PKG_VERSION)/modules
  60. $(CP) $(WRKINST)/usr/lib/pulse-$(PKG_VERSION)/modules/*.so \
  61. $(IDIR_PULSEAUDIO)/usr/lib/pulse-$(PKG_VERSION)/modules
  62. # pa uses $HOME from root user otherwise
  63. mv $(IDIR_PULSEAUDIO)/usr/bin/pacmd $(IDIR_PULSEAUDIO)/usr/bin/pacmd.bin
  64. echo "#!/bin/sh" > $(IDIR_PULSEAUDIO)/usr/bin/pacmd
  65. echo 'PULSE_RUNTIME_PATH=/var/run/pulse pacmd.bin "$$@"' >> $(IDIR_PULSEAUDIO)/usr/bin/pacmd
  66. chmod 755 $(IDIR_PULSEAUDIO)/usr/bin/pacmd
  67. include ${ADK_TOPDIR}/mk/pkg-bottom.mk