aboutsummaryrefslogblamecommitdiffstats
path: root/main/sdl_mixer/APKBUILD
blob: 39c18ec698715c3b8c59d13008dc828593e7f8e6 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
                              
                                                   
                 
             
        

                                               
          

             
                                                                        







                                                                                    
                                     







                                                                                          



                                 

                                         
                                           

                                    




                        
                                                  

 
                                                                   
# Contributor: Carlo Landmeter
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=sdl_mixer
pkgver=1.2.12
pkgrel=1
pkgdesc="A simple multi-channel audio mixer"
url="http://www.libsdl.org/projects/SDL_mixer/"
arch="all"
license="GPL"
depends=
makedepends="sdl-dev libvorbis-dev libmikmod-dev flac-dev linux-headers"
install=
subpackages="$pkgname-dev"
source="http://www.libsdl.org/projects/SDL_mixer/release/SDL_mixer-${pkgver}.tar.gz"

_builddir="$srcdir"/SDL_mixer-$pkgver

prepare() {
	cd "$_builddir"
	update_config_sub || return 1
	sed -e "/CONFIG_FILE_ETC/s/\/etc\/timidity.cfg/\/etc\/timidity++\/timidity.cfg/" \
		-e "/DEFAULT_PATH/s/\/etc\/timidity/\/etc\/timidity++/" \
		-e "/DEFAULT_PATH2/s/\/usr\/local\/lib\/timidity/\/usr\/lib\/timidity/" \
		-i timidity/config.h
}

build() {
	cd "$_builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--enable-music-mod \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
}

md5sums="e03ff73d77a55e3572ad0217131dc4a1  SDL_mixer-1.2.12.tar.gz"