33 lines
782 B
Bash
33 lines
782 B
Bash
# Copyright 1999-2020 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=5
|
|
inherit flag-o-matic eutils autotools
|
|
|
|
DESCRIPTION="multimedia library used by many games"
|
|
HOMEPAGE="http://plib.sourceforge.net/"
|
|
SRC_URI="http://plib.sourceforge.net/dist/${P}.tar.gz"
|
|
|
|
LICENSE="LGPL-2"
|
|
SLOT="0"
|
|
KEYWORDS="~alpha amd64 hppa ppc sparc x86"
|
|
|
|
DEPEND="virtual/opengl"
|
|
RDEPEND=${DEPEND}
|
|
|
|
src_prepare() {
|
|
epatch \
|
|
"${FILESDIR}"/${P}-X11.patch \
|
|
"${FILESDIR}"/${P}-CVE-2011-4620.patch \
|
|
"${FILESDIR}"/${P}-CVE-2012-4552.patch
|
|
|
|
eautoreconf
|
|
# Since plib only provides static libraries, force
|
|
# building as PIC or plib is useless to amd64/etc...
|
|
append-flags -fPIC
|
|
}
|
|
|
|
src_install() {
|
|
default
|
|
dodoc AUTHORS ChangeLog KNOWN_BUGS NOTICE README* TODO*
|
|
}
|