65 lines
2.1 KiB
Makefile
65 lines
2.1 KiB
Makefile
# $NetBSD: Makefile,v 1.153 2022/06/30 11:18:20 nia Exp $
|
|
#
|
|
# changelog at http://www.texmacs.org/tmweb/about/changes.en.html
|
|
|
|
DISTNAME= TeXmacs-1.99.13-src
|
|
PKGNAME= ${DISTNAME:S/-src//}
|
|
PKGREVISION= 14
|
|
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"
|