summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--abstract/meson.build24
-rw-r--r--desktop/meson.build27
-rw-r--r--meson.build19
-rw-r--r--nature/meson.build30
-rw-r--r--po/meson.build1
5 files changed, 101 insertions, 0 deletions
diff --git a/abstract/meson.build b/abstract/meson.build
new file mode 100644
index 0000000..e326d4f
--- /dev/null
+++ b/abstract/meson.build
@@ -0,0 +1,24 @@
+# replace @datadir@ and translate
+metadata = 'mate-abstract.xml'
+i18n.merge_file(metadata,
+ input: configure_file(
+ input: metadata + '.in.in',
+ output: metadata + '.in',
+ configuration : conf
+ ),
+ output: metadata,
+ po_dir: '../po',
+ data_dirs: '..',
+ install: true,
+ install_dir: metadatadir
+ )
+
+backgrounds = [
+ 'Arc-Colors-Transparent-Wallpaper.png',
+ 'Flow.png',
+ 'Gulp.png',
+ 'Silk.png',
+ 'Spring.png',
+ 'Waves.png',
+ ]
+install_data(backgrounds, install_dir: join_paths(backgrounddir, 'abstract'))
diff --git a/desktop/meson.build b/desktop/meson.build
new file mode 100644
index 0000000..7b9d2fe
--- /dev/null
+++ b/desktop/meson.build
@@ -0,0 +1,27 @@
+# replace @datadir@ and translate
+metadata = 'mate-desktop.xml'
+i18n.merge_file(metadata,
+ input: configure_file(
+ input: metadata + '.in.in',
+ output: metadata + '.in',
+ configuration : conf
+ ),
+ output: metadata,
+ po_dir: '../po',
+ data_dirs: '..',
+ install: true,
+ install_dir: metadatadir
+ )
+
+backgrounds = [
+ 'Float-into-MATE.png',
+ 'GreenTraditional.jpg',
+ 'MATE-Stripes-Dark.png',
+ 'MATE-Stripes-Light.png',
+ 'Stripes.png',
+ 'Ubuntu-Mate-Cold-no-logo.png',
+ 'Ubuntu-Mate-Dark-no-logo.png',
+ 'Ubuntu-Mate-Radioactive-no-logo.png',
+ 'Ubuntu-Mate-Warm-no-logo.png',
+]
+install_data(backgrounds, install_dir: join_paths(backgrounddir, 'desktop'))
diff --git a/meson.build b/meson.build
new file mode 100644
index 0000000..943984b
--- /dev/null
+++ b/meson.build
@@ -0,0 +1,19 @@
+project('mate-backgrounds',
+ version : '1.22.0',
+ meson_version: '>= 0.41.0'
+ )
+
+i18n = import('i18n')
+
+prefix = get_option('prefix')
+datadir = join_paths(prefix, get_option('datadir'))
+backgrounddir = join_paths(datadir, 'backgrounds', 'mate')
+metadatadir = join_paths(datadir, 'mate-background-properties')
+
+conf = configuration_data()
+conf.set('datadir', datadir)
+
+subdir('abstract')
+subdir('desktop')
+subdir('nature')
+subdir('po')
diff --git a/nature/meson.build b/nature/meson.build
new file mode 100644
index 0000000..47799b4
--- /dev/null
+++ b/nature/meson.build
@@ -0,0 +1,30 @@
+# replace @datadir@ and translate
+metadata = 'mate-nature.xml'
+i18n.merge_file(metadata,
+ input: configure_file(
+ input: metadata + '.in.in',
+ output: metadata + '.in',
+ configuration : conf
+ ),
+ output: metadata,
+ po_dir: '../po',
+ data_dirs: '..',
+ install: true,
+ install_dir: metadatadir
+ )
+
+backgrounds = [
+ 'Aqua.jpg',
+ 'Blinds.jpg',
+ 'Dune.jpg',
+ 'FreshFlower.jpg',
+ 'Garden.jpg',
+ 'GreenMeadow.jpg',
+ 'LadyBird.jpg',
+ 'RainDrops.jpg',
+ 'Storm.jpg',
+ 'TwoWings.jpg',
+ 'Wood.jpg',
+ 'YellowFlower.jpg',
+]
+install_data(backgrounds, install_dir: join_paths(backgrounddir, 'nature'))
diff --git a/po/meson.build b/po/meson.build
new file mode 100644
index 0000000..6309e21
--- /dev/null
+++ b/po/meson.build
@@ -0,0 +1 @@
+i18n.gettext(meson.project_name(), preset: 'glib', data_dirs: '..')