Files
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

64 lines
1.4 KiB
Makefile

# Upstream does not want to support big endian.
# See: https://github.com/nesbox/TIC-80/pull/1057/
NOT_FOR_ARCHS = ${BE_ARCHS}
V = 0.90.1706
COMMENT = fantasy computer to make, play and share tiny games (TIC-80)
DISTNAME = TIC-80-${V}
PKGNAME = ${DISTNAME:S/TIC-80/tic80/}
EXTRACT_SUFX = .tar.xz
CATEGORIES = games x11
REVISION = 0
HOMEPAGE = https://tic80.com/
# TIC-80 itself: MIT
# Built-in dependencies:
# argparse: MIT
# blip-buf: LGPLv2.1 only
# fennel: MIT
# lpeg: MIT
# moonscript: MIT
# squirrel: MIT
# wren: MIT
# zip: Unlicense (This is not libzip!)
PERMIT_PACKAGE = Yes
WANTLIB += ${COMPILER_LIBCXX} ${MODLUA_WANTLIB} SDL2 c curl
WANTLIB += duktape gif lua5.3 m png z
SITES = https://github.com/ibara/tic80-openbsd/releases/download/v${V}/
COMPILER = base-clang ports-gcc
MODULES = devel/cmake \
lang/lua
MODLUA_VERSION = 5.3
LIB_DEPENDS = devel/sdl2 \
graphics/giflib \
graphics/png \
lang/duktape \
net/curl
RUN_DEPENDS = devel/desktop-file-utils
# Remember to update VERSION_HASH when updating!
CONFIGURE_ARGS = -DBUILD_PRO=ON \
-DVERSION_HASH=a838293
MODCMAKE_POLICY_VERSION_OVERRIDE = Yes
CFLAGS += `sdl2-config --cflags` -I${MODLUA_INCL_DIR}
MODCMAKE_LDFLAGS = `sdl2-config --libs`
NO_TEST = Yes
# Install the cart creation binaries.
post-install:
${INSTALL_PROGRAM} \
${WRKBUILD}/bin/{bin2txt,cart2prj,player-sdl,prj2cart,xplode} \
${PREFIX}/bin
.include <bsd.port.mk>