Public paste
pulseaudio makefile
By: rektide | Date: Dec 19 2007 03:07 | Format: None | Expires: never | Size: 1.72 KB | Hits: 819

  1. include $(TOPDIR)/rules.mk
  2.  
  3. PKG_NAME:=pulseaudio
  4. PKG_VERSION:=0.9.8
  5. PKG_RELEASE:=1
  6.  
  7. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  8. PKG_SOURCE_URL:=http://0pointer.de/lennart/projects/pulseaudio/
  9. PKG_MD5SUM:=184a41d5947e583d395f0a2541525fc2
  10.  
  11. PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
  12. PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
  13.  
  14. CFLAGS:="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include/atomicops"
  15.  
  16. include $(INCLUDE_DIR)/package.mk
  17.  
  18. define Package/pulseaudio
  19.   SECTION:=sound
  20.   CATEGORY:=Sound
  21.   TITLE:=Music Player Daemon
  22.   DEPENDS:=+liboil +libsamplerate +libsndfile +libatomicops +alsa-lib +libavahi +tcp_wrappers +bluez-libs
  23.   URL:=http://www.pulseaudio.org
  24. endef
  25.  
  26. define Package/pulseaudio/description
  27.         Pulse Audio is the sound uber daemon.
  28. endef
  29.  
  30. define Package/pulseaudio/conffiles
  31. /etc/pulse/daemon.conf
  32. /etc/pulse/default.pa
  33. endef
  34.  
  35. define Build/Configure
  36.         $(call Build/Configure/Default,
  37.                 $(EXTRA_CONFIG_PARAM)
  38.                 --disable-solaris
  39.                 --disable-glib2
  40.                 --disable-gconf
  41.                 --disable-jack
  42.                 --disable-asyncns
  43.                 --disable-lirc
  44.                 --disable-hal
  45.                 --disable-polkit
  46.         )
  47. endef
  48.  
  49. define Build/Compile
  50.         $(MAKE) -C $(PKG_BUILD_DIR)
  51.                 $(CFLAGS)
  52.                 DESTDIR="$(PKG_INSTALL_DIR)"
  53.                 all install
  54. endef
  55.  
  56. define Package/pulseaudio/install
  57.         $(INSTALL_DIR) $(1)/etc
  58. #       $(CP) $(PKG_BUILD_DIR)/doc/mpdconf.example $(1)/etc/mpd.conf
  59.         $(INSTALL_DIR) $(1)/usr/bin
  60. #       $(CP) $(PKG_INSTALL_DIR)/usr/bin/mpd $(1)/usr/bin/
  61. endef
  62.  
  63. $(eval $(call BuildPackage,pulseaudio))