From fb2ee9abc0bde51505ea62fd44a489e33b011831 Mon Sep 17 00:00:00 2001 From: Matheus Date: Sat, 30 May 2026 12:46:58 -0300 Subject: [PATCH] ports: flac, libid3tag, libmad, libogg, libsndfile, libvorbis, mocp, opus --- patches/flac/jinx-working-patch.patch | 35 +++++++++++ patches/libmad/jinx-working-patch.patch | 77 +++++++++++++++++++++++++ recipes/flac | 18 ++++++ recipes/libid3tag | 18 ++++++ recipes/libmad | 18 ++++++ recipes/libogg | 18 ++++++ recipes/libsndfile | 18 ++++++ recipes/libvorbis | 18 ++++++ recipes/mocp | 18 ++++++ recipes/opus | 18 ++++++ source-recipes/flac | 10 ++++ source-recipes/libid3tag | 11 ++++ source-recipes/libmad | 11 ++++ source-recipes/libogg | 10 ++++ source-recipes/libsndfile | 10 ++++ source-recipes/libvorbis | 10 ++++ source-recipes/mocp | 11 ++++ source-recipes/opus | 5 ++ 18 files changed, 334 insertions(+) create mode 100644 patches/flac/jinx-working-patch.patch create mode 100644 patches/libmad/jinx-working-patch.patch create mode 100644 recipes/flac create mode 100644 recipes/libid3tag create mode 100644 recipes/libmad create mode 100644 recipes/libogg create mode 100644 recipes/libsndfile create mode 100644 recipes/libvorbis create mode 100644 recipes/mocp create mode 100644 recipes/opus create mode 100644 source-recipes/flac create mode 100644 source-recipes/libid3tag create mode 100644 source-recipes/libmad create mode 100644 source-recipes/libogg create mode 100644 source-recipes/libsndfile create mode 100644 source-recipes/libvorbis create mode 100644 source-recipes/mocp create mode 100644 source-recipes/opus diff --git a/patches/flac/jinx-working-patch.patch b/patches/flac/jinx-working-patch.patch new file mode 100644 index 00000000..12ed21c4 --- /dev/null +++ b/patches/flac/jinx-working-patch.patch @@ -0,0 +1,35 @@ +diff --git flac-clean/m4/ogg.m4 flac-workdir/m4/ogg.m4 +index 3b1a28a..43aa848 100644 +--- flac-clean/m4/ogg.m4 ++++ flac-workdir/m4/ogg.m4 +@@ -14,30 +14,10 @@ AC_ARG_WITH(ogg-libraries,AS_HELP_STRING([--with-ogg-libraries=DIR],[Directory w + AC_ARG_WITH(ogg-includes,AS_HELP_STRING([--with-ogg-includes=DIR],[Directory where libogg header files are installed (optional)]), ogg_includes="$withval", ogg_includes="") + AC_ARG_ENABLE(oggtest,AS_HELP_STRING([--disable-oggtest],[Do not try to compile and run a test Ogg program]),, enable_oggtest=yes) + +- if test "x$ogg_libraries" != "x" ; then +- OGG_LIBS="-L$ogg_libraries" +- elif test "x$ogg_prefix" = "xno" || test "x$ogg_prefix" = "xyes" ; then +- OGG_LIBS="" +- elif test "x$ogg_prefix" != "x" ; then +- OGG_LIBS="-L$ogg_prefix/lib" +- elif test "x$prefix" != "xNONE" ; then +- OGG_LIBS="-L$prefix/lib" +- fi +- + if test "x$ogg_prefix" != "xno" ; then + OGG_LIBS="$OGG_LIBS -logg" + fi + +- if test "x$ogg_includes" != "x" ; then +- OGG_CFLAGS="-I$ogg_includes" +- elif test "x$ogg_prefix" = "xno" || test "x$ogg_prefix" = "xyes" ; then +- OGG_CFLAGS="" +- elif test "x$ogg_prefix" != "x" ; then +- OGG_CFLAGS="-I$ogg_prefix/include" +- elif test "x$prefix" != "xNONE"; then +- OGG_CFLAGS="-I$prefix/include" +- fi +- + AC_MSG_CHECKING(for Ogg) + if test "x$ogg_prefix" = "xno" ; then + no_ogg="disabled" diff --git a/patches/libmad/jinx-working-patch.patch b/patches/libmad/jinx-working-patch.patch new file mode 100644 index 00000000..bd907375 --- /dev/null +++ b/patches/libmad/jinx-working-patch.patch @@ -0,0 +1,77 @@ +diff --git libmad-clean/configure.ac libmad-workdir/configure.ac +index 9b79399..0ad4c83 100644 +--- libmad-clean/configure.ac ++++ libmad-workdir/configure.ac +@@ -124,71 +124,7 @@ done + + if test "$GCC" = yes + then +- if test -z "$arch" +- then +- case "$host" in +- i386-*) ;; +- i?86-*) arch="-march=i486" ;; +- arm*-empeg-*) arch="-march=armv4 -mtune=strongarm1100" ;; +- armv4*-*) arch="-march=armv4 -mtune=strongarm" ;; +- powerpc-*) ;; +- mips*-agenda-*) arch="-mcpu=vr4100" ;; +- mips*-luxsonor-*) arch="-mips1 -mcpu=r3000 -Wa,-m4010" ;; +- esac +- fi +- +- case "$optimize" in +- -O|"-O "*) +- optimize="-O" +- optimize="$optimize -fforce-mem" +- optimize="$optimize -fforce-addr" +- : #x optimize="$optimize -finline-functions" +- : #- optimize="$optimize -fstrength-reduce" +- optimize="$optimize -fthread-jumps" +- optimize="$optimize -fcse-follow-jumps" +- optimize="$optimize -fcse-skip-blocks" +- : #x optimize="$optimize -frerun-cse-after-loop" +- : #x optimize="$optimize -frerun-loop-opt" +- : #x optimize="$optimize -fgcse" +- optimize="$optimize -fexpensive-optimizations" +- optimize="$optimize -fregmove" +- : #* optimize="$optimize -fdelayed-branch" +- : #x optimize="$optimize -fschedule-insns" +- optimize="$optimize -fschedule-insns2" +- : #? optimize="$optimize -ffunction-sections" +- : #? optimize="$optimize -fcaller-saves" +- : #> optimize="$optimize -funroll-loops" +- : #> optimize="$optimize -funroll-all-loops" +- : #x optimize="$optimize -fmove-all-movables" +- : #x optimize="$optimize -freduce-all-givs" +- : #? optimize="$optimize -fstrict-aliasing" +- : #* optimize="$optimize -fstructure-noalias" +- +- case "$host" in +- arm*-*) +- optimize="$optimize -fstrength-reduce" +- ;; +- mips*-*) +- optimize="$optimize -fstrength-reduce" +- optimize="$optimize -finline-functions" +- ;; +- i?86-*) +- optimize="$optimize -fstrength-reduce" +- ;; +- powerpc-apple-*) +- # this triggers an internal compiler error with gcc2 +- : #optimize="$optimize -fstrength-reduce" +- +- # this is really only beneficial with gcc3 +- : #optimize="$optimize -finline-functions" +- ;; +- *) +- # this sometimes provokes bugs in gcc 2.95.2 +- : #optimize="$optimize -fstrength-reduce" +- ;; +- esac +- ;; +- esac ++ optimize="-O2" + fi + + case "$host" in diff --git a/recipes/flac b/recipes/flac new file mode 100644 index 00000000..e7727de6 --- /dev/null +++ b/recipes/flac @@ -0,0 +1,18 @@ +name=flac +revision=1 +from_source=flac +imagedeps="build-essential" +hostdeps="xgcc xbinutils pkgconfig libtool libstdc++-v3" +deps="base libogg" + +configure() { + ${source_dir}/configure --host=x86_64-astral --prefix=${prefix} --disable-static +} + +build() { + make -j ${parallelism} --trace +} + +package() { + make install DESTDIR=${dest_dir} +} diff --git a/recipes/libid3tag b/recipes/libid3tag new file mode 100644 index 00000000..318d7fc7 --- /dev/null +++ b/recipes/libid3tag @@ -0,0 +1,18 @@ +name=libid3tag +revision=1 +from_source=libid3tag +imagedeps="build-essential" +hostdeps="xgcc xbinutils pkgconfig libtool" +deps="base zlib" + +configure() { + ${source_dir}/configure --host=x86_64-astral --prefix=${prefix} --disable-static +} + +build() { + make -j ${parallelism} +} + +package() { + make install DESTDIR=${dest_dir} +} diff --git a/recipes/libmad b/recipes/libmad new file mode 100644 index 00000000..7e37d86a --- /dev/null +++ b/recipes/libmad @@ -0,0 +1,18 @@ +name=libmad +revision=1 +from_source=libmad +imagedeps="build-essential" +hostdeps="xgcc xbinutils pkgconfig libtool" +deps="base" + +configure() { + ${source_dir}/configure --host=x86_64-astral --prefix=${prefix} --disable-static +} + +build() { + make -j ${parallelism} +} + +package() { + make install DESTDIR=${dest_dir} +} diff --git a/recipes/libogg b/recipes/libogg new file mode 100644 index 00000000..c66180d3 --- /dev/null +++ b/recipes/libogg @@ -0,0 +1,18 @@ +name=libogg +revision=1 +from_source=libogg +imagedeps="build-essential" +hostdeps="xgcc xbinutils pkgconfig libtool" +deps="base" + +configure() { + ${source_dir}/configure --host=x86_64-astral --prefix=${prefix} --disable-static +} + +build() { + make -j ${parallelism} +} + +package() { + make install DESTDIR=${dest_dir} +} diff --git a/recipes/libsndfile b/recipes/libsndfile new file mode 100644 index 00000000..04a896d8 --- /dev/null +++ b/recipes/libsndfile @@ -0,0 +1,18 @@ +name=libsndfile +revision=1 +from_source=libsndfile +imagedeps="build-essential" +hostdeps="xgcc xbinutils pkgconfig libtool" +deps="base flac opus libvorbis" + +configure() { + ${source_dir}/configure --host=x86_64-astral --prefix=${prefix} --disable-static +} + +build() { + make -j ${parallelism} +} + +package() { + make install DESTDIR=${dest_dir} +} diff --git a/recipes/libvorbis b/recipes/libvorbis new file mode 100644 index 00000000..ad791922 --- /dev/null +++ b/recipes/libvorbis @@ -0,0 +1,18 @@ +name=libvorbis +revision=1 +from_source=libvorbis +imagedeps="build-essential" +hostdeps="xgcc xbinutils pkgconfig libtool" +deps="base libogg" + +configure() { + ${source_dir}/configure --host=x86_64-astral --prefix=${prefix} --disable-static +} + +build() { + make -j ${parallelism} +} + +package() { + make install DESTDIR=${dest_dir} +} diff --git a/recipes/mocp b/recipes/mocp new file mode 100644 index 00000000..a47960e5 --- /dev/null +++ b/recipes/mocp @@ -0,0 +1,18 @@ +name=mocp +revision=1 +from_source=mocp +imagedeps="build-essential" +hostdeps="xgcc xbinutils pkgconfig libtool" +deps="base sndio libmad libvorbis libogg libsndfile curl ncurses libtool libid3tag" + +configure() { + ${source_dir}/configure --host=x86_64-astral --prefix=${prefix} --with-mp3 --disable-cache --enable-shared --disable-static +} + +build() { + make -j ${parallelism} +} + +package() { + make install DESTDIR=${dest_dir} +} diff --git a/recipes/opus b/recipes/opus new file mode 100644 index 00000000..98ea0411 --- /dev/null +++ b/recipes/opus @@ -0,0 +1,18 @@ +name=opus +revision=1 +from_source=opus +imagedeps="gcc meson ninja-build" +hostdeps="xgcc xbinutils pkgconfig" +deps="base" + +configure() { + meson --cross-file ${base_dir}/util/crossfile --prefix=${prefix} --buildtype=release ${source_dir} +} + +build() { + ninja -j${parallelism} +} + +package() { + DESTDIR=${dest_dir} ninja install +} diff --git a/source-recipes/flac b/source-recipes/flac new file mode 100644 index 00000000..5c2bd102 --- /dev/null +++ b/source-recipes/flac @@ -0,0 +1,10 @@ +name=flac +version=1.5.0 +source_method=tarball +tarball_url="https://github.com/xiph/flac/releases/download/1.5.0/flac-1.5.0.tar.xz" +tarball_sha512=34c9193b804e990b0828a5759e4d7ef1d1859174262d3b305d03e65285edb35c7f429e8071d9dd2c6da0c16e842b40b439bf215704636ae15dd5886151f0d17a +hostdeps="autoconf automake libtool pkgconfig libtool" + +prepare() { + autoreconf -fvi +} diff --git a/source-recipes/libid3tag b/source-recipes/libid3tag new file mode 100644 index 00000000..84626d42 --- /dev/null +++ b/source-recipes/libid3tag @@ -0,0 +1,11 @@ +name=libid3tag +version=0.15.1b +source_method=tarball +tarball_url="https://downloads.sourceforge.net/mad/libid3tag-0.15.1b.tar.gz" +tarball_sha512=ade7ce2a43c3646b4c9fdc642095174b9d4938b078b205cd40906d525acd17e87ad76064054a961f391edcba6495441450af2f68be69f116549ca666b069e6d3 +hostdeps="autoconf automake libtool pkgconfig libtool" + +prepare() { + touch NEWS AUTHORS ChangeLog + autoreconf -fvi +} diff --git a/source-recipes/libmad b/source-recipes/libmad new file mode 100644 index 00000000..7247f073 --- /dev/null +++ b/source-recipes/libmad @@ -0,0 +1,11 @@ +name=libmad +version=0.15.1b +source_method=tarball +tarball_url="https://downloads.sourceforge.net/mad/libmad-0.15.1b.tar.gz" +tarball_sha512=2cad30347fb310dc605c46bacd9da117f447a5cabedd8fefdb24ab5de641429e5ec5ce8af7aefa6a75a3f545d3adfa255e3fa0a2d50971f76bc0c4fc0400cc45 +hostdeps="autoconf automake libtool pkgconfig libtool" + +prepare() { + touch NEWS AUTHORS ChangeLog + autoreconf -fvi +} diff --git a/source-recipes/libogg b/source-recipes/libogg new file mode 100644 index 00000000..849ef424 --- /dev/null +++ b/source-recipes/libogg @@ -0,0 +1,10 @@ +name=libogg +version=1.3.6 +source_method=tarball +tarball_url="https://downloads.xiph.org/releases/ogg/libogg-${version}.tar.xz" +tarball_sha512=2168548e57e23fadca4aa66351214b23d699bc3aa47f5d065f8b583a3fe85c99333014a6aa38e4021b0e3750115b88258a6c00cac1e1496cdee5f12cdc633814 +hostdeps="autoconf automake libtool pkgconfig libtool" + +prepare() { + autoreconf -fvi +} diff --git a/source-recipes/libsndfile b/source-recipes/libsndfile new file mode 100644 index 00000000..6517e6f7 --- /dev/null +++ b/source-recipes/libsndfile @@ -0,0 +1,10 @@ +name=libsndfile +version=1.2.2 +source_method=tarball +tarball_url="https://github.com/libsndfile/libsndfile/releases/download/${version}/libsndfile-${version}.tar.xz" +tarball_sha512=a6e3ea3ac5d91befaa99f6a31a3fac44e7b7c11f1de4698167317a461d5a19a2651d47486a920b34400f18367b4f6173bf0c1c9ba80eb682cece1b5beee352a0 +hostdeps="autoconf automake libtool pkgconfig libtool" + +prepare() { + autoreconf -fvi +} diff --git a/source-recipes/libvorbis b/source-recipes/libvorbis new file mode 100644 index 00000000..d57dbeed --- /dev/null +++ b/source-recipes/libvorbis @@ -0,0 +1,10 @@ +name=libvorbis +version=1.3.7 +source_method=tarball +tarball_url="https://downloads.xiph.org/releases/vorbis/libvorbis-${version}.tar.xz" +tarball_sha512=bbf5f11f623d959b3ba98d6b52806521b0b918b59b867f0658c153ea1013293364eead4987e9e71f8798021379310860a2e548fcf89d10caf23d45e41aba45cd +hostdeps="autoconf automake libtool pkgconfig libtool" + +prepare() { + autoreconf -fvi +} diff --git a/source-recipes/mocp b/source-recipes/mocp new file mode 100644 index 00000000..1acb6854 --- /dev/null +++ b/source-recipes/mocp @@ -0,0 +1,11 @@ +name=mocp +version=2.5.2 +source_method=tarball +tarball_url="http://ftp.daper.net/pub/soft/moc/stable/moc-${version}.tar.bz2" +tarball_sha512=992d06809fb52e58dcee63704bde05795b99edbac46edd8381f314c564490013b18e1853926f419c2c3c7f1bb68ff35e97048de03ace3232b800cf4b3b7dbe0f +imagedeps="gettext" +hostdeps="autoconf automake libtool pkgconfig" + +prepare() { + ACLOCAL_PATH=/usr/share/aclocal autoreconf -fvi +} diff --git a/source-recipes/opus b/source-recipes/opus new file mode 100644 index 00000000..02012e1d --- /dev/null +++ b/source-recipes/opus @@ -0,0 +1,5 @@ +name=opus +version=1.6.1 +source_method=tarball +tarball_url=""https://downloads.xiph.org/releases/opus/opus-${version}.tar.gz +tarball_sha512="93742e86b2eb222808a5055e62627d142e6e7347b3d5aebb4d39b45df78ed7d437746c51eb24d724a7c865d064e9d16f4541a4ce6a82fcf7dcc23427d2252e16"