File: pkgconf.patch

package info (click to toggle)
fortran-jonquil 0.3.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 364 kB
  • sloc: f90: 1,175; python: 23; makefile: 13; ansic: 9
file content (35 lines) | stat: -rw-r--r-- 857 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
Description: Fix search paths in pkg-config files; look in  $fmoddir
Author: Alastair McKinstry <mckinstry@debian.org>
Last-Updated: 2025-09-19
Forwarded: no


--- a/meson.build
+++ b/meson.build
@@ -20,6 +20,7 @@
   default_options: [
     'buildtype=debugoptimized',
     'default_library=both',
+    'pkgconfig.relocatable=true',
   ],
 )
 install = not (meson.is_subproject() and get_option('default_library') == 'static')
@@ -32,6 +33,9 @@
 srcs = []
 subdir('src')
 
+# meson is brain-dead. Don't look in ${includdir} 
+fmoddir = '../' + get_option('libdir') + '/fortran/gfortran-mod-16/jonquil'
+
 # Jonquil library target
 jonquil_lib = library(
   meson.project_name(),
@@ -72,7 +76,7 @@
   pkg.generate(
     jonquil_lib,
     description: 'Bringing TOML blooms to JSON land',
-    subdirs: ['', module_id],
+    subdirs: [fmoddir],
   )
 endif