diff --git a/groups.d/251.native_packages_lib.d/flac.package b/groups.d/251.native_packages_lib.d/flac.package new file mode 100644 index 0000000..aa34fa5 --- /dev/null +++ b/groups.d/251.native_packages_lib.d/flac.package @@ -0,0 +1,9 @@ +: ${PKG_FLAC_DEPENDS:="libogg libiconv"}; +: ${PKG_FLAC_SHA256SUM:=f2c1c76592a82ffff8413ba3c4a1299b6c7ab06c734dee03fd88630485c2b920}; +: ${PKG_FLAC_VERSION:=1.5.0}; +: ${PKG_FLAC_URL:=https://ftp.osuosl.org/pub/xiph/releases/flac/flac-${PKG_FLAC_VERSION}.tar.xz}; +: ${PKG_FLAC_CONFIGURE_ARGS_EXTRA:="--with-ogg=yes --disable-stack-smash-protection"}; + +ex_pkg_register "flac" "${RTL_FILEOP_SOURCE_FNAME}" "native_packages"; + +# vim:filetype=sh textwidth=0 diff --git a/groups.d/251.native_packages_lib.d/libflac.package b/groups.d/251.native_packages_lib.d/libflac.package deleted file mode 100644 index f41cae3..0000000 --- a/groups.d/251.native_packages_lib.d/libflac.package +++ /dev/null @@ -1,9 +0,0 @@ -: ${PKG_LIBFLAC_DEPENDS:="libogg libiconv"}; -: ${PKG_LIBFLAC_SHA256SUM:=6c58e69cd22348f441b861092b825e591d0b822e106de6eb0ee4d05d27205b70}; -: ${PKG_LIBFLAC_VERSION:=1.4.3}; -: ${PKG_LIBFLAC_URL:=https://ftp.osuosl.org/pub/xiph/releases/flac/flac-${PKG_LIBFLAC_VERSION}.tar.xz}; -: ${PKG_LIBFLAC_CONFIGURE_ARGS_EXTRA:="--with-ogg=yes --disable-stack-smash-protection"}; - -ex_pkg_register "libflac" "${RTL_FILEOP_SOURCE_FNAME}" "native_packages"; - -# vim:filetype=sh textwidth=0 diff --git a/patches/flac-1.5.0_pre.local.patch b/patches/flac-1.5.0_pre.local.patch new file mode 100644 index 0000000..b0aee98 --- /dev/null +++ b/patches/flac-1.5.0_pre.local.patch @@ -0,0 +1,17 @@ +diff -ru flac-1.4.3.orig/configure flac-1.4.3/configure +--- flac-1.4.3.orig/configure 2023-06-22 10:50:43.581743622 +0200 ++++ flac-1.4.3/configure 2023-06-26 21:27:46.664311640 +0200 +@@ -21401,13 +21401,6 @@ + + + if test x$ac_cv_c_compiler_gnu = xyes -o x$xiph_cv_c_compiler_clang = xyes ; then +- if test "x${ax_enable_debug}" = "xno" +-then : +- +- CFLAGS="-O3 -funroll-loops $CFLAGS" +- CXXFLAGS="-O3 $CXXFLAGS" +- +-fi + + CFLAGS="$CFLAGS -Wall -Wextra -Wstrict-prototypes -Wmissing-prototypes -Waggregate-return -Wcast-align -Wnested-externs -Wshadow -Wundef -Wmissing-declarations -Winline " # -Wcast-qual -Wbad-function-cast -Wwrite-strings -Wconversion + CXXFLAGS="$CXXFLAGS -Wall -Wextra -Wcast-align -Wshadow -Wwrite-strings -Wctor-dtor-privacy -Wnon-virtual-dtor -Wreorder -Wsign-promo -Wundef " # -Wcast-qual -Wbad-function-cast -Wwrite-strings -Woverloaded-virtual -Wmissing-declarations diff --git a/patches/libflac-1.4.3_pre.local.patch b/patches/libflac-1.4.3_pre.local.patch deleted file mode 100644 index b0aee98..0000000 --- a/patches/libflac-1.4.3_pre.local.patch +++ /dev/null @@ -1,17 +0,0 @@ -diff -ru flac-1.4.3.orig/configure flac-1.4.3/configure ---- flac-1.4.3.orig/configure 2023-06-22 10:50:43.581743622 +0200 -+++ flac-1.4.3/configure 2023-06-26 21:27:46.664311640 +0200 -@@ -21401,13 +21401,6 @@ - - - if test x$ac_cv_c_compiler_gnu = xyes -o x$xiph_cv_c_compiler_clang = xyes ; then -- if test "x${ax_enable_debug}" = "xno" --then : -- -- CFLAGS="-O3 -funroll-loops $CFLAGS" -- CXXFLAGS="-O3 $CXXFLAGS" -- --fi - - CFLAGS="$CFLAGS -Wall -Wextra -Wstrict-prototypes -Wmissing-prototypes -Waggregate-return -Wcast-align -Wnested-externs -Wshadow -Wundef -Wmissing-declarations -Winline " # -Wcast-qual -Wbad-function-cast -Wwrite-strings -Wconversion - CXXFLAGS="$CXXFLAGS -Wall -Wextra -Wcast-align -Wshadow -Wwrite-strings -Wctor-dtor-privacy -Wnon-virtual-dtor -Wreorder -Wsign-promo -Wundef " # -Wcast-qual -Wbad-function-cast -Wwrite-strings -Woverloaded-virtual -Wmissing-declarations