File:  [cvs.NetBSD.org] / pkgsrc / editors / TeXmacs / Makefile
Revision 1.167: download - view: text, annotated - select for diffs
Sat Apr 6 08:05:10 2024 UTC (13 months, 1 week ago) by wiz
Branches: MAIN
CVS tags: HEAD
* recursive bump for libxkbcommon 1.7.0

Marc Baudoin reported problems with using old binary packages
with the new libkxbcommon, so force everything to 1.7.0

# $NetBSD: Makefile,v 1.167 2024/04/06 08:05:10 wiz Exp $
#
# changelog at http://www.texmacs.org/tmweb/about/changes.en.html

DISTNAME=		TeXmacs-2.1.2-src
PKGNAME=		${DISTNAME:S/-src//}
PKGREVISION=		3
CATEGORIES=		editors
MASTER_SITES=		ftp://ftp.texmacs.org/pub/TeXmacs/tmftp/source/
MASTER_SITES+=		http://www.texmacs.org/Download/ftp/tmftp/source/

MAINTAINER=		pkgsrc-users@NetBSD.org
HOMEPAGE=		http://www.texmacs.org/
COMMENT=		GNU TeXmacs (free scientific text editor)
LICENSE=		gnu-gpl-v3

DEPENDS+=		ps2pkm>=1.5:../../fonts/ps2pkm

USE_TOOLS+=		gmake perl:run pkg-config bash:run
USE_LANGUAGES=		c c++
USE_CXX_FEATURES=	c++11

#Use Qt5 on all platforms
CMAKE_CONFIGURE_ARGS+=	-DTEXMACS_GUI=Qt5

REPLACE_PYTHON+=	plugins/mathematica/bin/realpath.py
REPLACE_PYTHON+=	plugins/eukleides/python/tm_eukleides.py

REPLACE_BASH+=		configure
REPLACE_BASH+=		cmake/CreateBundle.sh.in
REPLACE_BASH+=		plugins/matlab/bin/tm_matlab
REPLACE_BASH+=		plugins/mupad/bin/tm_mupad_help
REPLACE_BASH+=		plugins/texgraph/bin/tm_texgraph

REPLACE_PERL+=		plugins/feynmf/bin/bbox_add.pl

SUBST_CLASSES+=		bash
SUBST_SED.bash+=	-e "s,/bin/bash,${PREFIX}/bin/bash,"
SUBST_FILES.bash+=	src/Texmacs/Texmacs/texmacs.cpp
SUBST_FILES.bash+=	plugins/mupad/bin/tm_mupad
SUBST_MESSAGE.bash=	Fixing hardcoded bash path in ${SUBST_FILES.bash}
SUBST_STAGE.bash=	pre-configure

SUBST_CLASSES+=		pyexec
SUBST_SED.pyexec+=	-e "s,python3,python${PYVERSSUFFIX},"
SUBST_FILES.pyexec+=	TeXmacs/progs/kernel/library/base.scm
SUBST_MESSAGE.pyexec=	Fixing name of python executable in ${SUBST_FILES.pyexec}
SUBST_STAGE.pyexec=	pre-configure

.include "../../devel/cmake/build.mk"

.include "../../converters/libiconv/buildlink3.mk"
.include "../../databases/shared-mime-info/mimedb.mk"
.include "../../databases/sqlite3/buildlink3.mk"
.include "../../devel/gmp/buildlink3.mk"
.include "../../graphics/freetype2/buildlink3.mk"
.include "../../graphics/gnome-icon-theme/buildlink3.mk"
.include "../../graphics/hicolor-icon-theme/buildlink3.mk"
# Builds with guile20 but crashes with it
# Building with guile22 of guile30 fails (apparent use of withdrawn interfaces).
.include "../../lang/guile18/buildlink3.mk"
.include "../../lang/python/application.mk"
.include "../../print/ghostscript/buildlink3.mk"
.include "../../x11/qt5-qtbase/buildlink3.mk"
.if ${OPSYS} == "Darwin"
.include "../../x11/qt5-qtmacextras/buildlink3.mk"
.endif
.include "../../x11/qt5-qtsvg/buildlink3.mk"
.include "../../mk/jpeg.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"

CVSweb <webmaster@jp.NetBSD.org>