[BACK]Return to Makefile CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / editors / TeXmacs

File: [cvs.NetBSD.org] / pkgsrc / editors / TeXmacs / Makefile (download)

Revision 1.154, Wed Oct 26 10:31:22 2022 UTC (3 months ago) by wiz
Branch: MAIN
Changes since 1.153: +2 -2 lines

*: bump PKGREVISION for libunistring shlib major bump

# $NetBSD: Makefile,v 1.154 2022/10/26 10:31:22 wiz Exp $
#
# changelog at http://www.texmacs.org/tmweb/about/changes.en.html

DISTNAME=		TeXmacs-1.99.13-src
PKGNAME=		${DISTNAME:S/-src//}
PKGREVISION=		15
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)

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

#BUILD_TARGET=		TEXMACS

USE_CMAKE=		yes
USE_TOOLS+=		gmake perl:run pkg-config bash
USE_LANGUAGES=		c c++
WRKSRC=			${WRKDIR}/${PKGNAME_NOREV}

REPLACE_PYTHON+=	plugins/mathematica/bin/realpath.py

REPLACE_BASH+=		configure
REPLACE_BASH+=		cmake/CreateBundle.sh.in
REPLACE_BASH+=		plugins/dratex/bin/tm_dratex
REPLACE_BASH+=		plugins/eukleides/bin/tm_eukleides
REPLACE_BASH+=		plugins/eukleides/bin/tm_eukleides.old
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+=		guile
SUBST_STAGE.guile=	pre-configure
SUBST_FILES.guile=	cmake/FindGuile.cmake
SUBST_VARS.guile=	PREFIX

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

LDFLAGS+=	${COMPILER_RPATH_FLAG}${PREFIX}/guile/1.8/lib/

# do not install cmake files
post-install:
	${FIND} ${DESTDIR} -name cmake_install.cmake -type f | ${XARGS} ${RM} -f
	${FIND} ${DESTDIR} -name CMakeFiles -type d | ${XARGS} ${RM} -rf

.include "../../converters/libiconv/buildlink3.mk"
.include "../../databases/shared-mime-info/mimedb.mk"
.include "../../graphics/freetype2/buildlink3.mk"
.include "../../graphics/gnome-icon-theme/buildlink3.mk"
# Building with guile20 almost succeeds.
# Building with guile22 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"
.include "../../mk/bsd.pkg.mk"