diff options
author | Daniel Engberg <diizzy@FreeBSD.org> | 2024-09-28 21:27:25 +0200 |
---|---|---|
committer | Daniel Engberg <diizzy@FreeBSD.org> | 2024-09-28 21:29:15 +0200 |
commit | 645d57fe5e853ff988996bfd50ecced9dc4be316 (patch) | |
tree | 950e74449db24bc3bffea379da6775e07b0bc743 /audio/ncmpcpp/files/patch-configure.ac | |
parent | audio/picard: Update MASTER_SITES (diff) |
audio/ncmpcpp: Update to 0.10
* Backport upstream commit 72d990fe250da1e583677474b3462b9e9894130b
* Change WWW to GitHub location
* Remove glib(20) dependency
* Remove GNU_CONFIGURE_MANPREFIX
* Add LTO OPTIMIZED_CFLAGS options to confirm with packaging standards
https://docs.freebsd.org/en/books/porters-handbook/book/#dads-cflags
* Some minor rearragements with port Makefile
References:
https://github.com/ncmpcpp/ncmpcpp/commit/72d990fe250da1e583677474b3462b9e9894130b
PR: 281505
Approved by: portmgr (maintainer timeout, 2+ weeks)
Diffstat (limited to 'audio/ncmpcpp/files/patch-configure.ac')
-rw-r--r-- | audio/ncmpcpp/files/patch-configure.ac | 73 |
1 files changed, 73 insertions, 0 deletions
diff --git a/audio/ncmpcpp/files/patch-configure.ac b/audio/ncmpcpp/files/patch-configure.ac new file mode 100644 index 000000000000..40c8b37fcdf2 --- /dev/null +++ b/audio/ncmpcpp/files/patch-configure.ac @@ -0,0 +1,73 @@ +--- configure.ac.orig 2024-09-14 20:01:39 UTC ++++ configure.ac +@@ -47,40 +47,40 @@ fi + fi + + # -ftree-vectorize +-AC_MSG_CHECKING([whether compiler supports -ftree-vectorize]) +-old_CXXFLAGS="$CXXFLAGS" +-CXXFLAGS="-ftree-vectorize" +-AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ ]])], +- AC_MSG_RESULT([yes]) +- tree_vectorize="-ftree-vectorize", +- AC_MSG_RESULT([no]) +- tree_vectorize="" +-) +-CXXFLAGS="$old_CXXFLAGS $tree_vectorize" ++#AC_MSG_CHECKING([whether compiler supports -ftree-vectorize]) ++#old_CXXFLAGS="$CXXFLAGS" ++#CXXFLAGS="-ftree-vectorize" ++#AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ ]])], ++# AC_MSG_RESULT([yes]) ++# tree_vectorize="-ftree-vectorize", ++# AC_MSG_RESULT([no]) ++# tree_vectorize="" ++#) ++#CXXFLAGS="$old_CXXFLAGS $tree_vectorize" + + # -ffast-math +-AC_MSG_CHECKING([whether compiler supports -ffast-math]) +-old_CXXFLAGS="$CXXFLAGS" +-CXXFLAGS="-ffast-math" +-AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ ]])], +- AC_MSG_RESULT([yes]) +- fast_math="-ffast-math", +- AC_MSG_RESULT([no]) +- fast_math="" +-) +-CXXFLAGS="$old_CXXFLAGS $fast_math" ++#AC_MSG_CHECKING([whether compiler supports -ffast-math]) ++#old_CXXFLAGS="$CXXFLAGS" ++#CXXFLAGS="-ffast-math" ++#AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ ]])], ++# AC_MSG_RESULT([yes]) ++# fast_math="-ffast-math", ++# AC_MSG_RESULT([no]) ++# fast_math="" ++#) ++#CXXFLAGS="$old_CXXFLAGS $fast_math" + + # -std=c++20 +-AC_MSG_CHECKING([whether compiler supports -std=c++20]) +-old_CXXFLAGS="$CXXFLAGS" +-CXXFLAGS="-std=c++20" +-AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ ]])], +- AC_MSG_RESULT([yes]) +- std_cpp14="-std=c++20", +- AC_MSG_RESULT([no]) +- AC_MSG_ERROR([[Your compiler doesn't seem to support C++20, please upgrade]]) +-) +-CXXFLAGS="$old_CXXFLAGS $std_cpp14" ++#AC_MSG_CHECKING([whether compiler supports -std=c++20]) ++#old_CXXFLAGS="$CXXFLAGS" ++#CXXFLAGS="-std=c++20" ++#AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ ]])], ++# AC_MSG_RESULT([yes]) ++# std_cpp14="-std=c++20", ++# AC_MSG_RESULT([no]) ++# AC_MSG_ERROR([[Your compiler doesn't seem to support C++20, please upgrade]]) ++#) ++CXXFLAGS="$old_CXXFLAGS -std=c++14" + + # generic lambda expressions support + AC_MSG_CHECKING([whether compiler supports generic lambda expressions]) |