summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2023-02-07 23:00:48 +0000
committerSam James <sam@gentoo.org>2023-02-07 23:05:34 +0000
commitaeacdb540f56595dc9ba8eff46810f6f9dd774dd (patch)
treeaa5a9bf3dd8a0e9dbdb7a1d3798651927013a092 /media-libs/sdl2-ttf/sdl2-ttf-2.20.2.ebuild
parentnet-misc/stunnel: add 5.68 (diff)
downloadgentoo-aeacdb540f56595dc9ba8eff46810f6f9dd774dd.tar.gz
gentoo-aeacdb540f56595dc9ba8eff46810f6f9dd774dd.tar.bz2
gentoo-aeacdb540f56595dc9ba8eff46810f6f9dd774dd.zip
media-libs/sdl2-ttf: add 2.20.2
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'media-libs/sdl2-ttf/sdl2-ttf-2.20.2.ebuild')
-rw-r--r--media-libs/sdl2-ttf/sdl2-ttf-2.20.2.ebuild40
1 files changed, 40 insertions, 0 deletions
diff --git a/media-libs/sdl2-ttf/sdl2-ttf-2.20.2.ebuild b/media-libs/sdl2-ttf/sdl2-ttf-2.20.2.ebuild
new file mode 100644
index 000000000000..da78bca4ccfe
--- /dev/null
+++ b/media-libs/sdl2-ttf/sdl2-ttf-2.20.2.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake-multilib
+
+MY_P="SDL2_ttf-${PV}"
+DESCRIPTION="Library that allows you to use TrueType fonts in SDL applications"
+HOMEPAGE="https://github.com/libsdl-org/SDL_ttf"
+SRC_URI="https://github.com/libsdl-org/SDL_ttf/releases/download/release-${PV}/${MY_P}.tar.gz"
+S="${WORKDIR}/${MY_P}"
+
+LICENSE="ZLIB"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
+IUSE="+harfbuzz static-libs X"
+
+# On bumps, check external/ for versions of bundled freetype + harfbuzz
+# to crank up the dep bounds.
+RDEPEND=">=media-libs/libsdl2-2.0.12[${MULTILIB_USEDEP}]
+ >=media-libs/freetype-2.10.4[harfbuzz?,${MULTILIB_USEDEP}]
+ virtual/opengl[${MULTILIB_USEDEP}]
+ harfbuzz? ( >=media-libs/harfbuzz-2.8.0:=[${MULTILIB_USEDEP}] )"
+DEPEND="${RDEPEND}"
+
+multilib_src_configure() {
+ local mycmakeargs=(
+ -DSDL2TTF_VENDORED=OFF
+ -DSDL2TTF_HARFBUZZ=$(usex harfbuzz)
+ )
+
+ cmake_src_configure
+}
+
+multilib_src_install_all() {
+ dodoc {CHANGES,README}.txt
+
+ rm -rf "${ED}"/usr/share/licenses/ || die
+}