Edit

IABSD.fr/ports/editors/texworks/Makefile

Branch :

  • Show log

    Commit

  • Author : rsadowski
    Date : 2026-02-13 12:02:13
    Hash : e8035d47
    Message : 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@

  • editors/texworks/Makefile
  • COMMENT-main =		easy to use LaTeX and ConTeXt editor
    COMMENT-python =	Python scripting for TeXworks
    COMMENT-lua =		Lua scripting for TeXworks
    REVISION-lua =		0
    REVISION-main =		0
    REVISION-python =	0
    
    V =			0.6.8
    GH_ACCOUNT =		TeXworks
    GH_PROJECT =		texworks
    GH_TAGNAME =		release-${V}
    
    EPOCH =			0
    
    CATEGORIES =		editors print
    
    HOMEPAGE =		http://www.tug.org/texworks/
    
    MAINTAINER =		Edd Barrett <edd@openbsd.org>
    
    # GPLv2+
    PERMIT_PACKAGE =	Yes
    
    MODULES =		lang/python \
    			lang/lua \
    			x11/qt5 \
    			devel/cmake
    
    # c++-11 required for poppler
    COMPILER =		base-clang ports-gcc
    
    WANTLIB-main += ${COMPILER_LIBCXX} GL Qt5Concurrent Qt5Core Qt5DBus
    WANTLIB-main += Qt5Gui Qt5Network Qt5Qml Qt5Script Qt5ScriptTools Qt5Test
    WANTLIB-main += Qt5Widgets Qt5Xml c hunspell-1.7 m poppler poppler-qt5
    WANTLIB-main += synctex z
    
    WANTLIB-lua += ${COMPILER_LIBCXX} ${MODLUA_WANTLIB} GL Qt5Concurrent
    WANTLIB-lua += Qt5Core Qt5DBus Qt5Gui Qt5Network Qt5Qml Qt5Script
    WANTLIB-lua += Qt5ScriptTools Qt5Test Qt5Widgets Qt5Xml m
    
    WANTLIB-python += ${COMPILER_LIBCXX} GL Qt5Concurrent Qt5Core Qt5DBus
    WANTLIB-python += Qt5Gui Qt5Network Qt5Qml Qt5Script Qt5ScriptTools Qt5Test
    WANTLIB-python += Qt5Widgets Qt5Xml m ${MODPY_WANTLIB}
    
    MULTI_PACKAGES =	-main -lua -python
    
    LIB_DEPENDS =		${MODQT5_LIB_DEPENDS} \
    			x11/qt5/qtdeclarative \
    			x11/qt5/qtscript
    LIB_DEPENDS-main =	${LIB_DEPENDS} \
    			print/poppler,-qt5 \
    			print/texlive/base,-synctex \
    			textproc/hunspell
    LIB_DEPENDS-lua =	${LIB_DEPENDS} \
    			${MODLUA_LIB_DEPENDS}
    LIB_DEPENDS-python =	${LIB_DEPENDS} \
    			${MODPY_LIB_DEPENDS}
    
    RUN_DEPENDS-main =	devel/desktop-file-utils \
    			print/texlive/base>=2018
    RUN_DEPENDS-lua =	editors/texworks,-main
    RUN_DEPENDS-python =	editors/texworks,-main
    
    MODLUA_SA =		Yes
    
    USE_GMAKE =		Yes
    NO_TEST =		Yes
    
    SUBST_VARS +=		MODLUA-VERSION
    
    CONFIGURE_STYLE =	cmake
    CONFIGURE_ARGS +=	-DWITH_PYTHON=ON \
    			-DTeXworks_DIC_DIR=${TRUEPREFIX}/share/mozilla-dicts
    # The handling of the manual install dir is odd.
    CONFIGURE_ARGS +=	-DTeXworks_MAN_DIR=/man/man1
    
    MODCMAKE_POLICY_VERSION_OVERRIDE = Yes
    
    pre-configure:
    	${SUBST_CMD} ${WRKSRC}/CMakeLists.txt
    
    .include <bsd.port.mk>