texmacs-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Texmacs-dev] CMake build with MacPorts on macOS


From: Darcy Shen
Subject: Re: [Texmacs-dev] CMake build with MacPorts on macOS
Date: Fri, 19 Apr 2019 22:18:55 +0800
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:60.0) Gecko/20100101 Thunderbird/60.5.0

see below.

On 2019/3/14 10:07 下午, address@hidden wrote:
Hello,

This mail shows how to make TeXmacs.app on macOS.
(My macOS is El-Capitan)

I have tried to compile a github version of TeXmacs with cmake.
I'm using MacPorts, so all dependencies are installed with MacPorts.
(MacPorts is a system for compiling, installing, and managing open source 
software)
<https://www.macports.org/>

########################################
# Build dependency
sudo port install cmake
# Library dependencies
sudo port install guile18
sudo port install qt4-mac
# Runtime dependency
sudo port install ghostscript

git clone https://github.com/texmacs/texmacs.git texmacs

cd ./texmacs

mkdir ./build && cd ./build

cmake -DGUILECONFIG_EXECUTABLE=/opt/local/bin/guile18-config 
-DQT_QMAKE_EXECUTABLE=/opt/local/libexec/qt4/bin/qmake 
-DCMAKE_INSTALL_PREFIX=./TeXmacs.app/Contents/Resources ..

# Apply the next patch in order to avoid an error.
#
perl -pi -e 's|#endif // defined TM_CONFIGURE_H|#define GUILE_HEADER_18 
1\n\n$&|' ./src/System/tm_configure.hpp

make -j8

make install

# Execute the following commands in order to make an application-bundle.
#
cp -iRp ../src/Plugins/Cocoa/English.lproj ./TeXmacs.app/Contents/Resources/
cp -ip ../packages/macos/TeXmacs.icns ./TeXmacs.app/Contents/Resources/
cp -ip ../packages/macos/TeXmacs-document.icns ./TeXmacs.app/Contents/Resources/
cp -ip ../packages/macos/PkgInfo ./TeXmacs.app/Contents/
cp -fp ../packages/macos/Info.plist.in ./TeXmacs.app/Contents/Info.plist
perl -pi -e 's/address@hidden@/1.99.9/g' ./TeXmacs.app/Contents/Info.plist
perl -pi -e 's/address@hidden@//g' ./TeXmacs.app/Contents/Info.plist
########################################


The 5 `cp`s and 2 `perl`s are no longer needed. I've updated the CMake build definitions.



I think this shell-script is useful for checking the current version of TeXmacs.

Thanks,
Tomio Arisaka


_______________________________________________
Texmacs-dev mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/texmacs-dev





reply via email to

[Prev in Thread] Current Thread [Next in Thread]