lede-packages-rs

git clone git://archive.git.mtrnord.blog/MTRNord/lede-packages-rs.git
Log | Files | Refs | README | LICENSE

Makefile (4504B)


      1 #
      2 # Copyright (C) 2011-2016 OpenWrt.org
      3 #
      4 # This is free software, licensed under the GNU General Public License v2.
      5 # See /LICENSE for more information.
      6 #
      7 
      8 include $(TOPDIR)/rules.mk
      9 
     10 PKG_NAME:=pulseaudio
     11 PKG_VERSION:=10.0
     12 PKG_RELEASE:=1
     13 
     14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
     15 PKG_SOURCE_URL:=http://freedesktop.org/software/pulseaudio/releases/
     16 PKG_HASH:=a3186824de9f0d2095ded5d0d0db0405dc73133983c2fbb37291547e37462f57
     17 PKG_LICENSE:=LGPL-2.1+
     18 PKG_LICENSE_FILES:=GPL LICENSE
     19 
     20 PKG_BUILD_DEPENDS:=intltool/host
     21 
     22 PKG_FIXUP:=autoreconf
     23 PKG_USE_MIPS16:=0
     24 
     25 PKG_INSTALL = 1
     26 
     27 include $(INCLUDE_DIR)/package.mk
     28 include $(INCLUDE_DIR)/nls.mk
     29 
     30 define Package/pulseaudio/Default
     31   SECTION:=sound
     32   CATEGORY:=Sound
     33   DEPENDS:=+libspeexdsp +libsndfile +libltdl +libpthread \
     34 	+librt +alsa-lib +libopenssl +libwrap +libcap $(ICONV_DEPENDS) $(INTL_DEPENDS)
     35   TITLE:=Network sound server
     36   MAINTAINER:=Peter Wagner <tripolar@gmx.at>
     37   URL:=http://www.pulseaudio.org
     38   PROVIDES:=pulseaudio
     39   USERID:=pulse=51:pulse=51
     40 endef
     41 
     42 define Package/pulseaudio-daemon
     43   $(call Package/pulseaudio/Default)
     44 endef
     45 
     46 define Package/pulseaudio/Default/description
     47   PulseAudio (formerly Polypaudio) is a cross-platform, networked sound server.
     48 endef
     49 
     50 define Package/pulseaudio-daemon/description
     51   $(call Package/pulseaudio/Default/description)
     52 endef
     53 
     54 define Package/pulseaudio-daemon/conffiles
     55 /etc/pulse/client.conf
     56 /etc/pulse/daemon.conf
     57 /etc/pulse/default.pa
     58 /etc/pulse/system.pa
     59 endef
     60 
     61 define Package/pulseaudio-tools
     62   SECTION:=sound
     63   CATEGORY:=Sound
     64   DEPENDS:=+libsndfile +pulseaudio
     65   TITLE:=Tools for Pulseaudio
     66   URL:=http://www.pulseaudio.org
     67 endef
     68 
     69 define Package/pulseaudio-profiles
     70   SECTION:=sound
     71   CATEGORY:=Sound
     72   DEPENDS:=+pulseaudio
     73   TITLE:=Profiles for Pulseaudio
     74   URL:=http://www.pulseaudio.org
     75 endef
     76 
     77 CONFIGURE_ARGS += \
     78 	--with-system-user=pulse \
     79 	--with-system-group=pulse \
     80 	--with-access-group=audio \
     81 	--with-database=simple \
     82 	--enable-alsa \
     83 	--disable-hal \
     84 	--disable-gconf \
     85 	--disable-nls \
     86 	--disable-manpages \
     87 	--enable-oss-output \
     88 	--disable-oss-wrapper \
     89 	--disable-samplerate \
     90 	--disable-per-user-esound-socket \
     91 	--disable-solaris \
     92 	--disable-gtk2 \
     93 	--disable-glib2 \
     94 	--disable-jack \
     95 	--disable-asyncns \
     96 	--disable-lirc \
     97 	--disable-bluez \
     98 	--disable-udev \
     99 	--without-fftw \
    100 	--disable-avahi \
    101 	--disable-dbus \
    102 	--without-soxr
    103 
    104 CONFIGURE_VARS += \
    105 	PKG_CONFIG_LIBDIR="$(STAGING_DIR)/usr/lib/pkgconfig"
    106 
    107 #SUPP_LIBS:=-L$(INTL_PREFIX)/lib -L$(ICONV_PREFIX)/lib
    108 TARGET_CFLAGS += -std=gnu99
    109 
    110 define Build/InstallDev
    111 	$(INSTALL_DIR) \
    112 		$(1)/usr/lib/pkgconfig \
    113 		$(1)/usr/include/pulse \
    114 		$(1)/usr/lib \
    115 		$(1)/usr/lib/pulseaudio
    116 	$(CP) \
    117 		$(PKG_INSTALL_DIR)/usr/include/pulse/* \
    118 		$(1)/usr/include/pulse
    119 	$(CP) \
    120 		$(PKG_INSTALL_DIR)/usr/lib/pkgconfig/*.pc \
    121 		$(1)/usr/lib/pkgconfig
    122 	$(CP) \
    123 		$(PKG_INSTALL_DIR)/usr/lib/*.so* \
    124 		$(1)/usr/lib/
    125 	$(CP) \
    126 		$(PKG_INSTALL_DIR)/usr/lib/pulseaudio/* \
    127 		$(1)/usr/lib/pulseaudio/
    128 endef
    129 
    130 define Package/pulseaudio-daemon/install
    131 	$(INSTALL_DIR) \
    132 		$(1)/etc/pulse \
    133 		$(1)/etc/init.d \
    134 		$(1)/usr/bin \
    135 		$(1)/usr/lib \
    136 		$(1)/usr/lib/pulseaudio \
    137 		$(1)/usr/lib/pulse-$(PKG_VERSION)/modules
    138 
    139 	$(INSTALL_BIN) \
    140 		$(PKG_INSTALL_DIR)/usr/bin/pulseaudio \
    141 		$(1)/usr/bin/pulseaudio
    142 
    143 	$(INSTALL_BIN) \
    144 		./files/pulseaudio.init \
    145 		$(1)/etc/init.d/pulseaudio
    146 
    147 	$(INSTALL_DATA) \
    148 		$(PKG_INSTALL_DIR)/etc/pulse/* \
    149 		$(1)/etc/pulse
    150 
    151 	$(CP) \
    152 		$(PKG_INSTALL_DIR)/usr/lib/*.so* \
    153 		$(1)/usr/lib/
    154 
    155 	$(CP) \
    156 		$(PKG_INSTALL_DIR)/usr/lib/pulseaudio/* \
    157 		$(1)/usr/lib/pulseaudio/
    158 
    159 	$(CP) \
    160 		$(PKG_INSTALL_DIR)/usr/lib/pulse-$(PKG_VERSION)/modules/lib*.so \
    161 		$(1)/usr/lib/
    162 
    163 	$(CP) \
    164 		$(PKG_INSTALL_DIR)/usr/lib/pulse-$(PKG_VERSION)/modules/module*.so \
    165 		$(1)/usr/lib/pulse-$(PKG_VERSION)/modules/
    166 
    167 endef
    168 
    169 define Package/pulseaudio-tools/install
    170 	$(INSTALL_DIR) \
    171 		$(1)/usr/bin
    172 
    173 	$(INSTALL_BIN) \
    174 		$(PKG_INSTALL_DIR)/usr/bin/pa* \
    175 		$(1)/usr/bin/
    176 endef
    177 
    178 define Package/pulseaudio-profiles/install
    179 	$(INSTALL_DIR) \
    180 		$(1)/usr/share/pulseaudio/alsa-mixer/paths \
    181 		$(1)/usr/share/pulseaudio/alsa-mixer/profile-sets
    182 
    183 	$(INSTALL_DATA) \
    184 		$(PKG_INSTALL_DIR)/usr/share/pulseaudio/alsa-mixer/paths/* \
    185 		$(1)/usr/share/pulseaudio/alsa-mixer/paths
    186 
    187 	$(INSTALL_DATA) \
    188 		$(PKG_INSTALL_DIR)/usr/share/pulseaudio/alsa-mixer/profile-sets/* \
    189 		$(1)/usr/share/pulseaudio/alsa-mixer/profile-sets
    190 endef
    191 
    192 $(eval $(call BuildPackage,pulseaudio-daemon))
    193 $(eval $(call BuildPackage,pulseaudio-tools))
    194 $(eval $(call BuildPackage,pulseaudio-profiles))