Files
ports/archivers/innoextract/Makefile
T
rsadowski e8035d4760 Update CMake to 4.1.2
Major update from 3.31.8 to 4.1.2.

CMake 4.0 introduces a breaking change: compatibility with versions older than
3.5 has been removed. Projects calling cmake_minimum_required() or
cmake_policy() with versions < 3.5 now error out.

To maintain compatibility with existing ports during the transition, the cmake
module now provides MODCMAKE_POLICY_VERSION_OVERRIDE (idea from sthen@)
support:

- MODCMAKE_POLICY_VERSION_OVERRIDE ?= No
- MODCMAKE_POLICY_VERSION_OVERRIDE_VER ?= 3.5

When MODCMAKE_POLICY_VERSION_OVERRIDE is set to "yes", CMake is instructed to
accept policy versions down to the specified minimum (default 3.5) via
-DCMAKE_POLICY_VERSION_MINIMUM. This allows older ports to build while
acknowledging they may use deprecated features.

https://cmake.org/cmake/help/latest/release/4.0.html
https://cmake.org/cmake/help/latest/release/4.1.html

OK sthen@
2026-02-13 12:02:13 +00:00

56 lines
1.4 KiB
Makefile

COMMENT= unpack Inno Setup installers
DISTNAME= innoextract-1.9
REVISION= 3
CATEGORIES= archivers
HOMEPAGE= https://constexpr.org/innoextract/
MAINTAINER= Thomas Frohwein <thfr@openbsd.org>
# zlib/libpng
PERMIT_PACKAGE= Yes
# pthread req'd by lzma and boost at runtime
WANTLIB= boost_filesystem-mt boost_iostreams-mt boost_program_options-mt
WANTLIB+= c iconv lzma m ${COMPILER_LIBCXX}
SITES = ${HOMEPAGE}files/
# C++17
COMPILER= base-clang ports-gcc
LIB_DEPENDS= archivers/xz \
converters/libiconv \
devel/boost
RUN_DEPENDS= archivers/unrar
MODULES= devel/cmake
SEPARATE_BUILD= Yes
CXXFLAGS+= -Wno-system-headers
CONFIGURE_ARGS+=-DCMAKE_INSTALL_PREFIX="${PREFIX}" \
-DCMAKE_INSTALL_MANDIR="man" \
-DDOXYGEN_EXECUTABLE="false"
MODCMAKE_POLICY_VERSION_OVERRIDE = Yes
NO_TEST= Yes
.include <bsd.port.arch.mk>
# The std::unique_ptr configure test fails on ld.bfd archs using base-clang due
# to undefined references caused by the `--as-needed' linker flag. A fallback
# exists, using std::auto_ptr, but it has been disabled by C++17, thus breaking
# the build later. Use the same code as other archs instead of reenabling
# std::auto_ptr by removing the `--as-needed' linker flags to fix the build.
.if ${PROPERTIES:Mclang} && !${PROPERTIES:Mlld}
CONFIGURE_ARGS+= -DSET_OPTIMIZATION_FLAGS=OFF
.endif
do-install:
${INSTALL_PROGRAM} ${WRKBUILD}/innoextract ${PREFIX}/bin
${INSTALL_MAN} ${WRKBUILD}/innoextract.1 ${PREFIX}/man/man1
.include <bsd.port.mk>