Commit 7cda2c57 authored by Carlo Landmeter's avatar Carlo Landmeter
Browse files

testing/cdrdao: new aport

parent 9070b3ef
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer:
pkgname=cdrdao
pkgver=1.2.3
pkgrel=0
pkgdesc="Records audio/data CD-Rs in disk-at-once (DAO) mode"
url="http://cdrdao.sourceforge.net/"
arch="all"
license="GPL"
depends=""
depends_dev="libmad-dev lame-dev libvorbis-dev libao-dev"
makedepends="$depends_dev"
install=""
subpackages="$pkgname-doc"
source="http://downloads.sourceforge.net/cdrdao/cdrdao-$pkgver.tar.bz2
cdrdao-1.2.3-stat.patch"
_builddir="$srcdir"/cdrdao-$pkgver
prepare() {
local i
cd "$_builddir"
for i in $source; do
case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
esac
done
update_config_sub || return 1
}
build() {
cd "$_builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
--localstatedir=/var \
--with-xdao \
--with-lame \
--with-ogg-support \
--with-mp3-support \
|| return 1
make || return 1
}
package() {
cd "$_builddir"
make DESTDIR="$pkgdir" install || return 1
rm -f "$pkgdir"/usr/lib/*.la
}
md5sums="8d15ba6280bb7ba2f4d6be31d28b3c0c cdrdao-1.2.3.tar.bz2
0fce05542ebad283f36fa1c4d62992a0 cdrdao-1.2.3-stat.patch"
sha256sums="8193cb8fa6998ac362c55807e89ad0b3c63edc6b01afaeb3d5042519527fb75e cdrdao-1.2.3.tar.bz2
ca89b7c56a376d5a9574c5757f0d372236a895334f81867ff5e1703806565bbc cdrdao-1.2.3-stat.patch"
sha512sums="36b14180acf476de062f5f31e2b9dece39e3cc7a84552e80a6714931fa35d6090ec90ddfcdbd2651d690be8ce3fc78d483aa13856c3c311bcc2f571f0040adf6 cdrdao-1.2.3.tar.bz2
83d6a76f9b6c3e3e1522fe1fb64e50296f42c51d6f0b505d68adc3b7a85460d667ecf3f0998ba2ea5444dd5cd398e81f591ef9ca3bb4b5b167ce6e59234a5094 cdrdao-1.2.3-stat.patch"
diff -up cdrdao-1.2.3/dao/ScsiIf-linux.cc.stat cdrdao-1.2.3/dao/ScsiIf-linux.cc
--- cdrdao-1.2.3/dao/ScsiIf-linux.cc.stat 2010-01-20 20:11:36.000000000 +0100
+++ cdrdao-1.2.3/dao/ScsiIf-linux.cc 2010-01-20 20:14:07.000000000 +0100
@@ -19,6 +19,9 @@
#include <config.h>
+#include <sys/types.h>
+#include <sys/stat.h>
+
#include <stdio.h>
#include <fcntl.h>
#include <unistd.h>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment