Page MenuHomeFreeBSD

D45141.id138306.diff
No OneTemporary

D45141.id138306.diff

diff --git a/Mk/bsd.port.mk b/Mk/bsd.port.mk
--- a/Mk/bsd.port.mk
+++ b/Mk/bsd.port.mk
@@ -42,7 +42,7 @@
# OSREL - The release version of the operating system as a text
# string (e.g., "12.4").
# OSVERSION - The operating system version as a comparable integer;
-# the value of __FreeBSD_version (e.g., 1302000).
+# the value of __FreeBSD_version (e.g., 1303000).
#
# This is the beginning of the list of all variables that need to be
# defined in a port, listed in order that they should be included
@@ -1179,7 +1179,7 @@
. endif
_EXPORTED_VARS+= OSVERSION
-. if ${OPSYS} == FreeBSD && (${OSVERSION} < 1302000 )
+. if ${OPSYS} == FreeBSD && (${OSVERSION} < 1303000 )
_UNSUPPORTED_SYSTEM_MESSAGE= Ports Collection support for your ${OPSYS} version has ended, and no ports\
are guaranteed to build on this system. Please upgrade to a supported release.
. if defined(ALLOW_UNSUPPORTED_SYSTEM)
diff --git a/audio/audacity/Makefile b/audio/audacity/Makefile
--- a/audio/audacity/Makefile
+++ b/audio/audacity/Makefile
@@ -143,13 +143,6 @@
-DHAVE_SSE2:BOOL=OFF
.endif
-.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1302508
-# Workarounds for buggy libc++ std::conjunction
-EXTRA_PATCHES= ${PATCHDIR}/extra-libraries_lib-utility_TypeList.cpp \
- ${PATCHDIR}/extra-libraries_lib-utility_TypeList.h \
- ${PATCHDIR}/extra-libraries_lib-utility_TypeSwitch.h
-.endif
-
post-install:
@${RM} ${STAGEDIR}${DOCSDIR}/LICENSE.txt
#delete empty directories: https://github.com/audacity/audacity/issues/808
diff --git a/audio/audacity/files/extra-libraries_lib-utility_TypeList.h b/audio/audacity/files/extra-libraries_lib-utility_TypeList.h
deleted file mode 100644
--- a/audio/audacity/files/extra-libraries_lib-utility_TypeList.h
+++ /dev/null
@@ -1,39 +0,0 @@
---- libraries/lib-utility/TypeList.h.orig 2023-11-16 11:58:21 UTC
-+++ libraries/lib-utility/TypeList.h
-@@ -54,6 +54,18 @@ namespace TypeList {
- can make compound predicates out of simpler ones.
- */
-
-+template <class...>
-+struct conjunction : std::true_type {};
-+
-+template <class _Arg>
-+struct conjunction<_Arg> : _Arg {};
-+
-+template <class _Arg, class... _Args>
-+struct conjunction<_Arg, _Args...> : std::conditional_t<!bool(_Arg::value), _Arg, conjunction<_Args...>> {};
-+
-+template <class _Bp, class _Dp>
-+inline constexpr bool is_base_of_v = __is_base_of(_Bp, _Dp);
-+
- //! standard in C++20; add a level of indirection to a type
- template<typename T> struct type_identity { using type = T; };
-
-@@ -429,7 +441,7 @@ struct And<Predicate, Predicates...> { (private)
- static constexpr bool value = Is_v<And<Predicates...>, T>;
- };
- public:
-- template<typename T> using typemap = typename std::conjunction<
-+ template<typename T> using typemap = typename TypeList::conjunction<
- typename Predicate::template typemap<T>, Rest<T>
- >;
- };
-@@ -437,7 +449,7 @@ struct And<Predicate, Predicates...> { (private)
- //! Derived from the Predicate, applied to the first of the types (often boolean
- //! constant types), for which the value is false; or std::true_type
- template<typename Predicate, typename TypeList> struct Every
-- : Apply_t<std::conjunction, Map_t<Predicate, TypeList>> {};
-+ : Apply_t<conjunction, Map_t<Predicate, TypeList>> {};
- //! The constant value in the corresponding type
- template<typename Predicate, typename TypeList> constexpr auto Every_v =
- Every<Predicate, TypeList>::value;
diff --git a/audio/audacity/files/extra-libraries_lib-utility_TypeList.cpp b/audio/audacity/files/extra-libraries_lib-utility_TypeList.cpp
deleted file mode 100644
--- a/audio/audacity/files/extra-libraries_lib-utility_TypeList.cpp
+++ /dev/null
@@ -1,23 +0,0 @@
---- libraries/lib-utility/TypeList.cpp.orig 2023-11-16 11:58:21 UTC
-+++ libraries/lib-utility/TypeList.cpp
-@@ -118,16 +118,16 @@ static_assert(Is_v<NullOrStartsWithInt, Nil>);
- static_assert(Is_v<NullOrStartsWithInt, Example>);
-
- static_assert(Every_v<Fn<is_arithmetic>, Example>);
--static_assert(is_base_of_v<true_type, Every<Fn<is_arithmetic>, Example>>);
-+static_assert(TypeList::is_base_of_v<true_type, Every<Fn<is_arithmetic>, Example>>);
- static_assert(!Every_v<Fn<is_integral>, Example>);
--static_assert(is_base_of_v<is_integral<double>,
-+static_assert(TypeList::is_base_of_v<is_integral<double>,
- Every<Fn<is_integral>, Example>>);
-
- static_assert(Some_v<Fn<is_integral>, Example>);
--static_assert(is_base_of_v<is_integral<int>,
-+static_assert(TypeList::is_base_of_v<is_integral<int>,
- Some<Fn<is_integral>, Example>>);
- static_assert(!Some_v<Fn<is_void>, Example>);
--static_assert(is_base_of_v<false_type, Some<Fn<is_void>, Example>>);
-+static_assert(TypeList::is_base_of_v<false_type, Some<Fn<is_void>, Example>>);
-
- static_assert(NotEvery_v<Fn<is_floating_point>, Example>);
- static_assert(NotAny_v<Fn<is_void>, Example>);
diff --git a/audio/audacity/files/extra-libraries_lib-utility_TypeSwitch.h b/audio/audacity/files/extra-libraries_lib-utility_TypeSwitch.h
deleted file mode 100644
--- a/audio/audacity/files/extra-libraries_lib-utility_TypeSwitch.h
+++ /dev/null
@@ -1,20 +0,0 @@
---- libraries/lib-utility/TypeSwitch.h.orig 2023-11-16 11:58:21 UTC
-+++ libraries/lib-utility/TypeSwitch.h
-@@ -127,7 +127,7 @@ struct Executor {
- // Case 1: Compatible, and invocable on the next function, giving
- // another function, that accepts BaseClass:
- struct Case1_;
-- using Case1 = std::conjunction<Compatible, curried, Case1_>;
-+ using Case1 = TypeList::conjunction<Compatible, curried, Case1_>;
- struct Case1_ {
- static constexpr bool value = std::is_invocable_v<
- std::invoke_result_t<F, Dummy &&>, BaseClass&, Args&&...>;
-@@ -135,7 +135,7 @@ struct Executor {
- };
-
- // Case 2: Invocable directly on the object
-- struct Case2 : std::conjunction<
-+ struct Case2 : TypeList::conjunction<
- Compatible, std::negation<curried>,
- std::is_invocable<F, BaseClass&, Args&&...>
- > {
diff --git a/audio/denemo/Makefile b/audio/denemo/Makefile
--- a/audio/denemo/Makefile
+++ b/audio/denemo/Makefile
@@ -68,7 +68,7 @@
.include <bsd.port.pre.mk>
-.if ${COMPILER_TYPE} == clang && ${COMPILER_VERSION} >= 160
+.if ${COMPILER_TYPE} == clang
CFLAGS+= -Wno-error=incompatible-function-pointer-types
.endif
diff --git a/audio/ncmpc/Makefile b/audio/ncmpc/Makefile
--- a/audio/ncmpc/Makefile
+++ b/audio/ncmpc/Makefile
@@ -49,7 +49,7 @@
.include <bsd.port.pre.mk>
-.if ${COMPILER_TYPE} == clang && ${COMPILER_VERSION} >= 160
+.if ${COMPILER_TYPE} == clang
CPPFLAGS+= -Wno-error=enum-constexpr-conversion
.endif
diff --git a/audio/ocp/Makefile b/audio/ocp/Makefile
--- a/audio/ocp/Makefile
+++ b/audio/ocp/Makefile
@@ -95,7 +95,7 @@
.include <bsd.port.pre.mk>
-.if ${COMPILER_TYPE} == clang && ${COMPILER_VERSION} >= 160
+.if ${COMPILER_TYPE} == clang
CFLAGS+= -Wno-error=incompatible-function-pointer-types
.endif
diff --git a/audio/openal-soft/Makefile b/audio/openal-soft/Makefile
--- a/audio/openal-soft/Makefile
+++ b/audio/openal-soft/Makefile
@@ -63,7 +63,7 @@
# The following is actually meant for lld 15.0 and later, but the ports
# framework does not support LINKER_TYPE and LINKER_VERSION yet.
-.if ${COMPILER_TYPE} == "clang" && ${COMPILER_VERSION} >= 150
+.if ${COMPILER_TYPE} == "clang"
# Turn off checking of dynamic relocations, to avoid lld diagnostics about
# possibly incorrect addend values.
LDFLAGS_i386+= -Wl,--no-check-dynamic-relocations
diff --git a/biology/py-macs3/Makefile b/biology/py-macs3/Makefile
--- a/biology/py-macs3/Makefile
+++ b/biology/py-macs3/Makefile
@@ -34,12 +34,6 @@
GH_PROJECT= MACS
SHEBANG_FILES= test/cmdlinetest* test/prockreport test/*.py test/pyprofile*
-.include <bsd.port.options.mk>
-
-.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1302509
-IGNORE= does not run properly on FreeBSD 13.2 and earlier due to use of dynamically loaded libc by py-threadpoolctl. Please upgrade to a newer FreeBSD or use py-macs2 instead. See PR 276231
-.endif
-
post-stage:
${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/MACS3/*/*.so
diff --git a/chinese/libime/Makefile b/chinese/libime/Makefile
--- a/chinese/libime/Makefile
+++ b/chinese/libime/Makefile
@@ -38,7 +38,7 @@
.include <bsd.port.pre.mk>
post-patch:
-.if ${COMPILER_TYPE} == clang && ${COMPILER_VERSION} >= 160
+.if ${COMPILER_TYPE} == clang
@${REINPLACE_CMD} -e 's|std::binary_function|std::__binary_function|' \
${WRKSRC}/src/libime/core/kenlm/lm/trie_sort.hh \
${WRKSRC}/src/libime/core/kenlm/util/joint_sort.hh \
diff --git a/databases/arrow/Makefile b/databases/arrow/Makefile
--- a/databases/arrow/Makefile
+++ b/databases/arrow/Makefile
@@ -182,9 +182,6 @@
# workaround for https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=277953
OPSYS!= uname -s # HACK: OPSYS is defined in bsd.port.options.mk which has to be later
OSVERSION!= awk '/^\#define[[:blank:]]__FreeBSD_version/ {print $$3}' < ${CROSS_SYSROOT}/usr/include/sys/param.h # HACK: same as above
-.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1303000
-TESTING_BROKEN= configure fails because GTest built with C++ level <17 isn't compatible with C++17 used in arrow
-.endif
# form OPTIONS_DEFAULT
.for opt in ${OPTIONS_GROUP_COMPONENTS}
diff --git a/databases/xtrabackup80/Makefile b/databases/xtrabackup80/Makefile
--- a/databases/xtrabackup80/Makefile
+++ b/databases/xtrabackup80/Makefile
@@ -68,7 +68,7 @@
.for d in storage/innobase/xtrabackup/src sql/protobuf
${REINPLACE_CMD} 's,%%PREFIX%%,${PREFIX},' ${WRKSRC}/${d}/CMakeLists.txt
.endfor
-.if ${COMPILER_TYPE} == clang && ${COMPILER_VERSION} >= 160
+.if ${COMPILER_TYPE} == clang
@${REINPLACE_CMD} -e 's|std::unary_function|std::__unary_function|' \
${WRKSRC}/../boost_${BOOST_VERSION_UNDER}/boost/container_hash/hash.hpp
.endif
diff --git a/databases/xtrabackup81/Makefile b/databases/xtrabackup81/Makefile
--- a/databases/xtrabackup81/Makefile
+++ b/databases/xtrabackup81/Makefile
@@ -68,7 +68,7 @@
.for d in storage/innobase/xtrabackup/src sql/protobuf
${REINPLACE_CMD} 's,%%PREFIX%%,${PREFIX},' ${WRKSRC}/${d}/CMakeLists.txt
.endfor
-.if ${COMPILER_TYPE} == clang && ${COMPILER_VERSION} >= 160
+.if ${COMPILER_TYPE} == clang
@${REINPLACE_CMD} -e 's|std::unary_function|std::__unary_function|' \
${WRKSRC}/../boost_${BOOST_VERSION_UNDER}/boost/container_hash/hash.hpp
.endif
diff --git a/deskutils/kdepim-runtime/Makefile b/deskutils/kdepim-runtime/Makefile
--- a/deskutils/kdepim-runtime/Makefile
+++ b/deskutils/kdepim-runtime/Makefile
@@ -44,7 +44,7 @@
.include <bsd.port.pre.mk>
-.if ${CHOSEN_COMPILER_TYPE} == clang && ${COMPILER_VERSION} >= 160
+.if ${CHOSEN_COMPILER_TYPE} == clang
CXXFLAGS+= -Wno-error=enum-constexpr-conversion
.endif
diff --git a/devel/cjose/Makefile b/devel/cjose/Makefile
--- a/devel/cjose/Makefile
+++ b/devel/cjose/Makefile
@@ -24,7 +24,7 @@
.include <bsd.port.pre.mk>
-.if ${COMPILER_TYPE} == clang && ${COMPILER_VERSION} >= 160
+.if ${COMPILER_TYPE} == clang
CFLAGS+= -Wno-error=strict-prototypes
.endif
diff --git a/devel/corrade/Makefile b/devel/corrade/Makefile
--- a/devel/corrade/Makefile
+++ b/devel/corrade/Makefile
@@ -27,7 +27,7 @@
.include <bsd.port.pre.mk>
post-patch:
-.if ${COMPILER_TYPE} == clang && ${COMPILER_VERSION} >= 160
+.if ${COMPILER_TYPE} == clang
@${REINPLACE_CMD} -e 's|#include <__tuple>|#include <tuple>|g' \
${WRKSRC}/src/Corrade/Utility/StlForwardArray.h \
${WRKSRC}/src/Corrade/Utility/StlForwardTuple.h
diff --git a/devel/electron25/Makefile b/devel/electron25/Makefile
--- a/devel/electron25/Makefile
+++ b/devel/electron25/Makefile
@@ -236,19 +236,8 @@
IGNORE= you have selected HEIMDAL_BASE but do not have Heimdal installed in base
.endif
-.if ${COMPILER_VERSION} < 150
-LLVM_DEFAULT= 15
-BUILD_DEPENDS+= clang${LLVM_DEFAULT}:devel/llvm${LLVM_DEFAULT}
-BINARY_ALIAS+= cpp=${LOCALBASE}/bin/clang-cpp${LLVM_DEFAULT} \
- cc=${LOCALBASE}/bin/clang${LLVM_DEFAULT} \
- c++=${LOCALBASE}/bin/clang++${LLVM_DEFAULT} \
- ar=${LOCALBASE}/bin/llvm-ar${LLVM_DEFAULT} \
- nm=${LOCALBASE}/bin/llvm-nm${LLVM_DEFAULT} \
- ld=${LOCALBASE}/bin/ld.lld${LLVM_DEFAULT}
-.else
BINARY_ALIAS+= ar=/usr/bin/llvm-ar \
nm=/usr/bin/llvm-nm
-.endif
.if ${ARCH} == "aarch64"
PLIST_SUB+= AARCH64="" \
diff --git a/devel/electron27/Makefile b/devel/electron27/Makefile
--- a/devel/electron27/Makefile
+++ b/devel/electron27/Makefile
@@ -246,19 +246,8 @@
IGNORE= you have selected HEIMDAL_BASE but do not have Heimdal installed in base
.endif
-.if ${COMPILER_VERSION} < 160
-LLVM_DEFAULT= 16
-BUILD_DEPENDS+= clang${LLVM_DEFAULT}:devel/llvm${LLVM_DEFAULT}
-BINARY_ALIAS+= cpp=${LOCALBASE}/bin/clang-cpp${LLVM_DEFAULT} \
- cc=${LOCALBASE}/bin/clang${LLVM_DEFAULT} \
- c++=${LOCALBASE}/bin/clang++${LLVM_DEFAULT} \
- ar=${LOCALBASE}/bin/llvm-ar${LLVM_DEFAULT} \
- nm=${LOCALBASE}/bin/llvm-nm${LLVM_DEFAULT} \
- ld=${LOCALBASE}/bin/ld.lld${LLVM_DEFAULT}
-.else
BINARY_ALIAS+= ar=/usr/bin/llvm-ar \
nm=/usr/bin/llvm-nm
-.endif
CFLAGS+= -Wno-error=implicit-function-declaration
.if ${ARCH} == "aarch64"
diff --git a/devel/electron28/Makefile b/devel/electron28/Makefile
--- a/devel/electron28/Makefile
+++ b/devel/electron28/Makefile
@@ -239,30 +239,12 @@
.include "Makefile.version"
.include <bsd.port.pre.mk>
-# libc++ < 16 needs these extra patches
-.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1302507
-EXTRA_PATCHES= ${PATCHDIR}/extra-patch-electron_shell_browser_electron__browser__context.h \
- ${PATCHDIR}/extra-patch-electron_shell_browser_ui_gtk_menu__gtk.h \
- ${PATCHDIR}/extra-patch-electron_shell_browser_ui_status__icon__gtk.h
-.endif
-
.if ${PORT_OPTIONS:MHEIMDAL_BASE} && !exists(/usr/lib/libkrb5.so)
IGNORE= you have selected HEIMDAL_BASE but do not have Heimdal installed in base
.endif
-.if ${COMPILER_VERSION} < 160
-LLVM_DEFAULT= 16
-BUILD_DEPENDS+= clang${LLVM_DEFAULT}:devel/llvm${LLVM_DEFAULT}
-BINARY_ALIAS+= cpp=${LOCALBASE}/bin/clang-cpp${LLVM_DEFAULT} \
- cc=${LOCALBASE}/bin/clang${LLVM_DEFAULT} \
- c++=${LOCALBASE}/bin/clang++${LLVM_DEFAULT} \
- ar=${LOCALBASE}/bin/llvm-ar${LLVM_DEFAULT} \
- nm=${LOCALBASE}/bin/llvm-nm${LLVM_DEFAULT} \
- ld=${LOCALBASE}/bin/ld.lld${LLVM_DEFAULT}
-.else
BINARY_ALIAS+= ar=/usr/bin/llvm-ar \
nm=/usr/bin/llvm-nm
-.endif
CFLAGS+= -Wno-error=implicit-function-declaration
.if ${ARCH} == "aarch64"
diff --git a/devel/electron28/files/extra-patch-electron_shell_browser_electron__browser__context.h b/devel/electron28/files/extra-patch-electron_shell_browser_electron__browser__context.h
deleted file mode 100644
--- a/devel/electron28/files/extra-patch-electron_shell_browser_electron__browser__context.h
+++ /dev/null
@@ -1,64 +0,0 @@
---- electron/shell/browser/electron_browser_context.h.orig 2024-01-23 19:02:02 UTC
-+++ electron/shell/browser/electron_browser_context.h
-@@ -8,7 +8,6 @@
- #include <map>
- #include <memory>
- #include <string>
--#include <string_view>
- #include <variant>
- #include <vector>
- #include "base/memory/raw_ptr.h"
-@@ -79,22 +78,41 @@ class ElectronBrowserContext : public content::Browser
-
- // partition_id => browser_context
- struct PartitionKey {
-- PartitionKey(const std::string_view partition, bool in_memory)
-- : type_{Type::Partition}, location_{partition}, in_memory_{in_memory} {}
-+ enum class KeyType { Partition, FilePath };
-+ std::string location;
-+ bool in_memory;
-+ KeyType partition_type;
-
-+ PartitionKey(const std::string& partition, bool in_memory)
-+ : location(partition),
-+ in_memory(in_memory),
-+ partition_type(KeyType::Partition) {}
- explicit PartitionKey(const base::FilePath& file_path)
-- : type_{Type::Path},
-- location_{file_path.AsUTF8Unsafe()},
-- in_memory_{false} {}
-+ : location(file_path.AsUTF8Unsafe()),
-+ in_memory(false),
-+ partition_type(KeyType::FilePath) {}
-
-- friend auto operator<=>(const PartitionKey&, const PartitionKey&) = default;
-+ bool operator<(const PartitionKey& other) const {
-+ if (partition_type == KeyType::Partition) {
-+ if (location == other.location)
-+ return in_memory < other.in_memory;
-+ return location < other.location;
-+ } else {
-+ if (location == other.location)
-+ return false;
-+ return location < other.location;
-+ }
-+ }
-
-- private:
-- enum class Type { Partition, Path };
--
-- Type type_;
-- std::string location_;
-- bool in_memory_;
-+ bool operator==(const PartitionKey& other) const {
-+ if (partition_type == KeyType::Partition) {
-+ return (location == other.location) && (in_memory < other.in_memory);
-+ } else {
-+ if (location == other.location)
-+ return true;
-+ return false;
-+ }
-+ }
- };
-
- using BrowserContextMap =
diff --git a/devel/electron28/files/extra-patch-electron_shell_browser_ui_gtk_menu__gtk.h b/devel/electron28/files/extra-patch-electron_shell_browser_ui_gtk_menu__gtk.h
deleted file mode 100644
--- a/devel/electron28/files/extra-patch-electron_shell_browser_ui_gtk_menu__gtk.h
+++ /dev/null
@@ -1,11 +0,0 @@
---- electron/shell/browser/ui/gtk/menu_gtk.h.orig 2023-12-20 13:32:58 UTC
-+++ electron/shell/browser/ui/gtk/menu_gtk.h
-@@ -5,6 +5,8 @@
- #ifndef ELECTRON_SHELL_BROWSER_UI_GTK_MENU_GTK_H_
- #define ELECTRON_SHELL_BROWSER_UI_GTK_MENU_GTK_H_
-
-+#include <vector>
-+
- #include "base/functional/callback.h"
- #include "base/memory/raw_ptr.h"
- #include "ui/base/glib/scoped_gobject.h"
diff --git a/devel/electron28/files/extra-patch-electron_shell_browser_ui_status__icon__gtk.h b/devel/electron28/files/extra-patch-electron_shell_browser_ui_status__icon__gtk.h
deleted file mode 100644
--- a/devel/electron28/files/extra-patch-electron_shell_browser_ui_status__icon__gtk.h
+++ /dev/null
@@ -1,10 +0,0 @@
---- electron/shell/browser/ui/status_icon_gtk.h.orig 2023-12-20 13:31:04 UTC
-+++ electron/shell/browser/ui/status_icon_gtk.h
-@@ -6,6 +6,7 @@
- #define ELECTRON_SHELL_BROWSER_UI_STATUS_ICON_GTK_H_
-
- #include <memory>
-+#include <vector>
-
- #include "ui/base/glib/glib_integers.h"
- #include "ui/base/glib/scoped_gobject.h"
diff --git a/devel/electron29/Makefile b/devel/electron29/Makefile
--- a/devel/electron29/Makefile
+++ b/devel/electron29/Makefile
@@ -243,13 +243,6 @@
.include "Makefile.version"
.include <bsd.port.pre.mk>
-# libc++ < 16 needs these extra patches
-.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1302507
-EXTRA_PATCHES= ${PATCHDIR}/extra-patch-electron_shell_browser_electron__browser__context.h \
- ${PATCHDIR}/extra-patch-electron_shell_browser_ui_gtk_menu__gtk.h \
- ${PATCHDIR}/extra-patch-electron_shell_browser_ui_status__icon__gtk.h
-.endif
-
.if ${PORT_OPTIONS:MHEIMDAL_BASE} && !exists(/usr/lib/libkrb5.so)
IGNORE= you have selected HEIMDAL_BASE but do not have Heimdal installed in base
.endif
diff --git a/devel/electron29/files/extra-patch-electron_shell_browser_electron__browser__context.h b/devel/electron29/files/extra-patch-electron_shell_browser_electron__browser__context.h
deleted file mode 100644
--- a/devel/electron29/files/extra-patch-electron_shell_browser_electron__browser__context.h
+++ /dev/null
@@ -1,64 +0,0 @@
---- electron/shell/browser/electron_browser_context.h.orig 2024-01-23 19:02:02 UTC
-+++ electron/shell/browser/electron_browser_context.h
-@@ -8,7 +8,6 @@
- #include <map>
- #include <memory>
- #include <string>
--#include <string_view>
- #include <variant>
- #include <vector>
- #include "base/memory/raw_ptr.h"
-@@ -79,22 +78,41 @@ class ElectronBrowserContext : public content::Browser
-
- // partition_id => browser_context
- struct PartitionKey {
-- PartitionKey(const std::string_view partition, bool in_memory)
-- : type_{Type::Partition}, location_{partition}, in_memory_{in_memory} {}
-+ enum class KeyType { Partition, FilePath };
-+ std::string location;
-+ bool in_memory;
-+ KeyType partition_type;
-
-+ PartitionKey(const std::string& partition, bool in_memory)
-+ : location(partition),
-+ in_memory(in_memory),
-+ partition_type(KeyType::Partition) {}
- explicit PartitionKey(const base::FilePath& file_path)
-- : type_{Type::Path},
-- location_{file_path.AsUTF8Unsafe()},
-- in_memory_{false} {}
-+ : location(file_path.AsUTF8Unsafe()),
-+ in_memory(false),
-+ partition_type(KeyType::FilePath) {}
-
-- friend auto operator<=>(const PartitionKey&, const PartitionKey&) = default;
-+ bool operator<(const PartitionKey& other) const {
-+ if (partition_type == KeyType::Partition) {
-+ if (location == other.location)
-+ return in_memory < other.in_memory;
-+ return location < other.location;
-+ } else {
-+ if (location == other.location)
-+ return false;
-+ return location < other.location;
-+ }
-+ }
-
-- private:
-- enum class Type { Partition, Path };
--
-- Type type_;
-- std::string location_;
-- bool in_memory_;
-+ bool operator==(const PartitionKey& other) const {
-+ if (partition_type == KeyType::Partition) {
-+ return (location == other.location) && (in_memory < other.in_memory);
-+ } else {
-+ if (location == other.location)
-+ return true;
-+ return false;
-+ }
-+ }
- };
-
- using BrowserContextMap =
diff --git a/devel/electron29/files/extra-patch-electron_shell_browser_ui_gtk_menu__gtk.h b/devel/electron29/files/extra-patch-electron_shell_browser_ui_gtk_menu__gtk.h
deleted file mode 100644
--- a/devel/electron29/files/extra-patch-electron_shell_browser_ui_gtk_menu__gtk.h
+++ /dev/null
@@ -1,11 +0,0 @@
---- electron/shell/browser/ui/gtk/menu_gtk.h.orig 2023-12-20 13:32:58 UTC
-+++ electron/shell/browser/ui/gtk/menu_gtk.h
-@@ -5,6 +5,8 @@
- #ifndef ELECTRON_SHELL_BROWSER_UI_GTK_MENU_GTK_H_
- #define ELECTRON_SHELL_BROWSER_UI_GTK_MENU_GTK_H_
-
-+#include <vector>
-+
- #include "base/functional/callback.h"
- #include "base/memory/raw_ptr.h"
- #include "ui/base/glib/scoped_gobject.h"
diff --git a/devel/electron29/files/extra-patch-electron_shell_browser_ui_status__icon__gtk.h b/devel/electron29/files/extra-patch-electron_shell_browser_ui_status__icon__gtk.h
deleted file mode 100644
--- a/devel/electron29/files/extra-patch-electron_shell_browser_ui_status__icon__gtk.h
+++ /dev/null
@@ -1,10 +0,0 @@
---- electron/shell/browser/ui/status_icon_gtk.h.orig 2023-12-20 13:31:04 UTC
-+++ electron/shell/browser/ui/status_icon_gtk.h
-@@ -6,6 +6,7 @@
- #define ELECTRON_SHELL_BROWSER_UI_STATUS_ICON_GTK_H_
-
- #include <memory>
-+#include <vector>
-
- #include "ui/base/glib/glib_integers.h"
- #include "ui/base/glib/scoped_gobject.h"
diff --git a/devel/ptlib/Makefile b/devel/ptlib/Makefile
--- a/devel/ptlib/Makefile
+++ b/devel/ptlib/Makefile
@@ -119,13 +119,13 @@
.include <bsd.port.pre.mk>
-.if ${COMPILER_TYPE} == clang && ${COMPILER_VERSION} >= 160
+.if ${COMPILER_TYPE} == clang
CPPFLAGS+= -Dregister= -Wno-error=dynamic-exception-spec
.endif
post-patch:
@${REINPLACE_CMD} -e 's/RTF_WASCLONED/0x20000/' ${WRKSRC}/src/ptlib/unix/socket.cxx
-.if ${COMPILER_TYPE} == clang && ${COMPILER_VERSION} >= 160
+.if ${COMPILER_TYPE} == clang
@${REINPLACE_CMD} -e 's|auto_ptr|unique_ptr|' \
${WRKSRC}/include/ptlib/psharedptr.h
@${REINPLACE_CMD} -e 's|public binary_function|public __binary_function|' \
diff --git a/devel/py-threadpoolctl/Makefile b/devel/py-threadpoolctl/Makefile
--- a/devel/py-threadpoolctl/Makefile
+++ b/devel/py-threadpoolctl/Makefile
@@ -18,10 +18,4 @@
NO_ARCH= yes
-.include <bsd.port.options.mk>
-
-.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1302509
-IGNORE= does not run on FreeBSD 13.2 or earlier due to handling of dynamically loaded libc
-.endif
-
.include <bsd.port.mk>
diff --git a/devel/qjson/Makefile b/devel/qjson/Makefile
--- a/devel/qjson/Makefile
+++ b/devel/qjson/Makefile
@@ -40,7 +40,7 @@
# Clang 16 defaults to building in C++17, and throws an error when the
# `register' keyword is used. Make clang just ignore the keyword instead.
-.if ${COMPILER_TYPE} == clang && ${COMPILER_VERSION} >= 160
+.if ${COMPILER_TYPE} == clang
CXXFLAGS+= -Wno-register
.endif
diff --git a/devel/spirv-llvm-translator/Makefile b/devel/spirv-llvm-translator/Makefile
--- a/devel/spirv-llvm-translator/Makefile
+++ b/devel/spirv-llvm-translator/Makefile
@@ -36,7 +36,7 @@
GH_TUPLE_llvm14=KhronosGroup:SPIRV-Headers:1.5.4.raytracing.fixed-124-g20b02de:headers/projects/SPIRV-Headers
GH_TUPLE_llvm13=KhronosGroup:SPIRV-Headers:1.5.4.raytracing.fixed-83-gddf3230:headers/projects/SPIRV-Headers
DISTINFO_FILE= ${.CURDIR}/distinfo.${FLAVOR}
-CXXFLAGS+= ${${FLAVOR:S/llvm//} < 16 && ${COMPILER_TYPE} == clang && ${COMPILER_VERSION} >= 160:?-Wno-enum-constexpr-conversion:}
+CXXFLAGS+= ${${FLAVOR:S/llvm//} < 16 && ${COMPILER_TYPE} == clang:?-Wno-enum-constexpr-conversion:}
CMAKE_ON= BUILD_SHARED_LIBS LLVM_BUILD_TOOLS LLVM_TOOL_SPIRV_HEADERS_BUILD
CMAKE_ARGS= -DLLVM_DIR:PATH="${LOCALBASE}/${FLAVOR}"
CMAKE_INSTALL_PREFIX= ${PREFIX}/${FLAVOR}
diff --git a/devel/tcl-trf/Makefile b/devel/tcl-trf/Makefile
--- a/devel/tcl-trf/Makefile
+++ b/devel/tcl-trf/Makefile
@@ -48,7 +48,7 @@
.include <bsd.port.pre.mk>
-.if ${COMPILER_TYPE} == "clang" && ${COMPILER_VERSION} >= 150
+.if ${COMPILER_TYPE} == "clang"
CFLAGS+= -Wno-deprecated-non-prototype
.endif
diff --git a/devel/tex-libtexluajit/Makefile b/devel/tex-libtexluajit/Makefile
--- a/devel/tex-libtexluajit/Makefile
+++ b/devel/tex-libtexluajit/Makefile
@@ -29,11 +29,4 @@
EXTRACT_FILES= build-aux libs/luajit
WRKSRC= ${WRKDIR}/${DISTNAME}/libs/luajit
-.include <bsd.port.pre.mk>
-
-.if ${ARCH:Mpowerpc*} && ${COMPILER_VERSION} < 140
-BUILD_DEPENDS+= as:devel/binutils
-CFLAGS+= -fno-integrated-as
-.endif
-
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/devel/ucommon/Makefile b/devel/ucommon/Makefile
--- a/devel/ucommon/Makefile
+++ b/devel/ucommon/Makefile
@@ -19,7 +19,7 @@
.include <bsd.port.pre.mk>
-.if ${COMPILER_TYPE} == clang && ${COMPILER_VERSION} >= 160
+.if ${COMPILER_TYPE} == clang
USE_CXXSTD= c++11
.endif
diff --git a/dns/getdns/Makefile b/dns/getdns/Makefile
--- a/dns/getdns/Makefile
+++ b/dns/getdns/Makefile
@@ -52,7 +52,7 @@
.include <bsd.port.pre.mk>
-.if ${COMPILER_TYPE} == clang && ${COMPILER_VERSION} >= 160
+.if ${COMPILER_TYPE} == clang
CFLAGS+= -Wno-error=incompatible-function-pointer-types
.endif
diff --git a/editors/calligra/Makefile b/editors/calligra/Makefile
--- a/editors/calligra/Makefile
+++ b/editors/calligra/Makefile
@@ -78,7 +78,7 @@
.include <bsd.port.pre.mk>
post-patch:
-.if ${COMPILER_TYPE} == clang && ${COMPILER_VERSION} >= 160
+.if ${COMPILER_TYPE} == clang
@${REINPLACE_CMD} -e 's|std::binary_function|std::__binary_function|g' \
${WRKSRC}/filters/words/msword-odf/wv2/src/word97_helper.cpp
@${REINPLACE_CMD} -e 's|std::unary_function|std::__unary_function|' \
diff --git a/editors/e93/Makefile b/editors/e93/Makefile
--- a/editors/e93/Makefile
+++ b/editors/e93/Makefile
@@ -22,7 +22,7 @@
.include <bsd.port.pre.mk>
-.if ${COMPILER_TYPE} == clang && ${COMPILER_VERSION} >= 160
+.if ${COMPILER_TYPE} == clang
CFLAGS+= -Wno-error=incompatible-function-pointer-types
.endif
diff --git a/editors/imhex-current/Makefile b/editors/imhex-current/Makefile
--- a/editors/imhex-current/Makefile
+++ b/editors/imhex-current/Makefile
@@ -100,8 +100,7 @@
.include <bsd.port.pre.mk>
# Before LLVM 17 import into the base system
-.if (${OSVERSION} < 1302510 \
- || (${OSREL:R} == 14 && ${OSVERSION} < 1400504) \
+.if ((${OSREL:R} == 14 && ${OSVERSION} < 1400504) \
|| (${OSREL:R} == 15 && ${OSVERSION} < 1500006))
IGNORE= requires libc++ of LLVM 17 on the base system
.endif
diff --git a/editors/kakoune/Makefile b/editors/kakoune/Makefile
--- a/editors/kakoune/Makefile
+++ b/editors/kakoune/Makefile
@@ -23,13 +23,9 @@
DEBUG_MAKE_ARGS= debug=yes
DEBUG_MAKE_ARGS_OFF= debug=no
-.include <bsd.port.pre.mk>
-
-.if ${OSVERSION} > 1302506
PATCHFILES= 344d31f42b8ced12626d4f87a22ffa5a671668fd.patch
PATCH_SITES= https://github.com/mawww/kakoune/commit/
PATCH_DIST_STRIP= -p1
-.endif
post-patch:
@${REINPLACE_CMD} -e '/-O3/d' \
@@ -41,4 +37,4 @@
do-test:
@cd ${WRKSRC:H}/test && ${SETENV} LC_ALL=en_US.UTF-8 ./run
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/editors/libreoffice/Makefile b/editors/libreoffice/Makefile
--- a/editors/libreoffice/Makefile
+++ b/editors/libreoffice/Makefile
@@ -374,15 +374,6 @@
CONFIGURE_ARGS+= --enable-gtk3-kde5
.endif
-.if ${PORT_OPTIONS:MLTO} && ${CHOSEN_COMPILER_TYPE} == clang && ${COMPILER_VERSION} < 130
-LLVM_DEFAULT= 13
-CPP= ${LOCALBASE}/bin/clang-cpp${LLVM_DEFAULT}
-CC= ${LOCALBASE}/bin/clang${LLVM_DEFAULT}
-CXX= ${LOCALBASE}/bin/clang++${LLVM_DEFAULT}
-BUILD_DEPENDS+= ${LOCALBASE}/bin/clang${LLVM_DEFAULT}:devel/llvm${LLVM_DEFAULT}
-LLD_UNSAFE= yes
-.endif
-
.if ${CHOSEN_COMPILER_TYPE} == clang
CXXFLAGS_WARN= -Woverloaded-virtual -Wno-c++11-narrowing \
-Wno-unused-parameter -Wno-unused-local-typedefs
diff --git a/editors/zile/Makefile b/editors/zile/Makefile
--- a/editors/zile/Makefile
+++ b/editors/zile/Makefile
@@ -35,7 +35,7 @@
.include <bsd.port.pre.mk>
-.if ${COMPILER_TYPE} == clang && ${COMPILER_VERSION} >= 160
+.if ${COMPILER_TYPE} == clang
CFLAGS+= -Wno-error=incompatible-function-pointer-types
.endif
diff --git a/emulators/citra/Makefile b/emulators/citra/Makefile
--- a/emulators/citra/Makefile
+++ b/emulators/citra/Makefile
@@ -100,7 +100,7 @@
@${REINPLACE_CMD} -e 's/@GIT_BRANCH@/master/' \
-e 's/@GIT_DESC@/${GH_TAGNAME}/' \
${WRKSRC}/src/common/scm_rev.cpp.in
-.if ${COMPILER_TYPE} == clang && ${COMPILER_VERSION} >= 160
+.if ${COMPILER_TYPE} == clang
@${REINPLACE_CMD} -e 's|std::unary_function|std::__unary_function|' \
${WRKSRC}/externals/boost/boost/container_hash/hash.hpp
.endif
diff --git a/emulators/fs-uae/Makefile b/emulators/fs-uae/Makefile
--- a/emulators/fs-uae/Makefile
+++ b/emulators/fs-uae/Makefile
@@ -39,7 +39,7 @@
# The following is actually meant for lld 15.0 and later, but the ports
# framework does not support LINKER_TYPE and LINKER_VERSION yet.
-.if ${COMPILER_TYPE} == "clang" && ${COMPILER_VERSION} >= 150
+.if ${COMPILER_TYPE} == "clang"
# Turn off checking of dynamic relocations, to avoid lld diagnostics about
# possibly incorrect addend values.
LDFLAGS_i386+= -Wl,--no-check-dynamic-relocations
diff --git a/emulators/virtualbox-ose-legacy/Makefile b/emulators/virtualbox-ose-legacy/Makefile
--- a/emulators/virtualbox-ose-legacy/Makefile
+++ b/emulators/virtualbox-ose-legacy/Makefile
@@ -196,7 +196,7 @@
.include <bsd.port.pre.mk>
.if ${CHOSEN_COMPILER_TYPE} == clang && ${OPSYS} == FreeBSD && \
- (${OSVERSION} < 1302505 || (${OSVERSION} >= 1400000 && ${OSVERSION} < 1400079) || \
+ ((${OSVERSION} >= 1400000 && ${OSVERSION} < 1400079) || \
${OSVERSION} >= 1400091)
# llvm 13, 14 and 16 included in FreeBSD fails to compile this legacy version of
# virtualbox-ose, force llvm 15 on all versions of the FreeBSD except lastest 13
diff --git a/games/alienarena/Makefile b/games/alienarena/Makefile
--- a/games/alienarena/Makefile
+++ b/games/alienarena/Makefile
@@ -57,7 +57,7 @@
.include <bsd.port.pre.mk>
-.if ${COMPILER_TYPE} == clang && ${COMPILER_VERSION} >= 160
+.if ${COMPILER_TYPE} == clang
CFLAGS+= -Wno-error=incompatible-function-pointer-types
.endif
diff --git a/games/assaultcube/Makefile b/games/assaultcube/Makefile
--- a/games/assaultcube/Makefile
+++ b/games/assaultcube/Makefile
@@ -59,7 +59,7 @@
.include <bsd.port.pre.mk>
-.if ${COMPILER_TYPE} == "clang" && ${COMPILER_VERSION} >= 150
+.if ${COMPILER_TYPE} == "clang"
LDFLAGS_i386+=--no-check-dynamic-relocations
.endif
diff --git a/games/chessx/Makefile b/games/chessx/Makefile
--- a/games/chessx/Makefile
+++ b/games/chessx/Makefile
@@ -34,7 +34,7 @@
.include <bsd.port.pre.mk>
post-patch:
-.if ${COMPILER_TYPE} == clang && ${COMPILER_VERSION} >= 160
+.if ${COMPILER_TYPE} == clang
@${REINPLACE_CMD} -e 's|std::binary_function|std::__binary_function|' \
${WRKSRC}/src/database/polyglotdatabase.cpp
.endif
diff --git a/games/flightgear/Makefile b/games/flightgear/Makefile
--- a/games/flightgear/Makefile
+++ b/games/flightgear/Makefile
@@ -59,7 +59,7 @@
.include <bsd.port.pre.mk>
-.if ${COMPILER_TYPE} == "clang" && ${COMPILER_VERSION} >= 150
+.if ${COMPILER_TYPE} == "clang"
LDFLAGS_i386+= -Wl,--no-check-dynamic-relocations
.endif
diff --git a/games/libretro-bluemsx/Makefile b/games/libretro-bluemsx/Makefile
--- a/games/libretro-bluemsx/Makefile
+++ b/games/libretro-bluemsx/Makefile
@@ -19,12 +19,10 @@
.include <bsd.port.pre.mk>
-.if ${COMPILER_TYPE} == clang && ${COMPILER_VERSION} >= 150
+.if ${COMPILER_TYPE} == clang
CFLAGS+= -Wno-error=int-conversion
-.if ${COMPILER_VERSION} >= 160
CFLAGS+= -Wno-error=incompatible-function-pointer-types
.endif
-.endif
do-install:
${MKDIR} ${STAGEDIR}/${PREFIX}/lib/libretro
diff --git a/games/libretro-pcsx_rearmed/Makefile b/games/libretro-pcsx_rearmed/Makefile
--- a/games/libretro-pcsx_rearmed/Makefile
+++ b/games/libretro-pcsx_rearmed/Makefile
@@ -26,7 +26,7 @@
.if ${ARCH:Marmv?}
MAKE_ARGS+= DYNAREC=ari64 ARCH=arm
.endif
-.if ${COMPILER_TYPE} == clang && ${COMPILER_VERSION} >= 160
+.if ${COMPILER_TYPE} == clang
CFLAGS+= -Wno-error=incompatible-function-pointer-types
.endif
diff --git a/games/megaglest/Makefile b/games/megaglest/Makefile
--- a/games/megaglest/Makefile
+++ b/games/megaglest/Makefile
@@ -53,7 +53,7 @@
# The following is actually meant for lld 15.0 and later, but the ports
# framework does not support LINKER_TYPE and LINKER_VERSION yet.
-.if ${COMPILER_TYPE} == "clang" && ${COMPILER_VERSION} >= 150
+.if ${COMPILER_TYPE} == "clang"
# Turn off checking of dynamic relocations, to avoid lld diagnostics about
# possibly incorrect addend values.
LDFLAGS_i386+= -Wl,--no-check-dynamic-relocations
diff --git a/games/openclonk/Makefile b/games/openclonk/Makefile
--- a/games/openclonk/Makefile
+++ b/games/openclonk/Makefile
@@ -38,7 +38,7 @@
.include <bsd.port.pre.mk>
-.if ${COMPILER_TYPE} == "clang" && ${COMPILER_VERSION} >= 150
+.if ${COMPILER_TYPE} == "clang"
LDFLAGS_i386+= -Wl,--no-check-dynamic-relocations
.endif
diff --git a/games/trigger-rally/Makefile b/games/trigger-rally/Makefile
--- a/games/trigger-rally/Makefile
+++ b/games/trigger-rally/Makefile
@@ -38,7 +38,7 @@
# The following is actually meant for lld 15.0 and later, but the ports
# framework does not support LINKER_TYPE and LINKER_VERSION yet.
-.if ${COMPILER_TYPE} == "clang" && ${COMPILER_VERSION} >= 150
+.if ${COMPILER_TYPE} == "clang"
# Turn off checking of dynamic relocations, to avoid lld diagnostics about
# possibly incorrect addend values.
LDFLAGS_i386+= -Wl,--no-check-dynamic-relocations
diff --git a/graphics/dcmtk/Makefile b/graphics/dcmtk/Makefile
--- a/graphics/dcmtk/Makefile
+++ b/graphics/dcmtk/Makefile
@@ -34,13 +34,4 @@
TEST_TARGET= test test-exhaustive
-.include <bsd.port.pre.mk>
-
-.if ${ARCH:Mpowerpc*} && ${COMPILER_VERSION} == 140
-LLVM_VER= 15
-BUILD_DEPENDS+= clang${LLVM_VER}:devel/llvm${LLVM_VER}
-CC= ${LOCALBASE}/bin/clang${LLVM_VER}
-CXX= ${LOCALBASE}/bin/clang++${LLVM_VER}
-.endif
-
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/graphics/nvidia-drm-510-kmod/Makefile b/graphics/nvidia-drm-510-kmod/Makefile
--- a/graphics/nvidia-drm-510-kmod/Makefile
+++ b/graphics/nvidia-drm-510-kmod/Makefile
@@ -10,9 +10,4 @@
.include "${.CURDIR}/../nvidia-drm-kmod/Makefile.common"
.include <bsd.port.options.mk>
-# handle incorrect get_user_pages definitions in 13.2
-.if ${OSVERSION} < 1303000
-EXTRA_PATCHES= ${PATCHDIR}/extra-patch-conftest.sh
-.endif
-
.include <bsd.port.mk>
diff --git a/java/eclipse/Makefile b/java/eclipse/Makefile
--- a/java/eclipse/Makefile
+++ b/java/eclipse/Makefile
@@ -75,7 +75,7 @@
.include <bsd.port.pre.mk>
-.if ${COMPILER_TYPE} == clang && ${COMPILER_VERSION} >= 150
+.if ${COMPILER_TYPE} == clang
CFLAGS+= -Wno-deprecated-non-prototype
.endif
diff --git a/java/openjdk11/Makefile b/java/openjdk11/Makefile
--- a/java/openjdk11/Makefile
+++ b/java/openjdk11/Makefile
@@ -152,13 +152,11 @@
--with-extra-cxxflags="-Wl,-rpath=${LOCALBASE}/lib/gcc${GCC_DEFAULT}"
.else
MAKE_ENV+= USE_CLANG=true
-.if ${COMPILER_VERSION} >= 130
LLVM_VER= 12
BUILD_DEPENDS+= clang${LLVM_VER}:devel/llvm${LLVM_VER}
CC= ${LOCALBASE}/bin/clang${LLVM_VER}
CXX= ${LOCALBASE}/bin/clang++${LLVM_VER}
.endif
-.endif
.if ${ARCH} == aarch64 || ${ARCH:Marmv*} || ${ARCH:Mpowerpc64*}
CONFIGURE_ARGS+= --disable-warnings-as-errors
diff --git a/java/openjdk17/Makefile b/java/openjdk17/Makefile
--- a/java/openjdk17/Makefile
+++ b/java/openjdk17/Makefile
@@ -139,18 +139,12 @@
--with-extra-cxxflags="-Wl,-rpath=${LOCALBASE}/lib/gcc${GCC_DEFAULT}"
.else
MAKE_ENV+= USE_CLANG=true
-.if ${COMPILER_VERSION} >= 130
EXTRA_CFLAGS+= -Wno-unused-but-set-parameter
-.if ${COMPILER_VERSION} >= 140
EXTRA_CFLAGS+= -Wno-bitwise-instead-of-logical
-.endif
-.if ${COMPILER_VERSION} >= 150
EXTRA_CFLAGS+= -Wno-deprecated-non-prototype
-.endif
CONFIGURE_ARGS+= --with-extra-cflags="${EXTRA_CFLAGS}"
CONFIGURE_ARGS+= --with-extra-cxxflags="${EXTRA_CFLAGS}"
.endif
-.endif
.if ${ARCH} == aarch64 || ${ARCH:Mpowerpc64*}
CONFIGURE_ARGS+= --disable-warnings-as-errors
diff --git a/java/openjdk18/Makefile b/java/openjdk18/Makefile
--- a/java/openjdk18/Makefile
+++ b/java/openjdk18/Makefile
@@ -149,18 +149,12 @@
--with-extra-cxxflags="-Wl,-rpath=${LOCALBASE}/lib/gcc${GCC_DEFAULT}"
.else
MAKE_ENV+= USE_CLANG=true
-.if ${COMPILER_VERSION} >= 130
EXTRA_CFLAGS+= -Wno-unused-but-set-parameter
-.if ${COMPILER_VERSION} >= 140
EXTRA_CFLAGS+= -Wno-bitwise-instead-of-logical
-.endif
-.if ${COMPILER_VERSION} >= 150
EXTRA_CFLAGS+= -Wno-deprecated-non-prototype
-.endif
CONFIGURE_ARGS+= --with-extra-cflags="${EXTRA_CFLAGS}"
CONFIGURE_ARGS+= --with-extra-cxxflags="${EXTRA_CFLAGS}"
.endif
-.endif
.if ${ARCH} == aarch64 || ${ARCH:Mpowerpc64*}
CONFIGURE_ARGS+= --disable-warnings-as-errors
diff --git a/java/openjdk19/Makefile b/java/openjdk19/Makefile
--- a/java/openjdk19/Makefile
+++ b/java/openjdk19/Makefile
@@ -139,18 +139,12 @@
--with-extra-cxxflags="-Wl,-rpath=${LOCALBASE}/lib/gcc${GCC_DEFAULT}"
.else
MAKE_ENV+= USE_CLANG=true
-.if ${COMPILER_VERSION} >= 130
EXTRA_CFLAGS+= -Wno-unused-but-set-parameter
-.if ${COMPILER_VERSION} >= 140
EXTRA_CFLAGS+= -Wno-bitwise-instead-of-logical
-.endif
-.if ${COMPILER_VERSION} >= 160
EXTRA_CFLAGS+= -Wno-error=deprecated-non-prototype
-.endif
CONFIGURE_ARGS+= --with-extra-cflags="${EXTRA_CFLAGS}"
CONFIGURE_ARGS+= --with-extra-cxxflags="${EXTRA_CFLAGS}"
.endif
-.endif
.if ${ARCH} == aarch64 || ${ARCH:Mpowerpc64*}
CONFIGURE_ARGS+= --disable-warnings-as-errors
diff --git a/java/openjdk20/Makefile b/java/openjdk20/Makefile
--- a/java/openjdk20/Makefile
+++ b/java/openjdk20/Makefile
@@ -138,18 +138,12 @@
--with-extra-cxxflags="-Wl,-rpath=${LOCALBASE}/lib/gcc${GCC_DEFAULT}"
.else
MAKE_ENV+= USE_CLANG=true
-.if ${COMPILER_VERSION} >= 130
EXTRA_CFLAGS+= -Wno-unused-but-set-parameter
-.if ${COMPILER_VERSION} >= 140
EXTRA_CFLAGS+= -Wno-bitwise-instead-of-logical
-.endif
-.if ${COMPILER_VERSION} >= 160
EXTRA_CFLAGS+= -Wno-error=deprecated-non-prototype
-.endif
CONFIGURE_ARGS+= --with-extra-cflags="${EXTRA_CFLAGS}"
CONFIGURE_ARGS+= --with-extra-cxxflags="${EXTRA_CFLAGS}"
.endif
-.endif
.if ${ARCH} == aarch64 || ${ARCH:Mpowerpc64*}
CONFIGURE_ARGS+= --disable-warnings-as-errors
diff --git a/java/openjdk21/Makefile b/java/openjdk21/Makefile
--- a/java/openjdk21/Makefile
+++ b/java/openjdk21/Makefile
@@ -138,18 +138,12 @@
--with-extra-cxxflags="-Wl,-rpath=${LOCALBASE}/lib/gcc${GCC_DEFAULT}"
.else
MAKE_ENV+= USE_CLANG=true
-.if ${COMPILER_VERSION} >= 130
EXTRA_CFLAGS+= -Wno-unused-but-set-parameter
-.if ${COMPILER_VERSION} >= 140
EXTRA_CFLAGS+= -Wno-bitwise-instead-of-logical
-.endif
-.if ${COMPILER_VERSION} >= 160
EXTRA_CFLAGS+= -Wno-error=deprecated-non-prototype
-.endif
CONFIGURE_ARGS+= --with-extra-cflags="${EXTRA_CFLAGS}"
CONFIGURE_ARGS+= --with-extra-cxxflags="${EXTRA_CFLAGS}"
.endif
-.endif
.if ${ARCH} == aarch64 || ${ARCH:Mpowerpc64*}
CONFIGURE_ARGS+= --disable-warnings-as-errors
diff --git a/java/openjdk22/Makefile b/java/openjdk22/Makefile
--- a/java/openjdk22/Makefile
+++ b/java/openjdk22/Makefile
@@ -138,18 +138,12 @@
--with-extra-cxxflags="-Wl,-rpath=${LOCALBASE}/lib/gcc${GCC_DEFAULT}"
.else
MAKE_ENV+= USE_CLANG=true
-.if ${COMPILER_VERSION} >= 130
EXTRA_CFLAGS+= -Wno-unused-but-set-parameter
-.if ${COMPILER_VERSION} >= 140
EXTRA_CFLAGS+= -Wno-bitwise-instead-of-logical
-.endif
-.if ${COMPILER_VERSION} >= 160
EXTRA_CFLAGS+= -Wno-error=deprecated-non-prototype
-.endif
CONFIGURE_ARGS+= --with-extra-cflags="${EXTRA_CFLAGS}"
CONFIGURE_ARGS+= --with-extra-cxxflags="${EXTRA_CFLAGS}"
.endif
-.endif
.if ${ARCH} == aarch64 || ${ARCH:Mpowerpc64*}
CONFIGURE_ARGS+= --disable-warnings-as-errors
diff --git a/java/openjdk8/Makefile b/java/openjdk8/Makefile
--- a/java/openjdk8/Makefile
+++ b/java/openjdk8/Makefile
@@ -204,7 +204,7 @@
.if ${COMPILER_TYPE} == clang
MAKE_ENV+= COMPILER_WARNINGS_FATAL=false USE_CLANG=true
CONFIGURE_ENV+= LIBCXX="-lc++"
-.if ${COMPILER_VERSION} >= 130 && ${ARCH} == aarch64
+.if ${ARCH} == aarch64
# PR258954: see <https://bugs.openjdk.org/browse/JDK-8247766>. Even though the
# upstream fix has been applied to this version of the JDK, users still report
# the assertion "guarantee(val < (1U << nbits)) failed: Field too big for insn"
@@ -214,14 +214,12 @@
CC= ${LOCALBASE}/bin/clang${LLVM_VER}
CXX= ${LOCALBASE}/bin/clang++${LLVM_VER}
.endif
-.if ${COMPILER_VERSION} >= 160
# clang 16 defaults to C++17, which no longer allows the 'register' keyword.
# There is an upstream commit that removes all the individual 'register'
# keywords, but it has not yet been backported to OpenJDK 8.
# NOTE: passing this option via --with-extra-cflags does not work.
CFLAGS+= -Dregister=
.endif
-.endif
# GCC is broken with PCH: https://lists.freebsd.org/pipermail/svn-src-all/2015-March/101722.html
.if ${COMPILER_TYPE} == gcc
diff --git a/lang/erlang-runtime21/Makefile b/lang/erlang-runtime21/Makefile
--- a/lang/erlang-runtime21/Makefile
+++ b/lang/erlang-runtime21/Makefile
@@ -90,7 +90,7 @@
.include <bsd.port.pre.mk>
-.if ${COMPILER_TYPE} == clang && ${COMPILER_VERSION} >= 130
+.if ${COMPILER_TYPE} == clang
# PR 258494
CONFIGURE_ARGS+= --disable-pgo
.endif
diff --git a/lang/erlang-runtime22/Makefile b/lang/erlang-runtime22/Makefile
--- a/lang/erlang-runtime22/Makefile
+++ b/lang/erlang-runtime22/Makefile
@@ -89,7 +89,7 @@
.include <bsd.port.pre.mk>
-.if ${COMPILER_TYPE} == clang && ${COMPILER_VERSION} >= 130
+.if ${COMPILER_TYPE} == clang
# PR 258494
CONFIGURE_ARGS+= --disable-pgo
.endif
diff --git a/lang/erlang-runtime23/Makefile b/lang/erlang-runtime23/Makefile
--- a/lang/erlang-runtime23/Makefile
+++ b/lang/erlang-runtime23/Makefile
@@ -88,7 +88,7 @@
.include <bsd.port.pre.mk>
-.if ${COMPILER_TYPE} == clang && ${COMPILER_VERSION} >= 130
+.if ${COMPILER_TYPE} == clang
# PR 258494
CONFIGURE_ARGS+= --disable-pgo
.endif
diff --git a/lang/erlang-runtime24/Makefile b/lang/erlang-runtime24/Makefile
--- a/lang/erlang-runtime24/Makefile
+++ b/lang/erlang-runtime24/Makefile
@@ -87,7 +87,7 @@
.include <bsd.port.pre.mk>
-.if ${COMPILER_TYPE} == clang && ${COMPILER_VERSION} >= 130
+.if ${COMPILER_TYPE} == clang
# PR 258494
CONFIGURE_ARGS+= --disable-pgo
.endif
diff --git a/lang/erlang-runtime25/Makefile b/lang/erlang-runtime25/Makefile
--- a/lang/erlang-runtime25/Makefile
+++ b/lang/erlang-runtime25/Makefile
@@ -86,7 +86,7 @@
.include <bsd.port.pre.mk>
-.if ${COMPILER_TYPE} == clang && ${COMPILER_VERSION} >= 130
+.if ${COMPILER_TYPE} == clang
# PR 258494
CONFIGURE_ARGS+= --disable-pgo
.endif
diff --git a/lang/erlang-runtime26/Makefile b/lang/erlang-runtime26/Makefile
--- a/lang/erlang-runtime26/Makefile
+++ b/lang/erlang-runtime26/Makefile
@@ -84,7 +84,7 @@
.include <bsd.port.pre.mk>
-.if ${COMPILER_TYPE} == clang && ${COMPILER_VERSION} >= 130
+.if ${COMPILER_TYPE} == clang
# PR 258494
CONFIGURE_ARGS+= --disable-pgo
.endif
diff --git a/lang/erlang/Makefile b/lang/erlang/Makefile
--- a/lang/erlang/Makefile
+++ b/lang/erlang/Makefile
@@ -100,7 +100,7 @@
.include <bsd.port.pre.mk>
-.if ${COMPILER_TYPE} == clang && ${COMPILER_VERSION} >= 130
+.if ${COMPILER_TYPE} == clang
# PR 258494
CONFIGURE_ARGS+= --disable-pgo
.endif
diff --git a/lang/smlnj/Makefile b/lang/smlnj/Makefile
--- a/lang/smlnj/Makefile
+++ b/lang/smlnj/Makefile
@@ -38,8 +38,7 @@
.include <bsd.port.pre.mk>
-# XXX see FreeBSD PR 247421
-.if ${COMPILER_TYPE} == "clang" && ${COMPILER_VERSION} >= 100
+.if ${COMPILER_TYPE} == "clang"
RUNTIME_SO=
PLIST_SUB+= RUNTIME_SO="@comment "
.else
@@ -47,7 +46,7 @@
PLIST_SUB+= RUNTIME_SO=
.endif
-.if ${COMPILER_TYPE} == clang && ${COMPILER_VERSION} >= 160
+.if ${COMPILER_TYPE} == clang
CFLAGS+= -Wno-error=incompatible-function-pointer-types
.endif
diff --git a/lang/spidermonkey102/Makefile b/lang/spidermonkey102/Makefile
--- a/lang/spidermonkey102/Makefile
+++ b/lang/spidermonkey102/Makefile
@@ -57,21 +57,11 @@
CONFIGURE_TARGET= x86_64-portbld-freebsd${OSREL}
.endif
-# Require newer Clang than what's in base system unless user opted out
-# or the base system is new enough.
.if ${CHOSEN_COMPILER_TYPE} == gcc
CONFIGURE_ENV+= LLVM_CONFIG=llvm-config${LLVM_DEFAULT} \
LLVM_OBJDUMP=llvm-objdump${LLVM_DEFAULT}
BUILD_DEPENDS+= ${LOCALBASE}/bin/llvm-objdump${LLVM_DEFAULT}:devel/llvm${LLVM_DEFAULT}
USE_GCC= yes
-.elif ${CC} == cc && ${CXX} == c++ && exists(/usr/lib/libc++.so) && \
- ${COMPILER_VERSION} < 80
-CPP= ${LOCALBASE}/bin/clang-cpp${LLVM_DEFAULT}
-CC= ${LOCALBASE}/bin/clang${LLVM_DEFAULT}
-CXX= ${LOCALBASE}/bin/clang++${LLVM_DEFAULT}
-CONFIGURE_ENV+= LLVM_CONFIG=llvm-config${LLVM_DEFAULT} \
- LLVM_OBJDUMP=llvm-objdump${LLVM_DEFAULT}
-BUILD_DEPENDS+= ${LOCALBASE}/bin/clang${LLVM_DEFAULT}:devel/llvm${LLVM_DEFAULT}
.endif
post-patch:
diff --git a/lang/spidermonkey78/Makefile b/lang/spidermonkey78/Makefile
--- a/lang/spidermonkey78/Makefile
+++ b/lang/spidermonkey78/Makefile
@@ -58,21 +58,11 @@
CONFIGURE_TARGET= x86_64-portbld-freebsd${OSREL}
.endif
-# Require newer Clang than what's in base system unless user opted out
-# or the base system is new enough.
.if ${CHOSEN_COMPILER_TYPE} == gcc
CONFIGURE_ENV+= LLVM_CONFIG=llvm-config${LLVM_DEFAULT} \
LLVM_OBJDUMP=llvm-objdump${LLVM_DEFAULT}
BUILD_DEPENDS+= ${LOCALBASE}/bin/llvm-objdump${LLVM_DEFAULT}:devel/llvm${LLVM_DEFAULT}
USE_GCC= yes
-.elif ${CC} == cc && ${CXX} == c++ && exists(/usr/lib/libc++.so) && \
- ${COMPILER_VERSION} < 80
-CPP= ${LOCALBASE}/bin/clang-cpp${LLVM_DEFAULT}
-CC= ${LOCALBASE}/bin/clang${LLVM_DEFAULT}
-CXX= ${LOCALBASE}/bin/clang++${LLVM_DEFAULT}
-CONFIGURE_ENV+= LLVM_CONFIG=llvm-config${LLVM_DEFAULT} \
- LLVM_OBJDUMP=llvm-objdump${LLVM_DEFAULT}
-BUILD_DEPENDS+= ${LOCALBASE}/bin/clang${LLVM_DEFAULT}:devel/llvm${LLVM_DEFAULT}
.endif
post-patch:
diff --git a/lang/spidermonkey91/Makefile b/lang/spidermonkey91/Makefile
--- a/lang/spidermonkey91/Makefile
+++ b/lang/spidermonkey91/Makefile
@@ -66,21 +66,11 @@
CONFIGURE_TARGET= x86_64-portbld-freebsd${OSREL}
.endif
-# Require newer Clang than what's in base system unless user opted out
-# or the base system is new enough.
.if ${CHOSEN_COMPILER_TYPE} == gcc
CONFIGURE_ENV+= LLVM_CONFIG=llvm-config${LLVM_DEFAULT} \
LLVM_OBJDUMP=llvm-objdump${LLVM_DEFAULT}
BUILD_DEPENDS+= ${LOCALBASE}/bin/llvm-objdump${LLVM_DEFAULT}:devel/llvm${LLVM_DEFAULT}
USE_GCC= yes
-.elif ${CC} == cc && ${CXX} == c++ && exists(/usr/lib/libc++.so) && \
- ${COMPILER_VERSION} < 80
-CPP= ${LOCALBASE}/bin/clang-cpp${LLVM_DEFAULT}
-CC= ${LOCALBASE}/bin/clang${LLVM_DEFAULT}
-CXX= ${LOCALBASE}/bin/clang++${LLVM_DEFAULT}
-CONFIGURE_ENV+= LLVM_CONFIG=llvm-config${LLVM_DEFAULT} \
- LLVM_OBJDUMP=llvm-objdump${LLVM_DEFAULT}
-BUILD_DEPENDS+= ${LOCALBASE}/bin/clang${LLVM_DEFAULT}:devel/llvm${LLVM_DEFAULT}
.endif
post-patch:
diff --git a/lang/yap/Makefile b/lang/yap/Makefile
--- a/lang/yap/Makefile
+++ b/lang/yap/Makefile
@@ -47,7 +47,7 @@
.include <bsd.port.pre.mk>
-.if ${OPSYS} == FreeBSD && ${COMPILER_TYPE} == clang && ${COMPILER_VERSION} >= 160
+.if ${OPSYS} == FreeBSD && ${COMPILER_TYPE} == clang
CFLAGS+= -Wno-incompatible-function-pointer-types
CONFIGURE_ENV+= CFLAGS="${CFLAGS}"
.endif
diff --git a/mail/milter-manager/Makefile b/mail/milter-manager/Makefile
--- a/mail/milter-manager/Makefile
+++ b/mail/milter-manager/Makefile
@@ -39,7 +39,7 @@
.include <bsd.port.pre.mk>
-.if ${COMPILER_TYPE} == clang && ${COMPILER_VERSION} >= 160
+.if ${COMPILER_TYPE} == clang
CFLAGS+= -Wno-error=incompatible-function-pointer-types
.endif
diff --git a/mail/qpopper/Makefile b/mail/qpopper/Makefile
--- a/mail/qpopper/Makefile
+++ b/mail/qpopper/Makefile
@@ -125,7 +125,7 @@
# openssl-1.1.1 no longer has SSLv2 support
.if ${OPSYS} == FreeBSD
CFLAGS+= -DOPENSSL_NO_SSL2
-.if ${COMPILER_TYPE} == clang && ${COMPILER_VERSION} >= 160
+.if ${COMPILER_TYPE} == clang
CFLAGS+= -Wno-incompatible-function-pointer-types
.endif
.endif
diff --git a/math/py-fastcluster/Makefile b/math/py-fastcluster/Makefile
--- a/math/py-fastcluster/Makefile
+++ b/math/py-fastcluster/Makefile
@@ -19,16 +19,7 @@
USES= compiler python
USE_PYTHON= autoplist concurrent distutils
-.include <bsd.port.pre.mk>
-
-.if ${ARCH:Mpowerpc*} && ${COMPILER_VERSION} == 140
-BUILD_DEPENDS+= clang15:devel/llvm15
-CPP= clang-cpp15
-CC= clang15
-CXX= clang++15
-.endif
-
post-install:
${FIND} ${STAGEDIR}${PYTHON_SITELIBDIR} -name '*.so' -exec ${STRIP_CMD} {} +
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/math/scilab/Makefile b/math/scilab/Makefile
--- a/math/scilab/Makefile
+++ b/math/scilab/Makefile
@@ -132,11 +132,8 @@
.include <bsd.port.pre.mk>
-.if ${COMPILER_TYPE} == clang && ${COMPILER_VERSION} >= 150
+.if ${COMPILER_TYPE} == clang
CFLAGS+= -Wno-error=int-conversion
-.endif
-
-.if ${COMPILER_TYPE} == clang && ${COMPILER_VERSION} >= 160
CFLAGS+= -Wno-error=incompatible-function-pointer-types
.endif
@@ -148,7 +145,7 @@
post-patch:
@${REINPLACE_CMD} 's,/usr/local,${LOCALBASE},' ${WRKSRC}/etc/librarypath.xml
@${REINPLACE_CMD} -e 's, gfortran, ${FC},' ${WRKSRC}/modules/dynamic_link/src/scripts/configure
-.if ${COMPILER_TYPE} == clang && ${COMPILER_VERSION} >= 160
+.if ${COMPILER_TYPE} == clang
@${REINPLACE_CMD} -e 's|std::filesystem|std::__fs::filesystem|g' \
${WRKSRC}/modules/fileio/src/cpp/fullpath.cpp \
${WRKSRC}/modules/fileio/sci_gateway/cpp/sci_get_absolute_file_path.cpp
diff --git a/misc/ecflow/Makefile b/misc/ecflow/Makefile
--- a/misc/ecflow/Makefile
+++ b/misc/ecflow/Makefile
@@ -33,7 +33,7 @@
.include <bsd.port.pre.mk>
#post-patch:
-#.if ${COMPILER_TYPE} == clang && ${COMPILER_VERSION} >= 160
+#.if ${COMPILER_TYPE} == clang
# @${REINPLACE_CMD} -e 's|std::binary_function|std::__binary_function|' \
# ${WRKSRC}/ACore/src/Str.cpp
#.endif
diff --git a/misc/rump/Makefile b/misc/rump/Makefile
--- a/misc/rump/Makefile
+++ b/misc/rump/Makefile
@@ -33,7 +33,7 @@
.endif
CWARNFLAGS+= -Wno-address-of-packed-member
-.if ${COMPILER_TYPE} == clang && ${COMPILER_VERSION} >= 130
+.if ${COMPILER_TYPE} == clang
CWARNFLAGS+= -Wno-unused-but-set-variable
.endif
diff --git a/multimedia/bcmatroska2/Makefile b/multimedia/bcmatroska2/Makefile
--- a/multimedia/bcmatroska2/Makefile
+++ b/multimedia/bcmatroska2/Makefile
@@ -22,7 +22,7 @@
.include <bsd.port.pre.mk>
-.if ${COMPILER_TYPE} == clang && ${COMPILER_VERSION} >= 160
+.if ${COMPILER_TYPE} == clang
CFLAGS+= -Wno-error=incompatible-function-pointer-types
.endif
diff --git a/multimedia/x264/Makefile b/multimedia/x264/Makefile
--- a/multimedia/x264/Makefile
+++ b/multimedia/x264/Makefile
@@ -126,7 +126,7 @@
.include <bsd.port.pre.mk>
-.if ${COMPILER_TYPE} == clang && ${COMPILER_VERSION} >= 160 && !${PORT_OPTIONS:MPGO}
+.if ${COMPILER_TYPE} == clang && !${PORT_OPTIONS:MPGO}
CFLAGS+= -Wno-error=incompatible-function-pointer-types
.endif
diff --git a/net-im/telegram-desktop/Makefile b/net-im/telegram-desktop/Makefile
--- a/net-im/telegram-desktop/Makefile
+++ b/net-im/telegram-desktop/Makefile
@@ -105,7 +105,7 @@
.include <bsd.port.options.mk>
-.if ${OPSYS} == FreeBSD && ((${OSVERSION} >= 1400000 && ${OSVERSION} < 1400091) || ${OSVERSION} < 1302507)
+.if ${OPSYS} == FreeBSD && (${OSVERSION} >= 1400000 && ${OSVERSION} < 1400091)
#EXTRA_PATCHES= ${PATCHDIR}/extra-patch-CMakeLists.txt
USES+= llvm:min=16,build
USES:= ${USES:Ncompiler\:*} # XXX avoid warnings
diff --git a/net-mgmt/nfdump/Makefile b/net-mgmt/nfdump/Makefile
--- a/net-mgmt/nfdump/Makefile
+++ b/net-mgmt/nfdump/Makefile
@@ -68,7 +68,7 @@
.include <bsd.port.pre.mk>
-.if ${COMPILER_TYPE} == clang && ${COMPILER_VERSION} >= 160
+.if ${COMPILER_TYPE} == clang
CPPFLAGS+= -Wno-error=incompatible-function-pointer-types
.endif
diff --git a/net-p2p/amule/Makefile b/net-p2p/amule/Makefile
--- a/net-p2p/amule/Makefile
+++ b/net-p2p/amule/Makefile
@@ -123,7 +123,7 @@
# amule 2.3.3 does not work with C++17 which is the default since clang
# 16. Change the defaults and allow the `register' keyword to be used without
# triggering a compiler error to allow the build to work.
-.if ${COMPILER_TYPE} == clang && ${COMPILER_VERSION} >= 160
+.if ${COMPILER_TYPE} == clang
CXXFLAGS+= -Wno-register
.endif
diff --git a/net/messagelib/Makefile b/net/messagelib/Makefile
--- a/net/messagelib/Makefile
+++ b/net/messagelib/Makefile
@@ -43,7 +43,7 @@
.include <bsd.port.pre.mk>
-.if ${COMPILER_TYPE} == clang && ${COMPILER_VERSION} >= 160
+.if ${COMPILER_TYPE} == clang
CXXFLAGS+= -D_LIBCPP_ENABLE_CXX17_REMOVED_UNARY_BINARY_FUNCTION
.endif
diff --git a/net/py-pyfixbuf/Makefile b/net/py-pyfixbuf/Makefile
--- a/net/py-pyfixbuf/Makefile
+++ b/net/py-pyfixbuf/Makefile
@@ -21,7 +21,7 @@
.include <bsd.port.pre.mk>
-.if ${COMPILER_TYPE} == clang && ${COMPILER_VERSION} >= 160
+.if ${COMPILER_TYPE} == clang
CPPFLAGS+= -Wno-error=incompatible-function-pointer-types
.endif
diff --git a/print/cups-filters/Makefile b/print/cups-filters/Makefile
--- a/print/cups-filters/Makefile
+++ b/print/cups-filters/Makefile
@@ -137,7 +137,7 @@
.include <bsd.port.pre.mk>
#.if ${OPSYS} == FreeBSD && ( ${OSVERSION} >= 1400091 || ( ${OSVERSION} >= 1302507 && ${OSVERSION} < 1400000 ))
-.if ${COMPILER_TYPE} == clang && ${COMPILER_VERSION} >= 160
+.if ${COMPILER_TYPE} == clang
CFLAGS+= -Wno-error=dynamic-exception-spec
.endif
diff --git a/print/scribus-devel/Makefile b/print/scribus-devel/Makefile
--- a/print/scribus-devel/Makefile
+++ b/print/scribus-devel/Makefile
@@ -62,7 +62,7 @@
${WRKSRC}/scribus/imagedataloaders/scimgdataloader_pdf.cpp \
${WRKSRC}/scribus/pdflib_core.h \
${WRKSRC}/scribus/pdf_analyzer.h
-.if ${COMPILER_TYPE} == clang && ${COMPILER_VERSION} >= 160
+.if ${COMPILER_TYPE} == clang
@${REINPLACE_CMD} -e 's|std::unary_function|std::__unary_function|' \
${WRKSRC}/scribus/desaxe/digester.cpp
.endif
diff --git a/science/py-hoomd-blue/Makefile b/science/py-hoomd-blue/Makefile
--- a/science/py-hoomd-blue/Makefile
+++ b/science/py-hoomd-blue/Makefile
@@ -61,7 +61,7 @@
.include <bsd.port.pre.mk>
post-patch:
-.if ${COMPILER_TYPE} == clang && ${COMPILER_VERSION} >= 160
+.if ${COMPILER_TYPE} == clang
@${REINPLACE_CMD} -e 's|std::unary_function|std::__unary_function|' \
${WRKSRC}/hoomd/ParticleData.cc
.endif
diff --git a/science/tfel/Makefile b/science/tfel/Makefile
--- a/science/tfel/Makefile
+++ b/science/tfel/Makefile
@@ -44,7 +44,7 @@
.include <bsd.port.pre.mk>
post-patch:
-.if ${COMPILER_TYPE} == clang && ${COMPILER_VERSION} >= 160
+.if ${COMPILER_TYPE} == clang
@${REINPLACE_CMD} -e 's|std::unary_function|std::__unary_function|' \
${WRKSRC}/include/NUMODIS/Math/Utilities.hxx \
${WRKSRC}/include/TFEL/Math/General/Abs.hxx
diff --git a/security/kleopatra/Makefile b/security/kleopatra/Makefile
--- a/security/kleopatra/Makefile
+++ b/security/kleopatra/Makefile
@@ -28,7 +28,7 @@
.include <bsd.port.pre.mk>
-.if ${COMPILER_TYPE} == clang && ${COMPILER_VERSION} >= 160
+.if ${COMPILER_TYPE} == clang
CXXFLAGS+= -Wno-error=enum-constexpr-conversion
.endif
diff --git a/security/py-cryptography-legacy/Makefile b/security/py-cryptography-legacy/Makefile
--- a/security/py-cryptography-legacy/Makefile
+++ b/security/py-cryptography-legacy/Makefile
@@ -38,14 +38,7 @@
CPE_VENDOR= cryptography_project
-.include <bsd.port.pre.mk>
-
-.if ${CHOSEN_COMPILER_TYPE} == gcc && ${COMPILER_VERSION} <= 42
-post-patch:
- @${REINPLACE_CMD} -e 's|"-Wno-error=sign-conversion"||' ${WRKSRC}/src/_cffi_src/build_openssl.py
-.endif
-
post-install:
${FIND} ${STAGEDIR}${PYTHON_SITELIBDIR} -name '*.so' -exec ${STRIP_CMD} {} +
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/sysutils/btop/Makefile b/sysutils/btop/Makefile
--- a/sysutils/btop/Makefile
+++ b/sysutils/btop/Makefile
@@ -16,13 +16,4 @@
MAKE_ARGS= STRIP=true ADDFLAGS="${CXXFLAGS} ${LDFLAGS}" VERBOSE=true
-.include <bsd.port.options.mk>
-
-.if ${OSVERSION} < 1302507
-USE_GCC= yes
-.if ${ARCH} == i386 || ${ARCH} == powerpc
-LDFLAGS+= -latomic
-.endif
-.endif
-
.include <bsd.port.mk>
diff --git a/textproc/ibus/Makefile b/textproc/ibus/Makefile
--- a/textproc/ibus/Makefile
+++ b/textproc/ibus/Makefile
@@ -98,10 +98,6 @@
.include <bsd.port.pre.mk>
-.if ${COMPILER_TYPE} == gcc && ${COMPILER_VERSION} < 46
-USE_GCC= yes
-.endif
-
.if ${PORT_OPTIONS:MENGINE} || ${PORT_OPTIONS:MGTK3} || ${PORT_OPTIONS:MDCONF}
PLIST_SUB+= COMPDIR=""
.else
diff --git a/www/node18/Makefile b/www/node18/Makefile
--- a/www/node18/Makefile
+++ b/www/node18/Makefile
@@ -66,7 +66,7 @@
.include "Makefile.version"
.include <bsd.port.pre.mk>
-.if ${COMPILER_TYPE} == clang && ${COMPILER_VERSION} >= 160 && (${ARCH} == aarch64 || ${ARCH} == armv7 || ${ARCH:Mpowerpc64*})
+.if ${COMPILER_TYPE} == clang && (${ARCH} == aarch64 || ${ARCH} == armv7 || ${ARCH:Mpowerpc64*})
CXXFLAGS+= -Wno-error=enum-constexpr-conversion
.endif
diff --git a/www/tclhttpd/Makefile b/www/tclhttpd/Makefile
--- a/www/tclhttpd/Makefile
+++ b/www/tclhttpd/Makefile
@@ -46,7 +46,7 @@
${FILESDIR}/pkgIndex.tcl >> \
${STAGEDIR}${PREFIX}/lib/${PORTNAME}${PORTVERSION}/pkgIndex.tcl
-.if ${COMPILER_TYPE} == "clang" && ${COMPILER_VERSION} >= 150
+.if ${COMPILER_TYPE} == "clang"
CFLAGS+= -std=c90 -Wno-deprecated-non-prototype
.endif
diff --git a/www/webkit2-gtk4/Makefile b/www/webkit2-gtk4/Makefile
--- a/www/webkit2-gtk4/Makefile
+++ b/www/webkit2-gtk4/Makefile
@@ -97,7 +97,7 @@
.include <bsd.port.pre.mk>
-.if ${COMPILER_TYPE} == clang && ${COMPILER_VERSION} >= 160
+.if ${COMPILER_TYPE} == clang
CXXFLAGS+= -Wno-error=enum-constexpr-conversion
.endif
diff --git a/x11-fm/fsv2/Makefile b/x11-fm/fsv2/Makefile
--- a/x11-fm/fsv2/Makefile
+++ b/x11-fm/fsv2/Makefile
@@ -36,7 +36,7 @@
.include <bsd.port.pre.mk>
post-patch:
-.if ${COMPILER_TYPE} == clang && ${COMPILER_VERSION} >= 160
+.if ${COMPILER_TYPE} == clang
@${REINPLACE_CMD} -e 's|auto_ptr|unique_ptr|' \
${WRKSRC}/uilib/ColorCellRenderer.cpp
.endif
diff --git a/x11-wm/subtle/Makefile b/x11-wm/subtle/Makefile
--- a/x11-wm/subtle/Makefile
+++ b/x11-wm/subtle/Makefile
@@ -28,7 +28,7 @@
${WRKSRC}/data/sur/server.rb
@${REINPLACE_CMD} -e 's,/etc/xdg,${LOCALBASE}&,' \
${WRKSRC}/src/subtle/ruby.c
-.if ${COMPILER_TYPE} == clang && ${COMPILER_VERSION} >= 160
+.if ${COMPILER_TYPE} == clang
@${REINPLACE_CMD} -e '/cflags/s/-Wall/-Wall -Wno-error=incompatible-function-pointer-types /g' \
${WRKSRC}/Rakefile
.endif

File Metadata

Mime Type
text/plain
Expires
Sat, Nov 29, 12:57 AM (16 h, 31 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
26273319
Default Alt Text
D45141.id138306.diff (58 KB)

Event Timeline