diff --git a/pkg.info b/info.yml similarity index 91% rename from pkg.info rename to info.yml index 27c056d..a4f3cde 100644 --- a/pkg.info +++ b/info.yml @@ -1,9 +1,11 @@ name: cava description: Cross-platform Audio Visualizer version: 0.10.7 -revision: 2 +revision: 3 url: https://github.com/karlstav/cava license: MIT +maintainers: + - enumdev@enumerated.dev architecture: any type: source depends: diff --git a/source.sh b/recipe.sh similarity index 88% rename from source.sh rename to recipe.sh index a1c6fe8..4d24ae8 100644 --- a/source.sh +++ b/recipe.sh @@ -1,4 +1,4 @@ -# This is the source.sh script. It is executed by BPM in a temporary directory when compiling a source package +# This is the recipe.sh script. It is executed by BPM in a temporary directory when compiling a source package # BPM Expects the source code to be extracted into the automatically created 'source' directory which can be accessed using $BPM_SOURCE # BPM Expects the output files to be present in the automatically created 'output' directory which can be accessed using $BPM_OUTPUT @@ -6,7 +6,9 @@ # This function is used for putting downloaded files to the correct location or applying patches prepare() { cd "$BPM_SOURCE" + patch -Np1 -i "$BPM_WORKDIR"/0001-replace-broken-AX_CHECK_GL-with-manual-check.patch echo "$BPM_PKG_VERSION" > version + autoreconf -fi } diff --git a/source-files/0001-replace-broken-AX_CHECK_GL-with-manual-check.patch b/source-files/0001-replace-broken-AX_CHECK_GL-with-manual-check.patch new file mode 100644 index 0000000..6ce997b --- /dev/null +++ b/source-files/0001-replace-broken-AX_CHECK_GL-with-manual-check.patch @@ -0,0 +1,65 @@ +From 10cbd3bb81979275b05af905f8c6fe8ff0e0ff02 Mon Sep 17 00:00:00 2001 +From: Yurakaii +Date: Sat, 28 Feb 2026 14:22:07 -0500 +Subject: [PATCH] Replace broken AX_CHECK_GL with manual check + +--- + configure.ac | 45 +++++++++++++++++++++++++++++++-------------- + 1 file changed, 31 insertions(+), 14 deletions(-) + +diff --git a/configure.ac b/configure.ac +index dfef96fd..a7ed53e0 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -317,20 +317,37 @@ AC_CHECK_LIB(SDL2,SDL_Init, have_sdl=yes, have_sdl=no) + [do not include support for output with sdl_glsl]) + ) + AS_IF([test "x$enable_output_sdl_glsl" != "xno"], [ +- m4_ifdef([AX_CHECK_GL], [ +- AX_CHECK_GL(have_opengl=yes, have_opengl=no) +- ], [ +- AC_MSG_NOTICE([You need to install the autoconf archives to check for opengl. Remember to re-run autogen.sh.]) +- have_opengl=no +- ]) +- if [[ $have_opengl = "yes" ]] ; then +- LIBS="$LIBS $GL_LIBS" +- CPPFLAGS="$CPPFLAGS -DSDL_GLSL $GL_CFLAGS" +- fi +- +- if [[ $have_opengl = "no" ]] ; then +- AC_MSG_NOTICE([INFO: building without sdl_glsl (opengl) support]) +- fi ++ have_opengl=no ++ GL_LIBS="" ++ GL_CFLAGS="" ++ AC_MSG_CHECKING([for OpenGL]) ++ ++ case $host_os in ++ darwin*) ++ AC_CHECK_HEADER([OpenGL/gl.h], ++ [GL_LIBS="-framework OpenGL" ++ have_opengl=yes], ++ [have_opengl=no]) ++ ;; ++ *) ++ AC_CHECK_HEADER([GL/gl.h], ++ [AC_SEARCH_LIBS([glBegin], [GL], ++ [have_opengl=yes ++ AS_IF([test "x$ac_cv_search_glBegin" != "xnone required"], ++ [GL_LIBS="$ac_cv_search_glBegin"])], ++ [have_opengl=no])], ++ [have_opengl=no]) ++ ;; ++ esac ++ ++ if test "x$have_opengl" = "xyes"; then ++ AC_MSG_RESULT([yes]) ++ LIBS="$LIBS $GL_LIBS" ++ CPPFLAGS="$CPPFLAGS -DSDL_GLSL $GL_CFLAGS" ++ else ++ AC_MSG_RESULT([no]) ++ AC_MSG_NOTICE([INFO: building without sdl_glsl (opengl) support]) ++ fi + ], + [have_opengl=no] + )