1
0
Fork 0

first commit

This commit is contained in:
root 2024-11-23 01:15:11 +02:00
commit 528f89a79b
90 changed files with 13567 additions and 0 deletions

View file

@ -0,0 +1 @@
DIST raylib-5.0.tar.gz 32701105 BLAKE2B ee8ef069cd2a7b91efd1d97e8ed9076620c216fb0bf2eb7517624472d157c2d20919a6c54d7f8160e34c1d1a889f1766f5a94c6577bbb68f779e76a5160229dd SHA512 5956bc1646b99baac6eb1652c4d72e96af874337158672155ba144f131de8a4fd19291a58335a92fcaaa2fc818682f93ff4230af0f815efb8b49f7d2a162e9b0

View file

@ -0,0 +1,19 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>noreply@local</email>
<name>nil</name>
</maintainer>
<use>
<flag name="alsa">Add support for media-libs/alsa-lib (Advanced Linux Sound Architecture).</flag>
<flag name="examples">Build and install examples.</flag>
<flag name="static-libs">Build static version of dynamic libraries as well.</flag>
<flag name="system-glfw">Use system glfw instead of build it.</flag>
<flag name="X">Add support for X11.</flag>
<flag name="wayland">Enable dev-libs/wayland backend.</flag>
</use>
<description>
raylib is a simple and easy-to-use library to enjoy videogames programming.
</description>
</pkgmetadata>

View file

@ -0,0 +1,65 @@
# Copyright 2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit cmake
DESCRIPTION="A simple and easy-to-use library to learn videogames programming"
HOMEPAGE="https://www.raylib.com/"
LICENSE="ZLIB"
SLOT="0"
IUSE="alsa examples static-libs +system-glfw +X wayland"
REQUIRED_USE="|| ( system-glfw || ( X wayland ) )"
if [[ ${PV} == *9999 ]] ; then
EGIT_REPO_URI="https://github.com/raysan5/raylib.git"
inherit git-r3
else
SRC_URI="https://github.com/raysan5/raylib/archive/${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64"
S="${WORKDIR}/raylib-${PV}"
fi
RDEPEND="
alsa? ( media-libs/alsa-lib )
X? (
virtual/opengl
x11-libs/libX11
x11-libs/libXcursor
x11-libs/libXi
x11-libs/libXinerama
x11-libs/libXrandr
x11-libs/libXxf86vm
)
wayland? (
dev-libs/wayland
media-libs/mesa[wayland]
)
system-glfw? ( >=media-libs/glfw-3.2.1 )
"
DEPEND="${RDEPEND}"
src_configure() {
local mycmakeargs=(
-DBUILD_SHARED_LIBS=$(usex !static-libs ON OFF)
-DUSE_AUDIO=$(usex alsa ON OFF)
-DUSE_EXTERNAL_GLFW=$(usex system-glfw ON OFF)
-DBUILD_EXAMPLES=OFF
)
if use !system-glfw; then
mycmakeargs+=(-DGLFW_BUILD_WAYLAND=$(usex wayland ON OFF))
mycmakeargs+=(-DGLFW_BUILD_X11=$(usex X ON OFF))
fi
cmake_src_configure
}
src_install() {
cmake_src_install
if use examples; then
dodoc -r "${S}"/examples/*
fi
}

View file

@ -0,0 +1,65 @@
# Copyright 2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit cmake
DESCRIPTION="A simple and easy-to-use library to learn videogames programming"
HOMEPAGE="https://www.raylib.com/"
LICENSE="ZLIB"
SLOT="0"
IUSE="alsa examples static-libs +system-glfw +X wayland"
REQUIRED_USE="|| ( system-glfw || ( X wayland ) )"
if [[ ${PV} == *9999 ]] ; then
EGIT_REPO_URI="https://github.com/raysan5/raylib.git"
inherit git-r3
else
SRC_URI="https://github.com/raysan5/raylib/archive/${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64"
S="${WORKDIR}/raylib-${PV}"
fi
RDEPEND="
alsa? ( media-libs/alsa-lib )
X? (
virtual/opengl
x11-libs/libX11
x11-libs/libXcursor
x11-libs/libXi
x11-libs/libXinerama
x11-libs/libXrandr
x11-libs/libXxf86vm
)
wayland? (
dev-libs/wayland
media-libs/mesa[wayland]
)
system-glfw? ( >=media-libs/glfw-3.2.1 )
"
DEPEND="${RDEPEND}"
src_configure() {
local mycmakeargs=(
-DBUILD_SHARED_LIBS=$(usex !static-libs ON OFF)
-DUSE_AUDIO=$(usex alsa ON OFF)
-DUSE_EXTERNAL_GLFW=$(usex system-glfw ON OFF)
-DBUILD_EXAMPLES=OFF
)
if use !system-glfw; then
mycmakeargs+=(-DGLFW_BUILD_WAYLAND=$(usex wayland ON OFF))
mycmakeargs+=(-DGLFW_BUILD_X11=$(usex X ON OFF))
fi
cmake_src_configure
}
src_install() {
cmake_src_install
if use examples; then
dodoc -r "${S}"/examples/*
fi
}