2012-05-16 09:56:15 +04:00
|
|
|
# Copyright 1999-2012 Gentoo Foundation
|
2012-02-06 16:39:49 +04:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
2015-08-11 00:17:55 +03:00
|
|
|
# $Id$
|
2012-02-06 16:39:49 +04:00
|
|
|
|
2012-05-16 09:56:15 +04:00
|
|
|
EAPI=4
|
2012-02-06 16:39:49 +04:00
|
|
|
inherit eutils libtool
|
|
|
|
|
|
|
|
MY_P=sidplay-libs-${PV}
|
|
|
|
|
|
|
|
DESCRIPTION="C64 SID player library"
|
|
|
|
HOMEPAGE="http://sidplay2.sourceforge.net/"
|
|
|
|
SRC_URI="mirror://sourceforge/sidplay2/${MY_P}.tar.gz"
|
|
|
|
|
|
|
|
LICENSE="GPL-2"
|
|
|
|
SLOT="2"
|
|
|
|
KEYWORDS="alpha amd64 hppa ia64 ~mips ppc ppc64 sparc x86 ~x86-fbsd"
|
2012-05-16 09:56:15 +04:00
|
|
|
IUSE="static-libs"
|
2012-02-06 16:39:49 +04:00
|
|
|
|
|
|
|
S=${WORKDIR}/${MY_P}
|
|
|
|
|
|
|
|
src_prepare() {
|
2012-05-16 09:56:15 +04:00
|
|
|
epatch \
|
|
|
|
"${FILESDIR}"/${PN}2-gcc41.patch \
|
2012-02-06 16:39:49 +04:00
|
|
|
"${FILESDIR}"/${P}-fbsd.patch \
|
|
|
|
"${FILESDIR}"/${P}-gcc43.patch
|
2012-05-16 09:56:15 +04:00
|
|
|
|
2012-02-06 16:39:49 +04:00
|
|
|
elibtoolize
|
|
|
|
}
|
|
|
|
|
|
|
|
src_configure() {
|
|
|
|
econf \
|
|
|
|
--enable-shared \
|
2012-05-16 09:56:15 +04:00
|
|
|
$(use_enable static-libs static) \
|
2012-02-06 16:39:49 +04:00
|
|
|
--with-pic
|
|
|
|
}
|
|
|
|
|
|
|
|
src_install() {
|
2012-05-16 09:56:15 +04:00
|
|
|
emake DESTDIR="${D}" install
|
2012-02-06 16:39:49 +04:00
|
|
|
|
|
|
|
docinto libsidplay
|
2012-05-16 09:56:15 +04:00
|
|
|
dodoc libsidplay/{AUTHORS,ChangeLog,README,TODO}
|
2012-02-06 16:39:49 +04:00
|
|
|
|
|
|
|
docinto libsidutils
|
2012-05-16 09:56:15 +04:00
|
|
|
dodoc libsidutils/{AUTHORS,ChangeLog,README,TODO}
|
2012-02-06 16:39:49 +04:00
|
|
|
|
|
|
|
docinto resid
|
2012-05-16 09:56:15 +04:00
|
|
|
dodoc resid/{AUTHORS,ChangeLog,NEWS,README,THANKS,TODO}
|
2012-02-06 16:39:49 +04:00
|
|
|
|
|
|
|
doenvd "${FILESDIR}"/65resid
|
2012-05-16 09:56:15 +04:00
|
|
|
|
|
|
|
# Libs: -line of libsidutils.pc and libsidplay2.pc reference .la files!
|
|
|
|
# find "${ED}" -name '*.la' -exec rm -f {} +
|
2012-02-06 16:39:49 +04:00
|
|
|
}
|