commit
5e68d13ed3
8 changed files with 188 additions and 34 deletions
@ -1,3 +1,10 @@ |
||||
macdylibbundler |
||||
Xournal++.app |
||||
|
||||
gtk-osx-build-setup.sh |
||||
tmp-jhbuild-revision |
||||
poppler-* |
||||
poppler.tar.xz |
||||
openjpeg* |
||||
gtk-mac-bundler |
||||
.xournalpp* |
||||
*.zip |
||||
|
||||
@ -0,0 +1,32 @@ |
||||
## Build Xournal++ .app |
||||
Do not install macports or homebrew. If you have installed it, you need to |
||||
create a new user, and use this for the whole process. jhbuild does not work, |
||||
if there is such an environment installed. |
||||
|
||||
### Make sure the Development environement is installed |
||||
Open a Terminal, and type in **git**, confirm popup from Appstore with "Install" to install development tools. |
||||
|
||||
### Build GTK |
||||
Execute in this folder. |
||||
````bash |
||||
./build-gtk3.sh |
||||
```` |
||||
|
||||
The build will fail. After first failure (missing python module six) |
||||
Download from here: https://pypi.org/project/six/ |
||||
Execute |
||||
````bash |
||||
$HOME/gtk/inst/bin/python setup.py install |
||||
```` |
||||
|
||||
### Build Xournal++ |
||||
````bash |
||||
cmake -DCMAKE_INSTALL_PREFIX:PATH=$HOME/gtk/inst -DENABLE_MATHTEX=OFF .. |
||||
make -j 4 |
||||
make install |
||||
```` |
||||
|
||||
### Build App |
||||
````bash |
||||
./build-app.sh |
||||
```` |
||||
@ -0,0 +1,12 @@ |
||||
export PATH="$HOME/.local/bin:$PATH" |
||||
|
||||
# missing six python lib: |
||||
# after first failure download, unpack and install with |
||||
# /Users/yourname/gtk/inst/bin/python setup.py install |
||||
|
||||
curl https://gitlab.gnome.org/GNOME/gtk-osx/raw/master/gtk-osx-build-setup.sh -o gtk-osx-build-setup.sh |
||||
chmod +x gtk-osx-build-setup.sh |
||||
./gtk-osx-build-setup.sh |
||||
|
||||
jhbuild bootstrap |
||||
jhbuild build python meta-gtk-osx-bootstrap meta-gtk-osx-gtk3 |
||||
@ -0,0 +1,29 @@ |
||||
export PATH="$HOME/.local/bin:$PATH" |
||||
|
||||
curl -L https://github.com/uclouvain/openjpeg/archive/v2.3.0.tar.gz -o openjpeg.tar.gz |
||||
tar xf openjpeg.tar.gz |
||||
cd openjpeg-* |
||||
mkdir build |
||||
cd build |
||||
echo "Build OpenJpeg" |
||||
pwd |
||||
$HOME/gtk/inst/bin/cmake -DCMAKE_INSTALL_PREFIX:PATH=$HOME/gtk/inst .. |
||||
make -j8 |
||||
make install |
||||
cd .. |
||||
cd .. |
||||
|
||||
export LIBRARY_PATH="$HOME/gtk/inst/lib:$LIBRARY_PATH" |
||||
|
||||
curl https://poppler.freedesktop.org/poppler-0.72.0.tar.xz -o poppler.tar.xz |
||||
tar xf poppler.tar.xz |
||||
cd poppler-* |
||||
mkdir build |
||||
cd build |
||||
echo "Build Poppler" |
||||
pwd |
||||
$HOME/gtk/inst/bin/cmake -DCMAKE_INSTALL_PREFIX:PATH=$HOME/gtk/inst .. |
||||
make -j8 |
||||
make install |
||||
cd .. |
||||
cd .. |
||||
@ -0,0 +1,81 @@ |
||||
<?xml version="1.0" standalone="no"?> <!--*- mode: xml -*--> |
||||
<app-bundle> |
||||
|
||||
<meta> |
||||
<prefix name="default">${env:HOME}/gtk/inst</prefix> |
||||
<destination overwrite="yes">.</destination> |
||||
|
||||
<!-- Comment this out to keep the install names in binaries --> |
||||
<run-install-name-tool/> |
||||
|
||||
<!-- Optionally specify a launcher script to use. If the |
||||
application sets up everything needed itself, like |
||||
environment variable, linker paths, etc, a launcher script is |
||||
not needed. If the source path is left out, the default |
||||
script will be used. |
||||
--> |
||||
<launcher-script></launcher-script > |
||||
|
||||
<gtk>gtk+-3.0</gtk> |
||||
</meta> |
||||
|
||||
<plist>${project}/Info.plist</plist> |
||||
|
||||
<main-binary>${prefix}/bin/xournalpp</main-binary> |
||||
|
||||
<!-- Copy in the input methods. Dunno if they actually work with |
||||
OSX. Note the ${gtkdir} macro, which expands to the correct |
||||
library subdirectory for the specified gtk version. --> |
||||
<binary> |
||||
${prefix}/lib/${gtkdir}/${pkg:${gtk}:gtk_binary_version}/immodules/*.so |
||||
</binary> |
||||
|
||||
<!-- And the print backends --> |
||||
<binary> |
||||
${prefix}/lib/${gtkdir}/${pkg:${gtk}:gtk_binary_version}/printbackends/*.so |
||||
</binary> |
||||
|
||||
<!-- Starting with 2.24, gdk-pixbuf installs into its own directory. --> |
||||
<binary> |
||||
${prefix}/lib/gdk-pixbuf-2.0/${pkg:gdk-pixbuf-2.0:gdk_pixbuf_binary_version}/loaders/*.so |
||||
</binary> |
||||
|
||||
<!-- Poppler --> |
||||
<binary> |
||||
${prefix}/lib/libpoppler-glib*.dynlib |
||||
</binary> |
||||
|
||||
<!-- Translation filenames, one for each program or library that you |
||||
want to copy in to the bundle. The "dest" attribute is |
||||
optional, as usual. Bundler will find all translations of that |
||||
library/program under the indicated directory and copy them.--> |
||||
<translations name="gtk30"> |
||||
${prefix}/share/locale |
||||
</translations> |
||||
|
||||
|
||||
<!-- Data to copy in, usually Glade/UI files, images, sounds files |
||||
etc. The destination inside the bundle can be specified if the |
||||
files should end up at a different location, by using the |
||||
"dest" property. The destination must then start with the macro |
||||
"${bundle}", which refers to the bundle root directory. |
||||
--> |
||||
<!-- data> |
||||
${prefix}/share/gtk3-demo |
||||
</data --> |
||||
|
||||
<!-- Copy in the themes data. You may want to trim this to save space |
||||
in your bundle. --> |
||||
<data> |
||||
${prefix}/share/themes |
||||
</data> |
||||
|
||||
<data> |
||||
${prefix}/share/icons |
||||
</data> |
||||
|
||||
<data dest="${bundle}/Contents/Resources"> |
||||
${project}/icon/xournalpp.icns |
||||
</data> |
||||
|
||||
</app-bundle> |
||||
Loading…
Reference in new issue