mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 23:50:19 +00:00
Ports: Add libmodplug
This commit is contained in:
parent
e900f94a03
commit
f573b7b47a
Notes:
sideshowbarker
2024-07-18 02:50:00 +09:00
Author: https://github.com/xslendix Commit: https://github.com/SerenityOS/serenity/commit/f573b7b47a7 Pull-request: https://github.com/SerenityOS/serenity/pull/10115 Reviewed-by: https://github.com/ADKaster
4 changed files with 39 additions and 0 deletions
|
@ -73,6 +73,7 @@ Please make sure to keep this list up to date when adding and updating ports. :^
|
|||
| [`libicu`](libicu/) | ICU | 69.1 | http://site.icu-project.org/ |
|
||||
| [`libksba`](libksba/) | libksba | 1.5.1 | https://gnupg.org/software/libksba/index.html |
|
||||
| [`libjpeg`](libjpeg/) | libjpeg | 9d | https://ijg.org/ |
|
||||
| [`libmodplug`](libmodplug/) | libmodplug | 0.8.8.5 | http://modplug-xmms.sourceforge.net/ |
|
||||
| [`libogg`](libogg/) | libogg | 1.3.4 | https://github.com/xiph/ogg |
|
||||
| [`libopenal`](libopenal/) | OpenAL soft | 1.21.1 | https://openal-soft.org/ |
|
||||
| [`libphysfs`](libphysfs/) | PhysicsFS | 3.0.2 | https://icculus.org/physfs/ |
|
||||
|
|
14
Ports/libmodplug/package.sh
Executable file
14
Ports/libmodplug/package.sh
Executable file
|
@ -0,0 +1,14 @@
|
|||
#!/usr/bin/env -S bash ../.port_include.sh
|
||||
port=libmodplug
|
||||
version=0.8.8.5
|
||||
useconfigure=true
|
||||
configopts="ac_cv_c_bigendian=no"
|
||||
files="https://download.sourceforge.net/modplug-xmms/libmodplug-${version}.tar.gz libmodplug-${version}.tar.gz 77462d12ee99476c8645cb5511363e3906b88b33a6b54362b4dbc0f39aa2daad"
|
||||
auth_type=sha256
|
||||
workdir="libmodplug-$version"
|
||||
|
||||
install() {
|
||||
run make DESTDIR=${SERENITY_INSTALL_ROOT} $installopts install
|
||||
${CC} -shared -o ${SERENITY_INSTALL_ROOT}/usr/local/lib/libmodplug.so -Wl,-soname,libmodplug.so -Wl,--whole-archive ${SERENITY_INSTALL_ROOT}/usr/local/lib/libmodplug.a -Wl,--no-whole-archive
|
||||
rm -f ${SERENITY_INSTALL_ROOT}/usr/local/lib/libmodplug.la
|
||||
}
|
12
Ports/libmodplug/patches/build-fixes.patch
Normal file
12
Ports/libmodplug/patches/build-fixes.patch
Normal file
|
@ -0,0 +1,12 @@
|
|||
diff -Naur libmodplug-0.8.8.5/src/libmodplug/stdafx.h libmodplug-0.8.8.5.serenity/src/libmodplug/stdafx.h
|
||||
index 3eacf1da6..871fb6d82 100644
|
||||
--- libmodplug-0.8.8.5/src/libmodplug/stdafx.h
|
||||
+++ libmodplug-0.8.8.5.serenity/src/libmodplug/stdafx.h
|
||||
@@ -57,6 +57,7 @@ inline void ProcessPlugins(int n) {}
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
+#include <strings.h>
|
||||
#ifdef HAVE_MALLOC_H
|
||||
#include <malloc.h>
|
||||
#endif
|
12
Ports/libmodplug/patches/config.sub.patch
Normal file
12
Ports/libmodplug/patches/config.sub.patch
Normal file
|
@ -0,0 +1,12 @@
|
|||
diff -Naur libmodplug-0.8.8.5/config.sub libmodplug-0.8.8.5.serenity/config.sub
|
||||
--- libmodplug-0.8.8.5/config.sub 2017-03-17 09:34:37.000000000 +0100
|
||||
+++ libmodplug-0.8.8.5.serenity/config.sub 2021-04-14 01:12:00.264606451 +0200
|
||||
@@ -1381,7 +1381,7 @@
|
||||
# The portable systems comes first.
|
||||
# Each alternative MUST END IN A *, to match a version number.
|
||||
# -sysv* is not here because it comes later, after sysvr4.
|
||||
- -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
|
||||
+ -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* | -serenity* \
|
||||
| -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\
|
||||
| -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \
|
||||
| -sym* | -kopensolaris* | -plan9* \
|
Loading…
Reference in a new issue