diff options
author | Maciej Mrozowski <reavertm@gentoo.org> | 2021-01-25 22:32:02 +0100 |
---|---|---|
committer | Maciej Mrozowski <reavertm@gentoo.org> | 2021-01-25 22:32:21 +0100 |
commit | f87f7789bc98b1f0b1c035a274083d88cb2739de (patch) | |
tree | 5feb8ef448119ae552621ffc7c1d2795c82ca59b /media-libs/plib/plib-1.8.5-r3.ebuild | |
parent | games-simulation/flightgear: version bump, remove old (diff) | |
download | gentoo-f87f7789bc98b1f0b1c035a274083d88cb2739de.tar.gz gentoo-f87f7789bc98b1f0b1c035a274083d88cb2739de.tar.bz2 gentoo-f87f7789bc98b1f0b1c035a274083d88cb2739de.zip |
media-libs/plib: provide shared libs
Closes: https://bugs.gentoo.org/333161
Bug: https://bugs.gentoo.org/745486
Package-Manager: Portage-3.0.13, Repoman-3.0.2
Signed-off-by: Maciej Mrozowski <reavertm@gentoo.org>
Diffstat (limited to 'media-libs/plib/plib-1.8.5-r3.ebuild')
-rw-r--r-- | media-libs/plib/plib-1.8.5-r3.ebuild | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/media-libs/plib/plib-1.8.5-r3.ebuild b/media-libs/plib/plib-1.8.5-r3.ebuild new file mode 100644 index 000000000000..21af7bffc8de --- /dev/null +++ b/media-libs/plib/plib-1.8.5-r3.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="7" +inherit autotools multilib-minimal + +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} + +PATCHES=( + "${FILESDIR}"/${P}-shared-libs.patch + "${FILESDIR}"/${P}-X11-r1.patch + "${FILESDIR}"/${P}-CVE-2011-4620.patch + "${FILESDIR}"/${P}-CVE-2012-4552.patch +) + +src_prepare() { + default + mv configure.in configure.ac || die + eautoreconf +} + +multilib_src_configure() { + local myconf=( + --disable-static + --enable-shared + ) + ECONF_SOURCE=${S} econf "${myconf[@]}" +} + +multilib_src_install_all() { + DOCS=( AUTHORS ChangeLog KNOWN_BUGS NOTICE README* TODO* ) + einstalldocs + find "${ED}" -name '*.la' -delete || die +} |