Makefile 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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:= 5
  7. PKG_MD5SUM:= 591f211db2790a7e4d222f2dc6858db3
  8. PKG_DESCR:= a 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. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.xz
  20. include $(TOPDIR)/mk/package.mk
  21. $(eval $(call PKG_template,PULSEAUDIO,pulseaudio,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
  22. TARGET_CPPFLAGS+= -D_GNU_SOURCE -D_POSIX_SOURCE
  23. CONFIGURE_ARGS+= --disable-systemd \
  24. --disable-manpages \
  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. --enable-samplerate \
  41. --enable-alsa \
  42. --with-speex \
  43. --with-access-group=audio
  44. pulseaudio-install:
  45. $(INSTALL_DIR) $(IDIR_PULSEAUDIO)/etc/pulse
  46. $(CP) ./files/*.{conf,pa} \
  47. $(IDIR_PULSEAUDIO)/etc/pulse
  48. $(INSTALL_DIR) $(IDIR_PULSEAUDIO)/usr/bin
  49. $(INSTALL_BIN) $(WRKINST)/usr/bin/* \
  50. $(IDIR_PULSEAUDIO)/usr/bin
  51. $(INSTALL_DIR) $(IDIR_PULSEAUDIO)/usr/lib
  52. $(CP) $(WRKINST)/usr/lib/libpulse*.so* \
  53. $(IDIR_PULSEAUDIO)/usr/lib
  54. $(INSTALL_DIR) $(IDIR_PULSEAUDIO)/usr/lib/pulseaudio
  55. $(CP) $(WRKINST)/usr/lib/pulseaudio/libpulse*.so* \
  56. $(IDIR_PULSEAUDIO)/usr/lib/pulseaudio
  57. $(INSTALL_DIR) $(IDIR_PULSEAUDIO)/usr/lib/pulse-$(PKG_VERSION)/modules
  58. $(CP) $(WRKINST)/usr/lib/pulse-$(PKG_VERSION)/modules/*.so \
  59. $(IDIR_PULSEAUDIO)/usr/lib/pulse-$(PKG_VERSION)/modules
  60. # pa uses $HOME from root user otherwise
  61. mv $(IDIR_PULSEAUDIO)/usr/bin/pacmd $(IDIR_PULSEAUDIO)/usr/bin/pacmd.bin
  62. echo "#!/bin/sh" > $(IDIR_PULSEAUDIO)/usr/bin/pacmd
  63. echo 'PULSE_RUNTIME_PATH=/var/run/pulse pacmd.bin "$$@"' >> $(IDIR_PULSEAUDIO)/usr/bin/pacmd
  64. chmod 755 $(IDIR_PULSEAUDIO)/usr/bin/pacmd
  65. include ${TOPDIR}/mk/pkg-bottom.mk