media-libs/glee: add multilib support

Also minorly updates the autotools patch so the generated
pkg-config file includes the package version properly.

Signed-off-by: Vivian Heisz (demize) <demize@unstable.systems>
This commit is contained in:
Vivian Heisz (demize)
2025-05-16 22:28:14 -04:00
parent 97941bffff
commit 11ec7d0dd6
2 changed files with 12 additions and 7 deletions

View File

@@ -2,7 +2,7 @@ diff -ruN configure.ac configure.ac
--- configure.ac 1970-01-01 03:00:00.000000000 +0300
+++ configure.ac 2007-02-13 23:48:45.000000000 +0300
@@ -0,0 +1,11 @@
+AC_INIT(configure.ac)
+AC_INIT(libGLee, 5.4)
+AC_CONFIG_FILES([glee.pc])
+
+AM_CONFIG_HEADER(config.h)

View File

@@ -3,34 +3,39 @@
EAPI=8
inherit autotools
inherit autotools multilib-minimal
DESCRIPTION="OpenGL Easy Extension library"
HOMEPAGE="https://elf-stone.com/glee.php"
SRC_URI="https://elf-stone.com/downloads/GLee/GLee-${PV}-src.tar.gz"
S="${WORKDIR}"
LICENSE="BSD-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="static-libs"
RDEPEND="virtual/opengl"
RDEPEND="virtual/opengl[${MULTILIB_USEDEP}]"
DEPEND="${RDEPEND}"
src_unpack() {
mkdir "${P}" || die
cd "${P}" || die
default
}
src_prepare() {
default
eapply -p0 "${FILESDIR}/${PN}-autotools.patch"
eautoreconf || die
multilib_copy_sources
}
src_configure() {
multilib_src_configure() {
econf \
$(use_enable static-libs static)
}
src_install() {
multilib_src_install() {
emake DESTDIR="${D}" install || die
find "${ED}" -type f -name '*.la' -delete || die
dodoc readme.txt extensionList.txt || die