summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAzamat H. Hackimov <azamat.hackimov@gmail.com>2018-07-28 20:46:19 +0300
committerMichał Górny <mgorny@gentoo.org>2018-08-12 19:18:02 +0200
commitdd1c415b0e07de1c6fd2c2c2fdb89b0f24f95178 (patch)
tree9aa2c3742b71bcc83e09f3204ae33287b51b0285 /dev-libs/spsdeclib
parentsys-apps/ibm-powerpc-utils: Version bump (diff)
downloadgentoo-dd1c415b0e07de1c6fd2c2c2fdb89b0f24f95178.tar.gz
gentoo-dd1c415b0e07de1c6fd2c2c2fdb89b0f24f95178.tar.bz2
gentoo-dd1c415b0e07de1c6fd2c2c2fdb89b0f24f95178.zip
dev-libs/spsdeclib: install headers
Install headers for other projects. Package-Manager: Portage-2.3.40, Repoman-2.3.9
Diffstat (limited to 'dev-libs/spsdeclib')
-rw-r--r--dev-libs/spsdeclib/spsdeclib-5.1-r1.ebuild53
1 files changed, 53 insertions, 0 deletions
diff --git a/dev-libs/spsdeclib/spsdeclib-5.1-r1.ebuild b/dev-libs/spsdeclib/spsdeclib-5.1-r1.ebuild
new file mode 100644
index 000000000000..db6e46f2659b
--- /dev/null
+++ b/dev-libs/spsdeclib/spsdeclib-5.1-r1.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit autotools eutils
+
+DESCRIPTION="Kryoflux SPS Decoder Library"
+HOMEPAGE="https://www.kryoflux.com/"
+SRC_URI="https://www.kryoflux.com/download/${PN}_${PV}_source.zip"
+
+KEYWORDS="~amd64 ~x86"
+LICENSE="Kryoflux-MAME"
+SLOT="0"
+
+DEPEND="app-arch/unzip"
+
+S="${WORKDIR}/capsimg_source_linux_macosx/CAPSImg"
+
+DOCS=( "${WORKDIR}/DONATIONS.txt" "${WORKDIR}/HISTORY.txt" "${WORKDIR}/RELEASE.txt" )
+
+PATCHES=( "${FILESDIR}"/add_symlink.patch )
+
+src_unpack() {
+ unpack ${A}
+
+ # Unpacked ZIP-file contains two ZIP files, use the one for Linux
+ unpack "${WORKDIR}"/capsimg_source_linux_macosx.zip
+}
+
+src_prepare() {
+ default
+
+ # Respect users CFLAGS and CXXFLAGS
+ sed -i -e 's/-g//' configure.in || die
+ sed -i -e 's/CXXFLAGS="${CFLAGS}/CXXFLAGS="${CXXFLAGS}/' configure.in || die
+
+ # Remove MSVC compiler-specific attribute
+ sed -i -e 's/__cdecl //' ../LibIPF/Caps{Lib,FDC}.h || die
+
+ mv configure.in configure.ac || die
+ eautoconf
+
+ # Fix permissions, as configure is not marked executable
+ chmod +x configure || die
+}
+
+src_install() {
+ default
+
+ insinto /usr/include/caps5
+ doins ../Core/CommonTypes.h ../LibIPF/*.h
+}