MonkeysAudio: remove package

- distfiles for 5.28 has been gone from upstream
- its only dependent: asunder only optionally depends on it
- license is non-free and restricted from at least 2008 [debian]
- current license is obviously non-free and restricted:

  > The redistribution of Monkey's Audio is only allowed in cases where
  the original installer and components therein have not been modified.

[debian]: https://lists.debian.org/debian-legal/2008/03/msg00070.html
This commit is contained in:
Đoàn Trần Công Danh 2022-10-23 18:11:19 +07:00 committed by Đoàn Trần Công Danh
parent b390c772b9
commit f428d1a3ca
6 changed files with 1 additions and 209 deletions

View file

@ -1,17 +0,0 @@
V=%VER%
R=%REL%
prefix=/usr
INSTALL_BIN=${prefix}/bin
INSTALL_INC=${prefix}/include
INSTALL_LIB=${prefix}/lib
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include/MAC
Name: MonkeysAudio library
Description: A fast and powerful lossless audio compressor and decompressor
Version: ${R}
Requires:
Libs: -L${libdir} -llibMAC
Cflags: -I${includedir}

View file

@ -1,30 +0,0 @@
From cbace147456d6ccc1921f62582a791b340b8a88d Mon Sep 17 00:00:00 2001
From: q66 <daniel@octaforge.org>
Date: Fri, 10 Apr 2020 20:31:00 +0200
Subject: [PATCH] fix build on big endian
---
Source/MACLib/MD5.cpp | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git Source/MACLib/MD5.cpp Source/MACLib/MD5.cpp
index c122fb5..89079b2 100644
--- a/Source/MACLib/MD5.cpp
+++ b/Source/MACLib/MD5.cpp
@@ -35,11 +35,11 @@ CopyToLittleEndian ( uint32_t* dst,
const uint8_t* src,
size_t length )
{
- for ( ; length--; src += 4; dst++ ) {
- *dst = (( (uint32_t) src [3] ) << 24) |
- (( (uint32_t) src [2] ) << 16) |
- (( (uint32_t) src [1] ) << 8) |
- (( (uint32_t) src [0] ) << 0);
+ for ( ; length--; src += 4 ) {
+ *dst++ = (( (uint32_t) src [3] ) << 24) |
+ (( (uint32_t) src [2] ) << 16) |
+ (( (uint32_t) src [1] ) << 8) |
+ (( (uint32_t) src [0] ) << 0);
}

View file

@ -1,66 +0,0 @@
From ba9bb2bccdf67a8a202c578fcf09a3aa6dda4c63 Mon Sep 17 00:00:00 2001
From: q66 <daniel@octaforge.org>
Date: Fri, 10 Apr 2020 20:22:17 +0200
Subject: [PATCH] MonkeysAudio: patch out bad endian definitions breaking
builds
---
Shared/All.h | 8 +-------
Source/Shared/All.h | 8 +-------
2 files changed, 2 insertions(+), 14 deletions(-)
diff --git Shared/All.h Shared/All.h
index 6dfb669..cc9a988 100644
--- a/Shared/All.h
+++ b/Shared/All.h
@@ -45,6 +45,7 @@ Global includes
#include <sys/types.h>
#include <sys/stat.h>
#include <wchar.h>
+ #include <endian.h>
#include "NoWindows.h"
#endif
#define ape_max(a,b) (((a) > (b)) ? (a) : (b))
@@ -246,13 +247,6 @@ Global defines
#define APE_FILENAME_SLASH '/'
#endif
-/*****************************************************************************************
-Byte order
-*****************************************************************************************/
-#define __LITTLE_ENDIAN 1234
-#define __BIG_ENDIAN 4321
-#define __BYTE_ORDER __LITTLE_ENDIAN
-
/*****************************************************************************************
Macros
*****************************************************************************************/
diff --git Source/Shared/All.h Source/Shared/All.h
index 6dfb669..cc9a988 100644
--- a/Source/Shared/All.h
+++ b/Source/Shared/All.h
@@ -45,6 +45,7 @@ Global includes
#include <sys/types.h>
#include <sys/stat.h>
#include <wchar.h>
+ #include <endian.h>
#include "NoWindows.h"
#endif
#define ape_max(a,b) (((a) > (b)) ? (a) : (b))
@@ -246,13 +247,6 @@ Global defines
#define APE_FILENAME_SLASH '/'
#endif
-/*****************************************************************************************
-Byte order
-*****************************************************************************************/
-#define __LITTLE_ENDIAN 1234
-#define __BIG_ENDIAN 4321
-#define __BYTE_ORDER __LITTLE_ENDIAN
-
/*****************************************************************************************
Macros
*****************************************************************************************/
--
2.25.1

View file

@ -1,39 +0,0 @@
From 9b8a97da0946d01f60798a5636062141a61a92ac Mon Sep 17 00:00:00 2001
From: q66 <daniel@octaforge.org>
Date: Fri, 10 Apr 2020 20:26:23 +0200
Subject: [PATCH] add powerpc64 in 64-bit platforms to unbreak build
---
Shared/All.h | 2 +-
Source/Shared/All.h | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git Shared/All.h Shared/All.h
index cc9a988..615e3d1 100644
--- a/Shared/All.h
+++ b/Shared/All.h
@@ -123,7 +123,7 @@ Global compiler settings (useful for porting)
#endif
#endif
-#if __x86_64__ || __aarch64__
+#if __x86_64__ || __aarch64__ || __powerpc64__
#ifndef PLATFORM_x64
#define PLATFORM_x64
#endif
diff --git Source/Shared/All.h Source/Shared/All.h
index cc9a988..615e3d1 100644
--- a/Source/Shared/All.h
+++ b/Source/Shared/All.h
@@ -123,7 +123,7 @@ Global compiler settings (useful for porting)
#endif
#endif
-#if __x86_64__ || __aarch64__
+#if __x86_64__ || __aarch64__ || __powerpc64__
#ifndef PLATFORM_x64
#define PLATFORM_x64
#endif
--
2.25.1

View file

@ -1,57 +0,0 @@
# Template file for 'MonkeysAudio'
pkgname=MonkeysAudio
version=5.28
revision=3
create_wrksrc=yes
build_style="gnu-makefile"
depends="libMAC>=${version}_${revision}"
short_desc="Fast and powerful lossless audio (de)compressor"
maintainer="Orphaned <orphan@voidlinux.org>"
license="custom:MIT-like"
homepage="https://monkeysaudio.com/"
distfiles="https://monkeysaudio.com/files/MAC_SDK_${version//./}.zip
https://monkeysaudio.com/license.html"
checksum="0000cbfad5f008014bf3d963b72039c518a1e93ded55b23da715d912c830623e
7d60dabaf760f32180e272b5955d5f1a2febcf9930eff13e49a1934a286a5819"
skip_extraction="license.html"
do_build() {
cp -p ${XBPS_SRCDISTDIR}/${pkgname}-${version}/license.html ${wrksrc}
ln Source/Projects/NonWindows/Makefile .
vsed -i Makefile \
-e "s;^VERSION.*;VERSION = 6.0.0;" \
-e "s;^DLLLDOPTS.*;DLLLDOPTS = -shared -Wl,-soname,libMAC.so.6;"
make ${makejobs}
}
do_install() {
make prefix="${DESTDIR}"/usr install
ln -s libMAC.so.6.0.0 "${DESTDIR}"/usr/lib/libMAC.so.6.0
ln -s libMAC.so.6.0.0 "${DESTDIR}"/usr/lib/libMAC.so.6
vmkdir usr/lib/pkgconfig
sed ${FILESDIR}/MAC.pc \
-e "s;%VER%;${version};" \
-e "s;%REL%;${revision};" \
> ${DESTDIR}/usr/lib/pkgconfig/MAC.pc
vlicense license.html
vdoc Readme.txt
}
libMAC-devel_package() {
short_desc+=" - development files"
depends="libMAC>=${version}_${revision}"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove usr/lib/libMAC.so
}
}
libMAC_package() {
short_desc+=" - library"
pkg_install() {
vmove "usr/lib/libMAC.so.*"
}
}

View file

@ -13,6 +13,7 @@ replaces="
ImageMagick6<=6.9.12.12_2
Lidarr<=0.5.0.583_1
MoinMoin<=1.9.11_1
MonkeysAudio<=5.28_3
MultiMC<=0.6.13_1
Platinum9-theme<=0.0.0.20170720_3
Pyrex<=0.9.9_5