summaryrefslogtreecommitdiffstats
path: root/alsa-lib/Pkgfile
blob: 48366a5623e9795c17ee1492ef9520f4419fe554 (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
# Description: Librairies pour ALSA (Architecture de sons avancée pour Linux)
# URL: http://www.alsa-project.org
# Maintainer: NuTyX core team
# Packager: thierryn1 at hispeed dot ch
# Depends on: 
# Run on: 

name=alsa-lib
version=1.0.25
release=1
source=(ftp://ftp.alsa-project.org/pub/lib/$name-$version.tar.bz2
	asound.conf)

build() {
	cd $name-$version
	./configure --prefix=/usr \
		--disable-aload \
		--disable-alisp \
		--with-plugindir=/usr/lib/alsa-lib \
		--with-pythonlibs="-lpthread -lm -ldl -lpython2.7" \
		--with-pythonincludes=-I/usr/include/python2.7

	sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
	sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool

	make
	make DESTDIR=$PKG install

	mkdir -p -m 755 $PKG/etc
	install -p -m 644 ../asound.conf $PKG/etc
}