summaryrefslogtreecommitdiff
path: root/dev-libs/spsdeclib/spsdeclib-5.2.ebuild
blob: 0ad42be55ae00b9191c44bbc5de49d0e9448ff19 (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
35
36
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit cmake

DESCRIPTION="Kryoflux SPS Decoder Library"
HOMEPAGE="https://www.kryoflux.com/"

SRC_URI="https://www.kryoflux.com/download/${PN}_${PV}_source.zip"
S="${WORKDIR}/SPStudio_Dev/"

LICENSE="Kryoflux-MAME"
SLOT="0"
KEYWORDS="~amd64 ~arm64 ~x86"

BDEPEND="app-arch/unzip"

DOCS=( CAPSLib520a.pdf {HISTORY,RELEASE}.txt )

PATCHES=( "${FILESDIR}/spsdeclib-5.2-honor-destdir.patch" )

src_prepare() {
	cmake_src_prepare

	# Remove MSVC compiler-specific attribute
	sed -i -e 's/__cdecl //' LibIPF/Caps{Lib,FDC}.h || die
}

src_install() {
	cmake_src_install

	insinto /usr/include/CAPSImage
	doins Core/CommonTypes.h
}