# cdparanoia OE build file
# Copyright (C) 2005, Advanced Micro Devices, Inc.  All Rights Reserved
# Released under the MIT license (see packages/COPYING)

PR ="r2"
LICENSE="GPL"

SRC_URI="http://downloads.xiph.org/releases/cdparanoia/cdparanoia-III-alpha9.8.src.tgz \
	 file://fixes.patch;patch=1 \
	 file://Makefile.patch;patch=1"

S="${WORKDIR}/cdparanoia-III-alpha9.8"

inherit autotools

do_install() {
	oe_runmake BINDIR="${D}/usr/bin" MANDIR="${D}/usr/share/man/" \
		   INCLUDEDIR="${D}/usr/include/" LIBDIR="${D}/usr/lib" install
}

do_stage() {
	install -d ${STAGING_INCDIR} ${STAGING_LIBDIR}

	install -m 0644 paranoia/cdda_paranoia.h ${STAGING_INCDIR}
	install -m 0644 interface/cdda_interface.h ${STAGING_INCDIR}

	oe_libinstall -C interface libcdda_interface ${STAGING_LIBDIR}
	oe_libinstall -C paranoia libcdda_paranoia ${STAGING_LIBDIR}
}

# cdparanoia OE build file
# Copyright (C) 2005, Advanced Micro Devices, Inc.  All Rights Reserved
# Released under the MIT license (see packages/COPYING)

PR ="r2"
LICENSE="GPL"

SRC_URI="http://downloads.xiph.org/releases/cdparanoia/cdparanoia-III-alpha9.8.src.tgz \
	 file://fixes.patch;patch=1 \
	 file://Makefile.patch;patch=1"

S="${WORKDIR}/cdparanoia-III-alpha9.8"

PARALLEL_MAKE = ""

inherit autotools

do_install() {
	oe_runmake BINDIR="${D}/usr/bin" MANDIR="${D}/usr/share/man/" \
		   INCLUDEDIR="${D}/usr/include/" LIBDIR="${D}/usr/lib" install
}

do_stage() {
	install -d ${STAGING_INCDIR} ${STAGING_LIBDIR}

	install -m 0644 paranoia/cdda_paranoia.h ${STAGING_INCDIR}
	install -m 0644 interface/cdda_interface.h ${STAGING_INCDIR}

	oe_libinstall -C interface libcdda_interface ${STAGING_LIBDIR}
	oe_libinstall -C paranoia libcdda_paranoia ${STAGING_LIBDIR}
}

Disable parallel make for this package
cdparanoia: Disable parallel make for this package
