* [gentoo-commits] repo/gentoo:master commit in: media-libs/libsidplay/files/, media-libs/libsidplay/
@ 2017-01-07 12:15 David Seifert
0 siblings, 0 replies; 3+ messages in thread
From: David Seifert @ 2017-01-07 12:15 UTC (permalink / raw
To: gentoo-commits
commit: 480cd80a39b11c69d1adf903e33b76567b10828e
Author: David Seifert <soap <AT> gentoo <DOT> org>
AuthorDate: Sat Jan 7 11:08:43 2017 +0000
Commit: David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Sat Jan 7 12:06:11 2017 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=480cd80a
media-libs/libsidplay: Fix building with GCC 6
Gentoo-bug: 594326
* EAPI=6
* -Wnarrowing patch by Debian
* Make GCC 4.3 patch -p1 compliant
Package-Manager: Portage-2.3.3, Repoman-2.3.1
.../files/libsidplay-1.36.59-fix-c++14.patch | 28 ++++++++++++++++
.../files/libsidplay-1.36.59-gcc43.patch | 4 +--
media-libs/libsidplay/libsidplay-1.36.59-r2.ebuild | 39 ++++++++++++++++++++++
3 files changed, 69 insertions(+), 2 deletions(-)
diff --git a/media-libs/libsidplay/files/libsidplay-1.36.59-fix-c++14.patch b/media-libs/libsidplay/files/libsidplay-1.36.59-fix-c++14.patch
new file mode 100644
index 00000000..91e2064
--- /dev/null
+++ b/media-libs/libsidplay/files/libsidplay-1.36.59-fix-c++14.patch
@@ -0,0 +1,28 @@
+Description: use unsigned char to keep int value
+ Use unsigned char to keep all bits of int values in the array.
+Author: Laszlo Boszormenyi (GCS) <gcs@debian.org>
+Bug-Debian: https://bugs.debian.org/811762
+Last-Update: 2016-07-16
+
+---
+
+--- libsidplay-1.36.59.orig/src/samples.cpp
++++ libsidplay-1.36.59/src/samples.cpp
+@@ -75,7 +75,7 @@ struct sampleChannel
+ sampleChannel ch4, ch5;
+
+
+-const sbyte galwayNoiseTab1[16] =
++const ubyte galwayNoiseTab1[16] =
+ {
+ 0x80,0x91,0xa2,0xb3,0xc4,0xd5,0xe6,0xf7,
+ 0x08,0x19,0x2a,0x3b,0x4c,0x5d,0x6e,0x7f
+@@ -84,7 +84,7 @@ const sbyte galwayNoiseTab1[16] =
+ ubyte galwayNoiseVolTab[16];
+ sbyte galwayNoiseSamTab[16];
+
+-const sbyte sampleConvertTab[16] =
++const ubyte sampleConvertTab[16] =
+ {
+ // 0x81,0x99,0xaa,0xbb,0xcc,0xdd,0xee,0xff,
+ // 0x00,0x11,0x22,0x33,0x44,0x55,0x66,0x7f
diff --git a/media-libs/libsidplay/files/libsidplay-1.36.59-gcc43.patch b/media-libs/libsidplay/files/libsidplay-1.36.59-gcc43.patch
index cc68101..f1fcc41 100644
--- a/media-libs/libsidplay/files/libsidplay-1.36.59-gcc43.patch
+++ b/media-libs/libsidplay/files/libsidplay-1.36.59-gcc43.patch
@@ -1,5 +1,5 @@
---- src/sidtune.cpp
-+++ src/sidtune.cpp
+--- a/src/sidtune.cpp
++++ b/src/sidtune.cpp
@@ -306,11 +306,7 @@ udword sidTune::loadFile(const char* fileName, ubyte** bufferRef)
return 0;
}
diff --git a/media-libs/libsidplay/libsidplay-1.36.59-r2.ebuild b/media-libs/libsidplay/libsidplay-1.36.59-r2.ebuild
new file mode 100644
index 00000000..b9f175a
--- /dev/null
+++ b/media-libs/libsidplay/libsidplay-1.36.59-r2.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+inherit libtool multilib-minimal
+
+DESCRIPTION="C64 SID player library"
+HOMEPAGE="http://critical.ch/distfiles/"
+SRC_URI="http://critical.ch/distfiles/${P}.tgz"
+
+LICENSE="GPL-2"
+SLOT="1"
+KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
+IUSE="static-libs"
+DEPEND=""
+RDEPEND=""
+
+DOCS=( AUTHORS DEVELOPER )
+PATCHES=(
+ "${FILESDIR}"/${P}-gcc43.patch
+ "${FILESDIR}"/${P}-fix-c++14.patch
+)
+
+src_prepare() {
+ default
+ elibtoolize # required for fbsd .so versioning
+}
+
+multilib_src_configure() {
+ ECONF_SOURCE="${S}" \
+ econf $(use_enable static-libs static)
+}
+
+multilib_src_install_all() {
+ einstalldocs
+ find "${D}" -name '*.la' -delete || die
+}
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: media-libs/libsidplay/files/, media-libs/libsidplay/
@ 2017-01-29 22:38 Jeroen Roovers
0 siblings, 0 replies; 3+ messages in thread
From: Jeroen Roovers @ 2017-01-29 22:38 UTC (permalink / raw
To: gentoo-commits
commit: c2374d1613f689dcea637a805f383da4cfe511b6
Author: Jeroen Roovers <jer <AT> gentoo <DOT> org>
AuthorDate: Sun Jan 29 22:24:25 2017 +0000
Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org>
CommitDate: Sun Jan 29 22:38:00 2017 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c2374d16
media-libs/libsidplay: Fix patches.
Package-Manager: Portage-2.3.3, Repoman-2.3.1
media-libs/libsidplay/files/libsidplay-2.1.1-fbsd.patch | 4 ++--
...sidplay2-gcc41.patch => libsidplay-2.1.1-gcc41.patch} | 8 ++++----
media-libs/libsidplay/files/libsidplay-2.1.1-gcc43.patch | 16 ++++++++--------
.../files/libsidplay-2.1.1-no_libtool_reference.patch | 8 ++++----
media-libs/libsidplay/libsidplay-2.1.1-r4.ebuild | 4 ++--
5 files changed, 20 insertions(+), 20 deletions(-)
diff --git a/media-libs/libsidplay/files/libsidplay-2.1.1-fbsd.patch b/media-libs/libsidplay/files/libsidplay-2.1.1-fbsd.patch
index b2f4acd..0f4740e 100644
--- a/media-libs/libsidplay/files/libsidplay-2.1.1-fbsd.patch
+++ b/media-libs/libsidplay/files/libsidplay-2.1.1-fbsd.patch
@@ -1,5 +1,5 @@
---- libsidutils/src/ini/ini.cpp
-+++ libsidutils/src/ini/ini.cpp
+--- a/libsidutils/src/ini/ini.cpp
++++ b/libsidutils/src/ini/ini.cpp
@@ -100,7 +100,7 @@
//*******************************************************************************************************************
#include <assert.h>
diff --git a/media-libs/libsidplay/files/libsidplay2-gcc41.patch b/media-libs/libsidplay/files/libsidplay-2.1.1-gcc41.patch
similarity index 82%
rename from media-libs/libsidplay/files/libsidplay2-gcc41.patch
rename to media-libs/libsidplay/files/libsidplay-2.1.1-gcc41.patch
index f2e3b31..c05f8d3 100644
--- a/media-libs/libsidplay/files/libsidplay2-gcc41.patch
+++ b/media-libs/libsidplay/files/libsidplay-2.1.1-gcc41.patch
@@ -1,5 +1,5 @@
---- libsidplay/include/sidplay/SmartPtr.h
-+++ libsidplay/include/sidplay/SmartPtr.h
+--- a/libsidplay/include/sidplay/SmartPtr.h
++++ b/libsidplay/include/sidplay/SmartPtr.h
@@ -211,16 +211,16 @@
{
if ( bufferLen >= 1 )
@@ -24,8 +24,8 @@
}
}
};
---- libsidutils/include/sidplay/utils/SidUsage.h
-+++ libsidutils/include/sidplay/utils/SidUsage.h
+--- a/libsidutils/include/sidplay/utils/SidUsage.h
++++ b/libsidutils/include/sidplay/utils/SidUsage.h
@@ -33,7 +33,7 @@
uint_least16_t length; // usage scan length
diff --git a/media-libs/libsidplay/files/libsidplay-2.1.1-gcc43.patch b/media-libs/libsidplay/files/libsidplay-2.1.1-gcc43.patch
index 857a297..419b126 100644
--- a/media-libs/libsidplay/files/libsidplay-2.1.1-gcc43.patch
+++ b/media-libs/libsidplay/files/libsidplay-2.1.1-gcc43.patch
@@ -1,5 +1,5 @@
---- builders/resid-builder/src/resid.cpp
-+++ builders/resid-builder/src/resid.cpp
+--- a/builders/resid-builder/src/resid.cpp
++++ b/builders/resid-builder/src/resid.cpp
@@ -16,6 +16,8 @@
* *
***************************************************************************/
@@ -9,8 +9,8 @@
#include "config.h"
#ifdef HAVE_EXCEPTIONS
---- builders/resid-builder/src/resid-builder.cpp
-+++ builders/resid-builder/src/resid-builder.cpp
+--- a/builders/resid-builder/src/resid-builder.cpp
++++ b/builders/resid-builder/src/resid-builder.cpp
@@ -37,6 +37,7 @@
***************************************************************************/
@@ -19,8 +19,8 @@
#include "config.h"
#ifdef HAVE_EXCEPTIONS
---- builders/hardsid-builder/src/hardsid-builder.cpp
-+++ builders/hardsid-builder/src/hardsid-builder.cpp
+--- a/builders/hardsid-builder/src/hardsid-builder.cpp
++++ b/builders/hardsid-builder/src/hardsid-builder.cpp
@@ -47,6 +47,7 @@
***************************************************************************/
@@ -29,8 +29,8 @@
#include "config.h"
#ifdef HAVE_EXCEPTIONS
---- libsidplay/src/sidtune/SidTune.cpp
-+++ libsidplay/src/sidtune/SidTune.cpp
+--- a/libsidplay/src/sidtune/SidTune.cpp
++++ b/libsidplay/src/sidtune/SidTune.cpp
@@ -283,7 +283,7 @@
uint_least32_t fileLen = 0;
diff --git a/media-libs/libsidplay/files/libsidplay-2.1.1-no_libtool_reference.patch b/media-libs/libsidplay/files/libsidplay-2.1.1-no_libtool_reference.patch
index ee05643..c93f3cf 100644
--- a/media-libs/libsidplay/files/libsidplay-2.1.1-no_libtool_reference.patch
+++ b/media-libs/libsidplay/files/libsidplay-2.1.1-no_libtool_reference.patch
@@ -1,5 +1,5 @@
---- libsidplay/unix/libsidplay2.pc.in
-+++ libsidplay/unix/libsidplay2.pc.in
+--- a/libsidplay/unix/libsidplay2.pc.in
++++ b/libsidplay/unix/libsidplay2.pc.in
@@ -7,5 +7,5 @@
Name: @PACKAGE@
Description: C64 cycle exact stereo sidplayer library.
@@ -7,8 +7,8 @@
-Libs: ${libdir}/libsidplay2.la
+Libs: -lsidplay2
Cflags: -DHAVE_UNIX -I${includedir}
---- libsidutils/unix/libsidutils.pc.in
-+++ libsidutils/unix/libsidutils.pc.in
+--- a/libsidutils/unix/libsidutils.pc.in
++++ b/libsidutils/unix/libsidutils.pc.in
@@ -6,5 +6,5 @@
Name: @PACKAGE@
Description: Utils for supporting the libsidplay2 library.
diff --git a/media-libs/libsidplay/libsidplay-2.1.1-r4.ebuild b/media-libs/libsidplay/libsidplay-2.1.1-r4.ebuild
index 99e72b3..9dbf823 100644
--- a/media-libs/libsidplay/libsidplay-2.1.1-r4.ebuild
+++ b/media-libs/libsidplay/libsidplay-2.1.1-r4.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
@@ -26,7 +26,7 @@ MULTILIB_WRAPPED_HEADERS=(
src_prepare() {
epatch \
- "${FILESDIR}"/${PN}2-gcc41.patch \
+ "${FILESDIR}"/${P}-gcc41.patch \
"${FILESDIR}"/${P}-fbsd.patch \
"${FILESDIR}"/${P}-gcc43.patch \
"${FILESDIR}"/${P}-no_libtool_reference.patch
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: media-libs/libsidplay/files/, media-libs/libsidplay/
@ 2022-05-10 2:30 Sam James
0 siblings, 0 replies; 3+ messages in thread
From: Sam James @ 2022-05-10 2:30 UTC (permalink / raw
To: gentoo-commits
commit: b88dce05e48d726b0c348da618d40023b31b7a74
Author: orbea <orbea <AT> riseup <DOT> net>
AuthorDate: Sun May 8 00:41:18 2022 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue May 10 02:26:17 2022 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b88dce05
media-libs/libsidplay: Added 2.1.1-r6
Bug: https://bugs.gentoo.org/778929
Signed-off-by: orbea <orbea <AT> riseup.net>
Closes: https://github.com/gentoo/gentoo/pull/25379
Signed-off-by: Sam James <sam <AT> gentoo.org>
.../files/libsidplay-2.1.1-autoconf.patch | 172 +++++++++++++++++++++
.../files/libsidplay-2.1.1-slibtool.patch | 39 +++++
media-libs/libsidplay/libsidplay-2.1.1-r6.ebuild | 81 ++++++++++
3 files changed, 292 insertions(+)
diff --git a/media-libs/libsidplay/files/libsidplay-2.1.1-autoconf.patch b/media-libs/libsidplay/files/libsidplay-2.1.1-autoconf.patch
new file mode 100644
index 000000000000..cdb92c63a034
--- /dev/null
+++ b/media-libs/libsidplay/files/libsidplay-2.1.1-autoconf.patch
@@ -0,0 +1,172 @@
+From 426bebc250c24cb4482c85131927303cbf7c606d Mon Sep 17 00:00:00 2001
+From: orbea <orbea@riseup.net>
+Date: Sat, 7 May 2022 13:47:57 -0700
+Subject: [PATCH 1/2] build: Fix autoreconf
+
+---
+ builders/hardsid-builder/configure.ac | 1 +
+ builders/resid-builder/configure.ac | 1 +
+ configure.ac | 75 ++----
+ libsidplay/configure.ac | 1 +
+ libsidutils/configure.ac | 1 +
+ resid/{configure.in => configure.ac} | 0
+ 6 files changed, 30 insertions(+), 49 deletions(-)
+ rename resid/{configure.in => configure.ac} (100%)
+ create mode 100644 unix/ax_subdirs_configure.m4
+
+diff --git a/builders/hardsid-builder/configure.ac b/builders/hardsid-builder/configure.ac
+index a54cf26..bdc2bd0 100644
+--- a/builders/hardsid-builder/configure.ac
++++ b/builders/hardsid-builder/configure.ac
+@@ -2,6 +2,7 @@ dnl Process this file with autoconf to produce a configure script.
+ AC_INIT(Makefile.am)
+ AC_CONFIG_AUX_DIR(unix)
+ AM_CONFIG_HEADER(unix/config.h)
++AC_CONFIG_MACRO_DIR([unix])
+
+ dnl Setup library CURRENT, REVISION and AGE
+ LIBCUR=0
+diff --git a/builders/resid-builder/configure.ac b/builders/resid-builder/configure.ac
+index 4a98801..5f5561b 100644
+--- a/builders/resid-builder/configure.ac
++++ b/builders/resid-builder/configure.ac
+@@ -2,6 +2,7 @@ dnl Process this file with autoconf to produce a configure script.
+ AC_INIT(Makefile.am)
+ AC_CONFIG_AUX_DIR(unix)
+ AM_CONFIG_HEADER(unix/config.h)
++AC_CONFIG_MACRO_DIR([unix])
+
+ dnl Setup library CURRENT, REVISION and AGE
+ LIBCUR=0
+diff --git a/configure.ac b/configure.ac
+index 5724156..d622982 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -3,70 +3,47 @@ AC_INIT(Makefile.am)
+ #Variables
+ pwd=`pwd`
+ builders='${libdir}'/sidplay/builders
+-ac_configure_args="$ac_configure_args --disable-library-checks"
+
+ AC_CONFIG_AUX_DIR(unix)
++AC_CONFIG_MACRO_DIR([unix])
+ AM_INIT_AUTOMAKE(sidplay-libs,2.1.1)
+ AC_CANONICAL_HOST
+
+ hardsid=false
+ case "$host" in
+- *linux*) hardsid=true
+- ;;
++ *linux*) hardsid=true ;;
+ esac
+-AM_CONDITIONAL(HARDSID, test x$hardsid = xtrue)
+
+-echo; echo "Configuring libsidplay..."
+-cd $pwd/libsidplay
+-if ! eval ./configure $ac_configure_args \
+---with-sidbuilders=$builders;
+-then
+-exit
+-fi
++AX_SUBDIRS_CONFIGURE([libsidplay], [
++ [--disable-library-checks],
++ [--with-sidbuilders=$builders]])
+
+-echo; echo "Configuring resid..."
+-cd "$pwd/resid"
+-if ! eval ./configure $ac_configure_args \
+---disable-resid-install;
+-then
+-exit
+-fi
++AX_SUBDIRS_CONFIGURE([resid], [
++ [--disable-library-checks],
++ [--disable-resid-install]])
+
+-echo; echo "Configuring resid-builder..."
+-cd $pwd/builders/resid-builder
+-if ! eval ./configure $ac_configure_args \
+---with-sidplay2-includes=$pwd/libsidplay/include \
+---with-sidplay2-library=$pwd/libsidplay/src \
+---with-resid-includes=$pwd/resid \
+---with-resid-library=$pwd/resid \
+---libdir=$builders;
+-then
+-exit
+-fi
++AX_SUBDIRS_CONFIGURE([builders/resid-builder], [
++ [--disable-library-checks],
++ [--with-sidplay2-includes=$pwd/libsidplay/include],
++ [--with-sidplay2-library=$pwd/libsidplay/src],
++ [--with-resid-includes=$pwd/resid],
++ [--with-resid-library=$pwd/resid],
++ [--libdir=$builders]])
+
+-if test x$hardsid = xtrue; then
+- echo; echo "Configuring hardsid-builder..."
+- cd $pwd/builders/hardsid-builder
+- if ! eval ./configure $ac_configure_args \
+- --with-sidplay2-includes=$pwd/libsidplay/include \
+- --with-sidplay2-library=$pwd/libsidplay/src \
+- --libdir=$builders;
+- then
+- exit
+- fi
+-fi
++AM_CONDITIONAL(HARDSID, test x$hardsid = xtrue)
+
+-echo; echo "Configuring libsidutils..."
+-cd $pwd/libsidutils
+-if ! eval ./configure $ac_configure_args \
+---with-sidplay2-includes=$pwd/libsidplay/include \
+---with-sidplay2-library=$pwd/libsidplay/src;
+-then
+-exit
++if test x$hardsid = xtrue; then
++ AX_SUBDIRS_CONFIGURE([builders/hardsid-builder], [
++ [--disable-library-checks],
++ [--with-sidplay2-includes=$pwd/libsidplay/include],
++ [--with-sidplay2-library=$pwd/libsidplay/src],
++ [--libdir=$builders]])
+ fi
+
+-echo
+-cd $pwd
++AX_SUBDIRS_CONFIGURE([libsidutils], [
++ [--disable-library-checks],
++ [--with-sidplay2-includes=$pwd/libsidplay/include],
++ [--with-sidplay2-library=$pwd/libsidplay/src]])
+
+ AC_OUTPUT(
+ Makefile \
+diff --git a/libsidplay/configure.ac b/libsidplay/configure.ac
+index 1946508..9c9d808 100644
+--- a/libsidplay/configure.ac
++++ b/libsidplay/configure.ac
+@@ -8,6 +8,7 @@ AC_INIT(libsidplay,2.LIBCUR.LIBREV)
+ AC_CONFIG_HEADER(unix/config.h)
+ AC_CONFIG_SRCDIR(Makefile.am)
+ AC_CONFIG_AUX_DIR(unix)
++AC_CONFIG_MACRO_DIR([unix])
+ AM_INIT_AUTOMAKE(no-define)
+
+ dnl libtool-style version-info number
+diff --git a/libsidutils/configure.ac b/libsidutils/configure.ac
+index 1e38d14..4461aa1 100644
+--- a/libsidutils/configure.ac
++++ b/libsidutils/configure.ac
+@@ -2,6 +2,7 @@ dnl Process this file with autoconf to produce a configure script.
+ AC_INIT(Makefile.am)
+ AC_CONFIG_AUX_DIR(unix)
+ AM_CONFIG_HEADER(unix/config.h)
++AC_CONFIG_MACRO_DIR([unix])
+
+ dnl Setup library CURRENT, REVISION and AGE
+ LIBCUR=0
+diff --git a/resid/configure.in b/resid/configure.ac
+similarity index 100%
+rename from resid/configure.in
+rename to resid/configure.ac
+--
+2.35.1
+
diff --git a/media-libs/libsidplay/files/libsidplay-2.1.1-slibtool.patch b/media-libs/libsidplay/files/libsidplay-2.1.1-slibtool.patch
new file mode 100644
index 000000000000..f549ed7c6d97
--- /dev/null
+++ b/media-libs/libsidplay/files/libsidplay-2.1.1-slibtool.patch
@@ -0,0 +1,39 @@
+From 6536bf3ceb05e4d32f985a896354b98310c49b5b Mon Sep 17 00:00:00 2001
+From: orbea <orbea@riseup.net>
+Date: Sat, 7 May 2022 14:04:08 -0700
+Subject: [PATCH 2/2] resid: Fix build with slibtool
+
+---
+ resid/Makefile.am | 9 ++-------
+ 1 file changed, 2 insertions(+), 7 deletions(-)
+
+diff --git a/resid/Makefile.am b/resid/Makefile.am
+index bbec226..0a32647 100644
+--- a/resid/Makefile.am
++++ b/resid/Makefile.am
+@@ -7,20 +7,15 @@ if INSTALL_RESID
+ lib_LTLIBRARIES = libresid.la
+ pkginclude_HEADERS = $(resid_headers)
+ else
+-noinst_LTLIBRARIES = libresidc.la
++noinst_LTLIBRARIES = libresid.la
+ noinst_HEADERS = $(resid_headers)
+-
+-all-local:
+- ln -sf libresidc.la libresid.la
+-
+ endif
+
+ ## Make sure these will be cleaned even when they're not built by
+ ## default.
+-CLEANFILES = libresid.la libresidc.la
++CLEANFILES = libresid.la
+
+ libresid_la_SOURCES = $(resid_sources)
+-libresidc_la_SOURCES = $(resid_sources)
+
+ BUILT_SOURCES = $(noinst_DATA:.dat=.cc)
+
+--
+2.35.1
+
diff --git a/media-libs/libsidplay/libsidplay-2.1.1-r6.ebuild b/media-libs/libsidplay/libsidplay-2.1.1-r6.ebuild
new file mode 100644
index 000000000000..2c97a40bcb14
--- /dev/null
+++ b/media-libs/libsidplay/libsidplay-2.1.1-r6.ebuild
@@ -0,0 +1,81 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit autotools multilib-minimal
+
+MY_P=sidplay-libs-${PV}
+
+DESCRIPTION="C64 SID player library"
+HOMEPAGE="http://sidplay2.sourceforge.net/"
+SRC_URI="mirror://sourceforge/sidplay2/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="2"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86"
+IUSE="static-libs"
+
+BDEPEND="sys-devel/autoconf-archive"
+
+MULTILIB_WRAPPED_HEADERS=(
+ /usr/include/sidplay/sidconfig.h
+)
+
+PATCHES=(
+ "${FILESDIR}"/${P}-gcc41.patch
+ "${FILESDIR}"/${P}-fbsd.patch
+ "${FILESDIR}"/${P}-gcc43.patch
+ "${FILESDIR}"/${P}-no_libtool_reference.patch
+ "${FILESDIR}"/${P}-gcc6.patch
+ "${FILESDIR}"/${P}-autoconf.patch
+ "${FILESDIR}"/${P}-slibtool.patch
+)
+
+S="${WORKDIR}/${MY_P}"
+
+src_prepare() {
+ default
+
+ local subdirs=(
+ builders/hardsid-builder
+ builders/resid-builder
+ libsidplay
+ libsidutils
+ resid
+ .
+ )
+
+ for i in ${subdirs[@]}; do
+ (
+ cd "$i" || die
+ eautoreconf
+ )
+ done
+
+ multilib_copy_sources
+}
+
+multilib_src_configure() {
+ local myeconfargs=(
+ --enable-shared
+ --with-pic
+ $(use_enable static-libs static)
+ )
+ econf "${myeconfargs[@]}"
+}
+
+multilib_src_install_all() {
+ docinto libsidplay
+ dodoc libsidplay/{AUTHORS,ChangeLog,README,TODO}
+
+ docinto libsidutils
+ dodoc libsidutils/{AUTHORS,ChangeLog,README,TODO}
+
+ docinto resid
+ dodoc resid/{AUTHORS,ChangeLog,NEWS,README,THANKS,TODO}
+
+ doenvd "${FILESDIR}"/65resid
+
+ find "${D}" -name '*.la' -delete || die
+}
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-05-10 2:30 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-05-10 2:30 [gentoo-commits] repo/gentoo:master commit in: media-libs/libsidplay/files/, media-libs/libsidplay/ Sam James
-- strict thread matches above, loose matches on Subject: below --
2017-01-29 22:38 Jeroen Roovers
2017-01-07 12:15 David Seifert
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox