summaryrefslogtreecommitdiff
path: root/media-sound/milkytracker
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2021-04-28 20:21:43 +0100
committerV3n3RiX <venerix@redcorelinux.org>2021-04-28 20:21:43 +0100
commit40aaaa64e86ba6710bbeb31c4615a6ce80e75e11 (patch)
tree758c221bad35c9288d0bd6df9c7dfc226728e52c /media-sound/milkytracker
parent8d5dbd847cbc704a6a06405856e94b461011afe3 (diff)
gentoo resync : 28.04.2021
Diffstat (limited to 'media-sound/milkytracker')
-rw-r--r--media-sound/milkytracker/Manifest8
-rw-r--r--media-sound/milkytracker/files/milkytracker-1.02.00-CVE-2019-14464.patch26
-rw-r--r--media-sound/milkytracker/files/milkytracker-1.02.00-CVE-2019-1449x.patch104
-rw-r--r--media-sound/milkytracker/files/milkytracker-1.02.00-CVE-2020-15569.patch35
-rw-r--r--media-sound/milkytracker/files/milkytracker-1.02.00-clang.patch85
-rw-r--r--media-sound/milkytracker/files/milkytracker-1.02.00-fix-hard-dependency-on-rtmidi.patch85
-rw-r--r--media-sound/milkytracker/milkytracker-1.02.00-r1.ebuild59
7 files changed, 0 insertions, 402 deletions
diff --git a/media-sound/milkytracker/Manifest b/media-sound/milkytracker/Manifest
index 0a1752cb25fd..7aab9b20b774 100644
--- a/media-sound/milkytracker/Manifest
+++ b/media-sound/milkytracker/Manifest
@@ -1,11 +1,3 @@
-AUX milkytracker-1.02.00-CVE-2019-14464.patch 926 BLAKE2B 632af971c55cd80d1a8aa2b8d2dd2fdc5c471feaa0bbe8fff0b980de8a1db2f2281a816381a08a064f105146839fa63194e770190ca77ec79a14d9c2ff1839b0 SHA512 c37d11fd83831199075205ae9631bb6a2ac05458c63155a8a65a093fa8ce851ce7b9d8efb35d7db785760dc126c225aa292c4b11f3de5d2f87d7fa9c0bda6c76
-AUX milkytracker-1.02.00-CVE-2019-1449x.patch 3121 BLAKE2B 8b863ed8a9c78942c303e06ed8f8089d4602a9b8765a38ae9974f3871441f9b10cde4cc8a297a45cd66da567c94234c4ca9f7eed1505ba2ced92fb2407cf5fed SHA512 4805e831e6ae3934fdab2045e76eb1bfd750e3efb4df58b374ac69d7bdc6d5f88241b4a8d87a6b681cfdf11c1b0316f7c6691d505b6cfd28dd6324dc0de7bff8
-AUX milkytracker-1.02.00-CVE-2020-15569.patch 972 BLAKE2B 34dfbe0690fefce4cbcfeabe571d811092bba6c72e2bfe8db5e087d21774563bd79108e88c66b490999553587ab755fce16d53f4822e23149b86c5585aa46c00 SHA512 358b5e1709a634f2e51c6bda53684c903f57e328d73a364c5b7feac4c278288838cfde3f1afc087b2f52259f1cbcacda022dc92f3a621c7d772a9be8d248c220
-AUX milkytracker-1.02.00-clang.patch 2346 BLAKE2B 4e957fbc69e4b5aa9ee5f93292df62e04f577e26dbc2b16464c338761330a95247a5f908d471f000964c8960878d673293f71ddb6289bf386923cebbdbc335c1 SHA512 3dcac9b8d889f761e016f7fedfb2670392982f74438bf4ed83bbdfb89f424f583ea9c16ac13c3c9a99e3453e9ed6f460866563fde3318eaba49218181fa1ebf0
-AUX milkytracker-1.02.00-fix-hard-dependency-on-rtmidi.patch 2570 BLAKE2B fe0a454e34c9b7b88125ccdfb6f77e1cc014013a8f054f00c6330e733ba54154bc1d96ef256cf5befc8329c169e57f29062652f0ff84dc55201572d0201111fc SHA512 0112a805d61204ff31ad0b1b31cbc9ff60f91f5ada275a839f0c258c3f5302239fd9b00ba7d8387b5865ad2ea86abedc32630ff2f1b58c0a74bfa67895a5676a
-DIST milkytracker-1.02.00-cmake.patch 40073 BLAKE2B cef8fc7efff9324c1d628026d650c79e11950b53481686e5dd35ace483839fbdd6b2b1f8ccce2f688beec2c7c28b0fe3b60d0e8d540d6cd163927f4bacf9d396 SHA512 bd4ca0d092229722ca81addaf9eec3ff1b176061da7b44fe3f02fbe020c3820778ed973dde95588b4c9f918728e2c69c24ac23083a2f48c0cbad2e854eeff5ba
-DIST milkytracker-1.02.00.tar.gz 3753882 BLAKE2B e9bb4341e016d2a9c518835e8b4620f748da60bca7205302e7500f14f3294e7fa9a20fef203226fffbe22a11a3b4978ea928f0f544eb70e99b5998ecc7c45611 SHA512 479a7b3198d97c68dca4fa772a2aa64d7f740957f5d8038fabfb303e724c85aec0865746a0a5c3ef6b9599b78892dcda22727ab2bb80ae38764bcf81b249e134
DIST milkytracker-1.03.00.tar.gz 3705395 BLAKE2B f14a7112de39748121933d242d89dc6efb71a73c3591fedb92785814e2edc788edfb6608e9237cdfed19ee7337d5920d0232eed5d85f692dbef5d4cb43a27cd0 SHA512 d5489994d9c5d24552073afcbd787c20720096dd81d640356fc13b2e2b8a49713b798066d54f2b589f3819c14279142e295e4d6317ed325537069faad47abbe6
-EBUILD milkytracker-1.02.00-r1.ebuild 1527 BLAKE2B ad59c3aec2f8c6875131d84463a76a586af11f2222a073728ec26f7117362d1e0f8447b7b41d5fb56cf9f03816f1e10e9ad0430a26529ef0c0cdeabd67f83557 SHA512 cf999b71b395b7d42575f374ac4e5b21d3e18db0c749cba2811d63c16a926e3c1103bbcc96c46faa3c91bc18bb056fafd66ed96a2a774b39facac3bc80828c23
EBUILD milkytracker-1.03.00.ebuild 976 BLAKE2B 32834e351f8b0321b8fcd8967a93dbda9226a764e52d1ee9987f0fca9354e1a3b51ea45109e17da01e53deefbfada7455e745a5704e88fb49933b889b29aedee SHA512 15d34b6e27b4c2d9fd17effc22eb2c896ce63decce1412cc87b643e26cc174888e95b1956431988fe29685f4fed9dbe0633817fbc1fd7fa888ab92db71f7dadf
MISC metadata.xml 336 BLAKE2B 25e72a4e6699474f9a932ab2f4a7a360165e399b59086d719d4edcbedf4d5a1c08f2b8e790fd7eacddf4e0c3a444fbe640df7fd14b50169b8c92ecc8e0d78410 SHA512 0490c225b35946c04189594aa9d1855b9391ace1ac83914536317df7d7615a33dd1467a45dfb1b3e75a6a677fcd8c460bb6be197ff5d8010f9bf6e4c1ee4e916
diff --git a/media-sound/milkytracker/files/milkytracker-1.02.00-CVE-2019-14464.patch b/media-sound/milkytracker/files/milkytracker-1.02.00-CVE-2019-14464.patch
deleted file mode 100644
index d59522d6d1d0..000000000000
--- a/media-sound/milkytracker/files/milkytracker-1.02.00-CVE-2019-14464.patch
+++ /dev/null
@@ -1,26 +0,0 @@
-This patch is from upstream:
-https://github.com/milkytracker/MilkyTracker/commit/fd607a3439fcdd0992e5efded3c16fc79c804e34
-
-commit fd607a3439fcdd0992e5efded3c16fc79c804e34
-Author: Christopher O'Neill <code@chrisoneill.co.uk>
-Date: Tue Jul 30 19:11:58 2019 +0100
-
- Fix #184: Heap overflow in S3M loader
-
-diff --git a/src/milkyplay/LoaderS3M.cpp b/src/milkyplay/LoaderS3M.cpp
-index 5abf211..edf0fd5 100644
---- a/src/milkyplay/LoaderS3M.cpp
-+++ b/src/milkyplay/LoaderS3M.cpp
-@@ -340,7 +340,11 @@ mp_sint32 LoaderS3M::load(XMFileBase& f, XModule* module)
- return MP_OUT_OF_MEMORY;
-
- header->insnum = f.readWord(); // number of instruments
-- header->patnum = f.readWord(); // number of patterns
-+ if (header->insnum > MP_MAXINS)
-+ return MP_LOADER_FAILED;
-+ header->patnum = f.readWord(); // number of patterns
-+ if (header->patnum > 256)
-+ return MP_LOADER_FAILED;
-
- mp_sint32 flags = f.readWord(); // st3 flags
-
diff --git a/media-sound/milkytracker/files/milkytracker-1.02.00-CVE-2019-1449x.patch b/media-sound/milkytracker/files/milkytracker-1.02.00-CVE-2019-1449x.patch
deleted file mode 100644
index 0560cd2b825b..000000000000
--- a/media-sound/milkytracker/files/milkytracker-1.02.00-CVE-2019-1449x.patch
+++ /dev/null
@@ -1,104 +0,0 @@
-This patch is from upstream:
-https://github.com/milkytracker/MilkyTracker/commit/ea7772a3fae0a9dd0a322e8fec441d15843703b7
-
-commit ea7772a3fae0a9dd0a322e8fec441d15843703b7
-Author: Christopher O'Neill <code@chrisoneill.co.uk>
-Date: Tue Jul 30 18:40:03 2019 +0100
-
- Fixes for buffer overflow issues #182 & #183
-
-diff --git a/src/milkyplay/LoaderXM.cpp b/src/milkyplay/LoaderXM.cpp
-index 108d915..f87f5c1 100644
---- a/src/milkyplay/LoaderXM.cpp
-+++ b/src/milkyplay/LoaderXM.cpp
-@@ -63,8 +63,8 @@ const char* LoaderXM::identifyModule(const mp_ubyte* buffer)
- mp_sint32 LoaderXM::load(XMFileBase& f, XModule* module)
- {
- mp_ubyte insData[230];
-- mp_sint32 smpReloc[96];
-- mp_ubyte nbu[96];
-+ mp_sint32 smpReloc[MP_MAXINSSAMPS];
-+ mp_ubyte nbu[MP_MAXINSSAMPS];
- mp_uint32 fileSize = 0;
-
- module->cleanUp();
-@@ -117,6 +117,8 @@ mp_sint32 LoaderXM::load(XMFileBase& f, XModule* module)
- memcpy(header->ord, hdrBuff+16, 256);
- if(header->ordnum > MP_MAXORDERS)
- header->ordnum = MP_MAXORDERS;
-+ if(header->insnum > MP_MAXINS)
-+ return MP_LOADER_FAILED;
-
- delete[] hdrBuff;
-
-@@ -143,7 +145,7 @@ mp_sint32 LoaderXM::load(XMFileBase& f, XModule* module)
- f.read(&instr[y].type,1,1);
- mp_uword numSamples = 0;
- f.readWords(&numSamples,1);
-- if(numSamples > 96)
-+ if(numSamples > MP_MAXINSSAMPS)
- return MP_LOADER_FAILED;
- instr[y].samp = numSamples;
-
-@@ -169,8 +171,8 @@ mp_sint32 LoaderXM::load(XMFileBase& f, XModule* module)
- if (instr[y].samp) {
- mp_ubyte* insDataPtr = insData;
-
-- memcpy(nbu, insDataPtr, 96);
-- insDataPtr+=96;
-+ memcpy(nbu, insDataPtr, MP_MAXINSSAMPS);
-+ insDataPtr+=MP_MAXINSSAMPS;
-
- TEnvelope venv;
- TEnvelope penv;
-@@ -285,7 +287,7 @@ mp_sint32 LoaderXM::load(XMFileBase& f, XModule* module)
-
- instr[y].samp = g;
-
-- for (sc = 0; sc < 96; sc++) {
-+ for (sc = 0; sc < MP_MAXINSSAMPS; sc++) {
- if (smpReloc[nbu[sc]] == -1)
- instr[y].snum[sc] = -1;
- else
-@@ -491,6 +493,8 @@ mp_sint32 LoaderXM::load(XMFileBase& f, XModule* module)
- f.read(&instr[y].type,1,1);
- f.readWords(&instr[y].samp,1);
- }
-+ if (instr[y].samp > MP_MAXINSSAMPS)
-+ return MP_LOADER_FAILED;
-
- //printf("%i, %i\n", instr[y].size, instr[y].samp);
-
-@@ -532,8 +536,8 @@ mp_sint32 LoaderXM::load(XMFileBase& f, XModule* module)
-
- //f.read(&nbu,1,96);
-
-- memcpy(nbu, insDataPtr, 96);
-- insDataPtr+=96;
-+ memcpy(nbu, insDataPtr, MP_MAXINSSAMPS);
-+ insDataPtr+=MP_MAXINSSAMPS;
-
- TEnvelope venv;
- TEnvelope penv;
-@@ -650,7 +654,7 @@ mp_sint32 LoaderXM::load(XMFileBase& f, XModule* module)
-
- instr[y].samp = g;
-
-- for (sc = 0; sc < 96; sc++) {
-+ for (sc = 0; sc < MP_MAXINSSAMPS; sc++) {
- if (smpReloc[nbu[sc]] == -1)
- instr[y].snum[sc] = -1;
- else
-diff --git a/src/milkyplay/XModule.h b/src/milkyplay/XModule.h
-index f42d04b..4f04a2d 100644
---- a/src/milkyplay/XModule.h
-+++ b/src/milkyplay/XModule.h
-@@ -40,6 +40,8 @@
-
- #define MP_MAXTEXT 32
- #define MP_MAXORDERS 256
-+#define MP_MAXINS 255
-+#define MP_MAXINSSAMPS 96
-
- struct TXMHeader
- {
diff --git a/media-sound/milkytracker/files/milkytracker-1.02.00-CVE-2020-15569.patch b/media-sound/milkytracker/files/milkytracker-1.02.00-CVE-2020-15569.patch
deleted file mode 100644
index 59c2f9942ae6..000000000000
--- a/media-sound/milkytracker/files/milkytracker-1.02.00-CVE-2020-15569.patch
+++ /dev/null
@@ -1,35 +0,0 @@
-Fix is from upstream:
-https://github.com/milkytracker/MilkyTracker/commit/7afd55c42ad80d01a339197a2d8b5461d214edaf
-
-Gentoo Bug: https://bugs.gentoo.org/711280
-
-commit 7afd55c42ad80d01a339197a2d8b5461d214edaf
-Author: Jeremy Clarke <geckojsc@gmail.com>
-Date: Mon Apr 13 23:53:51 2020 +0100
-
- Fix use-after-free in PlayerGeneric destructor
-
-diff --git a/src/milkyplay/PlayerGeneric.cpp b/src/milkyplay/PlayerGeneric.cpp
-index 8df2c13..59f7cba 100644
---- a/src/milkyplay/PlayerGeneric.cpp
-+++ b/src/milkyplay/PlayerGeneric.cpp
-@@ -202,15 +202,16 @@ PlayerGeneric::PlayerGeneric(mp_sint32 frequency, AudioDriverInterface* audioDri
-
- PlayerGeneric::~PlayerGeneric()
- {
-- if (mixer)
-- delete mixer;
-
- if (player)
- {
-- if (mixer->isActive() && !mixer->isDeviceRemoved(player))
-+ if (mixer && mixer->isActive() && !mixer->isDeviceRemoved(player))
- mixer->removeDevice(player);
- delete player;
- }
-+
-+ if (mixer)
-+ delete mixer;
-
- delete[] audioDriverName;
-
diff --git a/media-sound/milkytracker/files/milkytracker-1.02.00-clang.patch b/media-sound/milkytracker/files/milkytracker-1.02.00-clang.patch
deleted file mode 100644
index 48e6dc39cb5a..000000000000
--- a/media-sound/milkytracker/files/milkytracker-1.02.00-clang.patch
+++ /dev/null
@@ -1,85 +0,0 @@
-diff --git a/src/tracker/EQConstants.cpp b/src/tracker/EQConstants.cpp
-index ffbf6ea..fa6fdce 100644
---- a/src/tracker/EQConstants.cpp
-+++ b/src/tracker/EQConstants.cpp
-@@ -27,9 +27,9 @@
-
- const float EQConstants::EQ3bands[3] =
- {
-- p(5), // 32 Hz
-- p(9), // 522 Hz
-- p(12), // 4181.5 Hz
-+ (float) p(5), // 32 Hz
-+ (float) p(9), // 522 Hz
-+ (float) p(12), // 4181.5 Hz
- };
-
- const float EQConstants::EQ3bandwidths[3] =
-@@ -41,28 +41,28 @@ const float EQConstants::EQ3bandwidths[3] =
-
- const float EQConstants::EQ10bands[10] =
- {
-- p(3), // 8 Hz
-- p(4), // 16 Hz
-- p(5), // 32 Hz
-- p(6), // 65 Hz
-- p(7), // 130 Hz
-- p(8), // 261 Hz
-- p(9), // 522 Hz
-- p(10), // 1 kHz
-- p(11), // 2 kHz
-- p(12), // 4181.5 Hz
-+ (float) p(3), // 8 Hz
-+ (float) p(4), // 16 Hz
-+ (float) p(5), // 32 Hz
-+ (float) p(6), // 65 Hz
-+ (float) p(7), // 130 Hz
-+ (float) p(8), // 261 Hz
-+ (float) p(9), // 522 Hz
-+ (float) p(10), // 1 kHz
-+ (float) p(11), // 2 kHz
-+ (float) p(12), // 4181.5 Hz
- };
-
- const float EQConstants::EQ10bandwidths[10] =
- {
- 16,
-- p(3)*1.5f,
-- p(4)*1.5f,
-- p(5)*1.5f,
-- p(6)*1.5f,
-- p(7)*1.5f,
-- p(8)*1.0f,
-- p(9)*1.0f,
-+ (float) p(3)*1.5f,
-+ (float) p(4)*1.5f,
-+ (float) p(5)*1.5f,
-+ (float) p(6)*1.5f,
-+ (float) p(7)*1.5f,
-+ (float) p(8)*1.0f,
-+ (float) p(9)*1.0f,
- 600.0f,
- 800.0f
- };
-diff --git a/src/tracker/sdl/SDL_Main.cpp b/src/tracker/sdl/SDL_Main.cpp
-index 420b4d9..d404f08 100644
---- a/src/tracker/sdl/SDL_Main.cpp
-+++ b/src/tracker/sdl/SDL_Main.cpp
-@@ -609,7 +609,7 @@ void translateKeyDownEvent(const SDL_Event& event)
- printf ("DEBUG: Key pressed: VK: %d, SC: %d, Scancode: %d\n", toVK(keysym), toSC(keysym), keysym.sym);
- #endif
-
-- pp_uint16 chr[3] = {toVK(keysym), toSC(keysym), keysym.sym};
-+ pp_uint16 chr[3] = {(pp_uint16) toVK(keysym), (pp_uint16) toSC(keysym), (pp_uint16) keysym.sym};
-
- PPEvent myEvent(eKeyDown, &chr, sizeof(chr));
- RaiseEventSerialized(&myEvent);
-@@ -621,7 +621,7 @@ void translateKeyUpEvent(const SDL_Event& event)
-
- preTranslateKey(keysym);
-
-- pp_uint16 chr[3] = {toVK(keysym), toSC(keysym), keysym.sym};
-+ pp_uint16 chr[3] = {(pp_uint16) toVK(keysym), (pp_uint16) toSC(keysym), (pp_uint16) keysym.sym};
-
- PPEvent myEvent(eKeyUp, &chr, sizeof(chr));
- RaiseEventSerialized(&myEvent);
diff --git a/media-sound/milkytracker/files/milkytracker-1.02.00-fix-hard-dependency-on-rtmidi.patch b/media-sound/milkytracker/files/milkytracker-1.02.00-fix-hard-dependency-on-rtmidi.patch
deleted file mode 100644
index 090e433b5fdc..000000000000
--- a/media-sound/milkytracker/files/milkytracker-1.02.00-fix-hard-dependency-on-rtmidi.patch
+++ /dev/null
@@ -1,85 +0,0 @@
-From f85f5336df72dc44e407ae756ed20a8f8422cb76 Mon Sep 17 00:00:00 2001
-From: Dale Whinham <daleyo@gmail.com>
-Date: Sat, 11 Apr 2020 16:51:31 +0100
-Subject: [PATCH] Fix hard dependency on RtMidi
-
-It is perfectly reasonable for libasound to be installed, but not
-librtmidi, and so we should only enable the MIDI code if both are
-present.
-
-Fixes #207.
----
- src/tracker/CMakeLists.txt | 1 +
- src/tracker/sdl/SDL_Main.cpp | 12 ++++++------
- 2 files changed, 7 insertions(+), 6 deletions(-)
-
-diff --git a/src/tracker/CMakeLists.txt b/src/tracker/CMakeLists.txt
-index 0a935330..f4243a0f 100644
---- a/src/tracker/CMakeLists.txt
-+++ b/src/tracker/CMakeLists.txt
-@@ -348,6 +348,7 @@ elseif(WIN32)
- target_link_libraries(tracker midi)
- else()
- if(ALSA_FOUND AND RTMIDI_FOUND)
-+ target_compile_definitions(tracker PRIVATE -DHAVE_LIBRTMIDI)
- target_link_libraries(tracker midi)
- endif()
- endif()
-diff --git a/src/tracker/sdl/SDL_Main.cpp b/src/tracker/sdl/SDL_Main.cpp
-index 1a49fc12..75ffa1df 100644
---- a/src/tracker/sdl/SDL_Main.cpp
-+++ b/src/tracker/sdl/SDL_Main.cpp
-@@ -78,7 +78,7 @@
- #include "PPSystem_POSIX.h"
- #include "PPPath_POSIX.h"
-
--#ifdef HAVE_LIBASOUND
-+#ifdef HAVE_LIBRTMIDI
- #include "../midi/posix/MidiReceiver_pthread.h"
- #endif
- // --------------------------------------------------------------------------
-@@ -89,7 +89,7 @@ static SDL_TimerID timer;
- static PPScreen* myTrackerScreen = NULL;
- static Tracker* myTracker = NULL;
- static PPDisplayDevice* myDisplayDevice = NULL;
--#ifdef HAVE_LIBASOUND
-+#ifdef HAVE_LIBRTMIDI
- static MidiReceiver* myMidiReceiver = NULL;
- #endif
-
-@@ -223,7 +223,7 @@ static Uint32 SDLCALL timerCallback(Uint32 interval, void* param)
- return interval;
- }
-
--#ifdef HAVE_LIBASOUND
-+#ifdef HAVE_LIBRTMIDI
- class MidiEventHandler : public MidiReceiver::MidiEventHandler
- {
- public:
-@@ -829,7 +829,7 @@ myDisplayDevice = new PPDisplayDeviceFB(windowSize.width, windowSize.height, sca
- // Startup procedure
- myTracker->startUp(noSplash);
-
--#ifdef HAVE_LIBASOUND
-+#ifdef HAVE_LIBRTMIDI
- InitMidi();
- #endif
-
-@@ -962,7 +962,7 @@ int main(int argc, char *argv[])
- initTracker(defaultBPP, orientation, swapRedBlue, noSplash);
- globalMutex->unlock();
-
--#ifdef HAVE_LIBASOUND
-+#ifdef HAVE_LIBRTMIDI
- if (myMidiReceiver && recVelocity)
- {
- myMidiReceiver->setRecordVelocity(true);
-@@ -1036,7 +1036,7 @@ int main(int argc, char *argv[])
- SDL_RemoveTimer(timer);
-
- globalMutex->lock();
--#ifdef HAVE_LIBASOUND
-+#ifdef HAVE_LIBRTMIDI
- delete myMidiReceiver;
- #endif
- delete myTracker;
diff --git a/media-sound/milkytracker/milkytracker-1.02.00-r1.ebuild b/media-sound/milkytracker/milkytracker-1.02.00-r1.ebuild
deleted file mode 100644
index ca410696e6b8..000000000000
--- a/media-sound/milkytracker/milkytracker-1.02.00-r1.ebuild
+++ /dev/null
@@ -1,59 +0,0 @@
-# Copyright 1999-2020 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-inherit cmake desktop xdg
-
-# This commit is needed so the milkytrace binary is linked properly, bug 711564
-# It is also ~40kb so it is better to fetch it rather than ship it in-tree
-COMMIT="2b145b074581ddf3b4ad78a402cdf5fab500b125"
-
-DESCRIPTION="FastTracker 2 inspired music tracker"
-HOMEPAGE="https://milkytracker.titandemo.org/"
-SRC_URI="https://github.com/milkytracker/MilkyTracker/archive/v${PV}.tar.gz -> ${P}.tar.gz
- https://github.com/milkytracker/MilkyTracker/commit/${COMMIT}.patch -> ${P}-cmake.patch"
-
-LICENSE="|| ( GPL-3 MPL-1.1 ) AIFFWriter.m BSD GPL-3 GPL-3+ LGPL-2.1+ MIT"
-SLOT="0"
-KEYWORDS="amd64 x86"
-IUSE="alsa jack"
-
-RDEPEND="
- dev-libs/zziplib
- media-libs/libsdl2[X]
- sys-libs/zlib
- alsa? ( media-libs/alsa-lib )
- jack? ( virtual/jack )"
-DEPEND="${RDEPEND}"
-
-PATCHES=(
- "${DISTDIR}/${P}-cmake.patch"
- "${FILESDIR}/${P}-CVE-2019-14464.patch"
- "${FILESDIR}/${P}-CVE-2019-1449x.patch"
- "${FILESDIR}/${P}-CVE-2020-15569.patch"
- "${FILESDIR}/${P}-fix-hard-dependency-on-rtmidi.patch"
- "${FILESDIR}/${P}-clang.patch"
-)
-
-S="${WORKDIR}/MilkyTracker-${PV}"
-
-src_prepare() {
- cmake_src_prepare
-}
-
-src_configure() {
- local mycmakeargs=(
- $(cmake_use_find_package alsa ALSA)
- $(cmake_use_find_package jack JACK)
- )
- cmake_src_configure
-}
-
-src_install() {
- cmake_src_install
-
- newicon resources/pictures/carton.png ${PN}.png
- make_desktop_entry ${PN} MilkyTracker ${PN} \
- "AudioVideo;Audio;Sequencer"
-}