# Tanım: Ses / veri CD-R'lerini disk at once (DAO) modda kaydeder
# URL: http://cdrdao.sourceforge.net
# Paketçi: alihan-ozturk28@hotmail.com
# Gerekler: lame libao libvorbis libmad
# Grup: medya

isim=cdrdao
surum=1.2.3
devir=1
kaynak=(http://downloads.sourceforge.net/$isim/$isim-$surum.tar.bz2\
        http://downloads.nutyx.org/files/patchs/$isim/cdrdao-1.2.3-stat.patch)

derle() {
	cd $isim-$surum
	patch -Np1 -i $SRC/cdrdao-1.2.3-stat.patch
    CXXFLAGS+=' -std=c++11 -Wno-narrowing'
	./configure --prefix=/usr \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--with-lame --with-xdao \
		--with-ogg-support --with-mp3-support
	make
    make DESTDIR=$PKG install
}
