gplugin/gplugin

Use a different (hopefully correct) Perl path on FreeBSD.
develop
2020-02-29, Elliott Sales de Andrade
43e4a29d523e
Parents cfb5cfb23db4
Children 757e8645d9e0
Use a different (hopefully correct) Perl path on FreeBSD.

Also, switch to expanded versions of those variable (*archexp).
--- a/perl/meson.build Sat Feb 29 03:51:24 2020 -0500
+++ b/perl/meson.build Sat Feb 29 18:56:07 2020 -0500
@@ -30,9 +30,14 @@
link_args : run_command(PERL, '-MExtUtils::Embed', '-e', 'ldopts', check : true).stdout().split(),
)
+ if host_machine.system() == 'freebsd'
+ perl_arch = 'sitearchexp'
+ else
+ perl_arch = 'vendorarchexp'
+ endif
perl_arch = run_command(PERL,
'-MConfig',
- '-e', 'if ($Config{vendorarch}) { print "$Config{vendorarch}" } else { exit 1 }',
+ '-e', 'if ($Config{@0@}) { print "$Config{@0@}" } else { exit 1 }'.format(perl_arch),
check : true).stdout().split()
glib_perl_incdir = '-I@0@/Glib/Install'.format(perl_arch[0])
glib_perl_libdir = '@0@/auto/Glib/'.format(perl_arch[0])