diff options
author | Parthasarathy Tirumalai <parthasarathy.tirumalai@desy.de> | 2023-06-14 18:38:48 +0200 |
---|---|---|
committer | Parthasarathy Tirumalai <parthasarathy.tirumalai@desy.de> | 2023-06-14 18:38:48 +0200 |
commit | 4003362a3142879fac2bbb4677dd4ccc597587e5 (patch) | |
tree | 5694cb09965b26af3b749b48a4bcc76fe53501d9 /crystfel.rb | |
parent | a6624e97790d4d101d77427c06a8dc09da86b3ea (diff) |
Enable meson wrap system and build dependent libraries.
Diffstat (limited to 'crystfel.rb')
-rw-r--r-- | crystfel.rb | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/crystfel.rb b/crystfel.rb index 3123c514..250fda98 100644 --- a/crystfel.rb +++ b/crystfel.rb @@ -18,7 +18,9 @@ class Crystfel < Formula depends_on 'meson' => :build depends_on 'ninja' => :build depends_on 'pkg-config' => :build - depends_on 'argp-standalone' => :build + if OS.mac? + depends_on 'argp-standalone' => :build + end depends_on 'cairo' depends_on 'fftw' depends_on 'gdk-pixbuf' @@ -31,9 +33,13 @@ class Crystfel < Formula def install args = std_meson_args + args.delete_at(args.index("--wrap-mode=nofallback")) + puts args if OS.mac? args << "-Dc_args=-I/opt/argp-standalone/include" + args << "-Dcpp_args=-I/opt/argp-standalone/include" args << "-Dc_link_args=-L/usr/local/opt/argp-standalone/lib -largp" + args << "-Dcpp_link_args=-L/usr/local/opt/argp-standalone/lib -largp" end system 'meson', 'setup', *args, 'build' system 'ninja','-C','build' |