diff --git a/pkgs/flatpak/com.github.rafostar.Clapper-nightly.json b/pkgs/flatpak/com.github.rafostar.Clapper-nightly.json index 336f84d3..6d2de5b2 100644 --- a/pkgs/flatpak/com.github.rafostar.Clapper-nightly.json +++ b/pkgs/flatpak/com.github.rafostar.Clapper-nightly.json @@ -39,7 +39,7 @@ }, "modules": [ "flathub/shared-modules/gudev/gudev.json", - "flathub/lib/liba52.json", + "testing/liba52.json", "flathub/lib/libmpeg2.json", "flathub/lib/libdv.json", "flathub/lib/libdvdcss.json", diff --git a/pkgs/flatpak/com.github.rafostar.Clapper.json b/pkgs/flatpak/com.github.rafostar.Clapper.json index dbb1b04c..2531ffac 100644 --- a/pkgs/flatpak/com.github.rafostar.Clapper.json +++ b/pkgs/flatpak/com.github.rafostar.Clapper.json @@ -31,7 +31,7 @@ ], "modules": [ "flathub/shared-modules/gudev/gudev.json", - "flathub/lib/liba52.json", + "testing/liba52.json", "flathub/lib/libmpeg2.json", "flathub/lib/libdv.json", "flathub/lib/libdvdcss.json", diff --git a/pkgs/flatpak/testing/a52dec-configure-optflags.patch b/pkgs/flatpak/testing/a52dec-configure-optflags.patch new file mode 100644 index 00000000..8752a62e --- /dev/null +++ b/pkgs/flatpak/testing/a52dec-configure-optflags.patch @@ -0,0 +1,23 @@ +--- ./configure~ 2002-07-28 06:50:42.000000000 +0300 ++++ ./configure 2003-04-13 17:20:53.000000000 +0300 +@@ -5366,13 +5366,13 @@ + + case "$host" in + i?86-* | k?-*) +- case "$host" in +- i386-*) TRY_CFLAGS="$OPT_CFLAGS -mcpu=i386";; +- i486-*) TRY_CFLAGS="$OPT_CFLAGS -mcpu=i486";; +- i586-*) TRY_CFLAGS="$OPT_CFLAGS -mcpu=pentium";; +- i686-*) TRY_CFLAGS="$OPT_CFLAGS -mcpu=pentiumpro";; +- k6-*) TRY_CFLAGS="$OPT_CFLAGS -mcpu=k6";; +- esac ++# case "$host" in ++# i386-*) TRY_CFLAGS="$OPT_CFLAGS -mcpu=i386";; ++# i486-*) TRY_CFLAGS="$OPT_CFLAGS -mcpu=i486";; ++# i586-*) TRY_CFLAGS="$OPT_CFLAGS -mcpu=pentium";; ++# i686-*) TRY_CFLAGS="$OPT_CFLAGS -mcpu=pentiumpro";; ++# k6-*) TRY_CFLAGS="$OPT_CFLAGS -mcpu=k6";; ++# esac + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports $TRY_CFLAGS $CFLAGS flags" >&5 + printf %s "checking if $CC supports $TRY_CFLAGS $CFLAGS flags... " >&6; } + SAVE_CFLAGS="$CFLAGS" diff --git a/pkgs/flatpak/testing/liba52.json b/pkgs/flatpak/testing/liba52.json new file mode 100644 index 00000000..cfae355d --- /dev/null +++ b/pkgs/flatpak/testing/liba52.json @@ -0,0 +1,24 @@ +{ + "name": "liba52", + "config-opts": [ "--enable-shared", "--disable-static" ], + "rm-configure": true, + "cleanup": [ "/bin/*a52*" ], + "sources": [ + { + "type": "archive", + "url": "https://distfiles.adelielinux.org/source/a52dec/a52dec-0.8.0.tar.gz", + "sha256": "03c181ce9c3fe0d2f5130de18dab9bd8bc63c354071515aa56983c74a9cffcc9" + }, + { + "type": "patch", + "path": "a52dec-configure-optflags.patch" + }, + { + "type": "script", + "commands": [ + "autoreconf -fiv" + ], + "dest-filename": "autogen.sh" + } + ] +}