Files
ports/audio/gogglesmm/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

51 lines
1.1 KiB
Makefile

COMMENT = music collection manager and player
GH_ACCOUNT = gogglesmm
GH_PROJECT = gogglesmm
GH_TAGNAME = 1.2.5
CATEGORIES = audio x11
HOMEPAGE = https://gogglesmm.github.io/
# GPLv3+
PERMIT_PACKAGE = Yes
WANTLIB += ${COMPILER_LIBCXX} FLAC GL GLU ICE SM X11 Xcursor Xext
WANTLIB += Xfixes Xft Xrandr Xrender bz2 c crypto dbus-1 epoxy
WANTLIB += expat fontconfig freetype intl jpeg m ogg opus png
WANTLIB += pulse sndio sqlite3 ssl tag tiff vorbis webp z
COMPILER = base-clang ports-gcc base-gcc
MODULES = devel/cmake
LIB_DEPENDS = archivers/bzip2 \
audio/flac \
audio/libogg \
audio/libvorbis \
audio/opus \
audio/pulseaudio \
audio/taglib>=2.0.2 \
databases/sqlite3 \
devel/gettext,-runtime \
graphics/jpeg \
graphics/libwebp \
graphics/png \
graphics/tiff \
x11/dbus
RUN_DEPENDS = devel/desktop-file-utils \
x11/gtk+4,-guic
CONFIGURE_ARGS= -DCMAKE_INSTALL_PREFIX="${PREFIX}"
CXXFLAGS += -I${LOCALBASE}/include -I${X11BASE}/include
MODCMAKE_LDFLAGS = -L${LOCALBASE}/lib -L${X11BASE}/lib
NO_TEST = Yes
MODCMAKE_POLICY_VERSION_OVERRIDE = Yes
.include <bsd.port.mk>