Skip to content

Commit dda7112

Browse files
authored
Merge pull request #556 from matterhorn103/update-flatpak-manifest
Build OpenBabel as separate module like in actual Flatpak
2 parents 1ee8070 + dfa1d56 commit dda7112

File tree

1 file changed

+22
-2
lines changed

1 file changed

+22
-2
lines changed

flatpak/org.openchemistry.Avogadro2.yaml

+22-2
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,25 @@ modules:
3434
# Would rather use 4d6cb08189cf7336821f04090b612baa2ca6a90d (same commit as openSUSE
3535
# Tumbleweed) as known to be good, but older commits like that don't seem to compile
3636
commit: 7c73dd7de7c4f14379b781418c6e947ad464c818
37+
38+
- name: openbabel
39+
buildsystem: cmake-ninja
40+
builddir: true
41+
config-opts:
42+
# Match the way Avogadro builds Open Babel
43+
- -DCMAKE_BUILD_TYPE=Release
44+
- -DENABLE_TESTS=OFF
45+
- -DBUILD_GUI=OFF
46+
- -DOPTIMIZE_NATIVE=OFF
47+
- -DOB_USE_PREBUILT_BINARIES=OFF
48+
- -DENABLE_VERSIONED_FORMATS=OFF
49+
- -DWITH_JSON=ON
50+
- -DWITH_COORDGEN=OFF
51+
- -DWITH_MAEPARSER=OFF
52+
sources:
53+
- type: git
54+
url: https://github.com/openbabel/openbabel.git
55+
commit: 32cf131444c1555c749b356dab44fb9fe275271f
3756

3857
- name: avogadro2
3958
buildsystem: cmake-ninja
@@ -47,6 +66,7 @@ modules:
4766
- -DBUILD_MOLEQUEUE=OFF
4867
- -DQT_VERSION=6
4968
- -DDOWNLOAD_TO_SOURCE_DIR=ON
69+
- -DUSE_SYSTEM_OPENBABEL=ON
5070
sources:
5171
# Avogadro stuff all already collected together as part of GitHub Actions
5272
# This means that if using this to build the Flatpak locally, the openchemistry repo and
@@ -58,8 +78,8 @@ modules:
5878
# Now fetch third-party stuff where the source is expected in `openchemistry/thirdparty`
5979
# VTK
6080
- type: archive
61-
url: https://www.vtk.org/files/release/9.3/VTK-9.3.0.tar.gz
62-
sha256: fdc7b9295225b34e4fdddc49cd06e66e94260cb00efee456e0f66568c9681be9
81+
url: https://github.com/Kitware/VTK/archive/4f02ae83179c6a1542ac3c335c73dea976578c63.tar.gz
82+
sha256: 2d2da63dc660016628fc41c3a201e24d49a7e67b0d5d6fbbe655fb23f5099929
6383
dest: thirdparty/VTK
6484

6585
# Other third-party sources would normally be downloaded by Avogadro build on the fly

0 commit comments

Comments
 (0)