1 # Copyright 1999-2019 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
8 DESCRIPTION="Kryoflux SPS Decoder Library"
9 HOMEPAGE="https://www.kryoflux.com/"
10 SRC_URI="https://www.kryoflux.com/download/${PN}_${PV}_source.zip"
13 LICENSE="Kryoflux-MAME"
16 DEPEND="app-arch/unzip"
18 S="${WORKDIR}/capsimg_source_linux_macosx/CAPSImg"
20 DOCS=( "${WORKDIR}"/{DONATIONS,HISTORY,RELEASE}.txt )
22 PATCHES=( "${FILESDIR}"/add_symlink.patch )
27 # Unpacked ZIP-file contains two ZIP files, use the one for Linux
28 unpack "${WORKDIR}"/capsimg_source_linux_macosx.zip
34 # Respect users CFLAGS and CXXFLAGS
35 sed -i -e 's/-g//' configure.in || die
36 sed -i -e 's/CXXFLAGS="${CFLAGS}/CXXFLAGS="${CXXFLAGS}/' configure.in || die
38 # Remove MSVC compiler-specific attribute
39 sed -i -e 's/__cdecl //' ../LibIPF/Caps{Lib,FDC}.h || die
41 mv configure.in configure.ac || die
44 # Fix permissions, as configure is not marked executable
45 chmod +x configure || die
51 insinto /usr/include/caps5
52 doins ../Core/CommonTypes.h ../LibIPF/*.h