summaryrefslogtreecommitdiff
path: root/dev-games/libsmacker/libsmacker-1.2.0_p43-r1.ebuild
blob: 258bb0f89a1b9f2cc40510f659c95369ffdbe086 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=9

inherit autotools

DESCRIPTION="A cross-platform C library for decoding .smk Smacker Video files"
HOMEPAGE="https://libsmacker.sourceforge.net"
SRC_URI="https://sourceforge.net/projects/libsmacker/files/libsmacker-$(ver_cut 1-2)/${P/_p/r}.tar.gz/download -> ${P}.tar.gz"
S="${WORKDIR}/${PN}-$(ver_cut 1-3)"

LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86"

src_prepare() {
	PATCHES=(
		"${FILESDIR}/libsmacker-1.2.0-palette_renderer.patch"
	)
	default
	eautoreconf
}

src_install() {
	default

	insinto /usr/include
	doins smacker.h

	# No .la files or static libraries
	find "${ED}" -name '*.la' -delete || die
	find "${ED}" -name '*.a' -delete || die
}