summaryrefslogtreecommitdiff
path: root/package/pulseaudio/Makefile
blob: a7bc68463d28092c86923fad02464d98d6097180 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# This file is part of the OpenADK project. OpenADK is copyrighted
# material, please see the LICENCE file in the top-level directory.

include $(TOPDIR)/rules.mk

PKG_NAME:=		pulseaudio
PKG_VERSION:=		4.0
PKG_RELEASE:=		2
PKG_MD5SUM:=		591f211db2790a7e4d222f2dc6858db3
PKG_DESCR:=		a sound system for POSIX OSes
PKG_SECTION:=		multimedia
PKG_DEPENDS:=		libltdl json-c libsndfile libudev libspeex libncurses
PKG_DEPENDS+=		libflac libvorbis libogg libuuid libsndfile libdbus
PKG_DEPENDS+=		libgcc libpthread librt alsa-lib
PKG_BUILDDEP:=		libtool json-c libsndfile eudev speex libsndfile
PKG_BUILDDEP+=		flac libvorbis libogg util-linux dbus ncurses alsa-lib
PKG_URL:=		http://www.freedesktop.org/wiki/Software/PulseAudio/
PKG_SITES:=		http://freedesktop.org/software/pulseaudio/releases/
PKG_OPTS:=		dev

PKG_LIBC_DEPENDS:=	uclibc eglibc glibc

DISTFILES:=             ${PKG_NAME}-${PKG_VERSION}.tar.xz

include $(TOPDIR)/mk/package.mk

$(eval $(call PKG_template,PULSEAUDIO,pulseaudio,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))

TARGET_CPPFLAGS+=	-D_GNU_SOURCE -D_POSIX_SOURCE
CONFIGURE_ARGS+=	--disable-systemd \
			--disable-manpages \
			--disable-neon-opt \
			--disable-x11 \
			--disable-openssl \
			--enable-alsa \
			--enable-dbus \
			--enable-udev \
			--with-speex

pulseaudio-install:
	$(INSTALL_DIR) $(IDIR_PULSEAUDIO)/etc/pulse
	$(CP) $(WRKINST)/etc/pulse/* \
		$(IDIR_PULSEAUDIO)/etc/pulse
	$(INSTALL_DIR) $(IDIR_PULSEAUDIO)/usr/bin
	$(INSTALL_BIN) $(WRKINST)/usr/bin/* \
		$(IDIR_PULSEAUDIO)/usr/bin
	$(INSTALL_DIR) $(IDIR_PULSEAUDIO)/usr/lib
	$(CP) $(WRKINST)/usr/lib/libpulse*.so* \
		$(IDIR_PULSEAUDIO)/usr/lib
	$(INSTALL_DIR) $(IDIR_PULSEAUDIO)/usr/lib/pulseaudio
	$(CP) $(WRKINST)/usr/lib/pulseaudio/libpulse*.so* \
		$(IDIR_PULSEAUDIO)/usr/lib/pulseaudio
	$(INSTALL_DIR) $(IDIR_PULSEAUDIO)/usr/lib/pulse-$(PKG_VERSION)/modules
	$(CP) $(WRKINST)/usr/lib/pulse-$(PKG_VERSION)/modules/*.so \
		$(IDIR_PULSEAUDIO)/usr/lib/pulse-$(PKG_VERSION)/modules

include ${TOPDIR}/mk/pkg-bottom.mk