Skip to content

Commit

Permalink
Meson: specify default system directories in machine files (#227)
Browse files Browse the repository at this point in the history
  • Loading branch information
kleisauke authored Mar 24, 2024
1 parent aaff2e7 commit 6e83482
Show file tree
Hide file tree
Showing 10 changed files with 37 additions and 2 deletions.
3 changes: 1 addition & 2 deletions build/lin.sh
Original file line number Diff line number Diff line change
Expand Up @@ -379,8 +379,7 @@ mkdir ${DEPS}/fontconfig
$CURL https://www.freedesktop.org/software/fontconfig/release/fontconfig-${VERSION_FONTCONFIG}.tar.xz | tar xJC ${DEPS}/fontconfig --strip-components=1
cd ${DEPS}/fontconfig
meson setup _build --default-library=static --buildtype=release --strip --prefix=${TARGET} ${MESON} \
-Dcache-build=disabled -Ddoc=disabled -Dnls=disabled -Dtests=disabled -Dtools=disabled \
${LINUX:+--sysconfdir=/etc} ${DARWIN:+--sysconfdir=/usr/local/etc}
-Dcache-build=disabled -Ddoc=disabled -Dnls=disabled -Dtests=disabled -Dtools=disabled
meson install -C _build --tag devel

mkdir ${DEPS}/harfbuzz
Expand Down
4 changes: 4 additions & 0 deletions platforms/darwin-arm64v8/meson.ini
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,8 @@ objcpp = 'clang++'
strip = ['strip', '-x']

[built-in options]
datadir = '/usr/local/share'
localedir = '/usr/local/share/locale'
sysconfdir = '/usr/local/etc'
localstatedir = '/usr/local/var'
wrap_mode = 'nofallback'
4 changes: 4 additions & 0 deletions platforms/darwin-x64/meson.ini
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,8 @@
strip = ['strip', '-x']

[built-in options]
datadir = '/usr/local/share'
localedir = '/usr/local/share/locale'
sysconfdir = '/usr/local/etc'
localstatedir = '/usr/local/var'
wrap_mode = 'nofallback'
4 changes: 4 additions & 0 deletions platforms/linux-arm64v8/meson.ini
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,8 @@ pkg-config = ['pkg-config', '--static']

[built-in options]
libdir = 'lib'
datadir = '/usr/share'
localedir = '/usr/share/locale'
sysconfdir = '/etc'
localstatedir = '/var'
wrap_mode = 'nofallback'
4 changes: 4 additions & 0 deletions platforms/linux-armv6/meson.ini
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,8 @@ pkg-config = ['arm-linux-gnueabihf-pkg-config', '--static']

[built-in options]
libdir = 'lib'
datadir = '/usr/share'
localedir = '/usr/share/locale'
sysconfdir = '/etc'
localstatedir = '/var'
wrap_mode = 'nofallback'
4 changes: 4 additions & 0 deletions platforms/linux-armv7/meson.ini
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,8 @@ pkg-config = ['arm-linux-gnueabihf-pkg-config', '--static']

[built-in options]
libdir = 'lib'
datadir = '/usr/share'
localedir = '/usr/share/locale'
sysconfdir = '/etc'
localstatedir = '/var'
wrap_mode = 'nofallback'
4 changes: 4 additions & 0 deletions platforms/linux-s390x/meson.ini
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,8 @@ pkg-config = ['s390x-linux-gnu-pkg-config', '--static']

[built-in options]
libdir = 'lib'
datadir = '/usr/share'
localedir = '/usr/share/locale'
sysconfdir = '/etc'
localstatedir = '/var'
wrap_mode = 'nofallback'
4 changes: 4 additions & 0 deletions platforms/linux-x64/meson.ini
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,8 @@ pkg-config = ['pkg-config', '--static']

[built-in options]
libdir = 'lib'
datadir = '/usr/share'
localedir = '/usr/share/locale'
sysconfdir = '/etc'
localstatedir = '/var'
wrap_mode = 'nofallback'
4 changes: 4 additions & 0 deletions platforms/linuxmusl-arm64v8/meson.ini
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,8 @@ has_function_inotify_init1 = false

[built-in options]
libdir = 'lib'
datadir = '/usr/share'
localedir = '/usr/share/locale'
sysconfdir = '/etc'
localstatedir = '/var'
wrap_mode = 'nofallback'
4 changes: 4 additions & 0 deletions platforms/linuxmusl-x64/meson.ini
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,8 @@ pkg-config = ['pkg-config', '--static']
has_function_inotify_init1 = false

[built-in options]
datadir = '/usr/share'
localedir = '/usr/share/locale'
sysconfdir = '/etc'
localstatedir = '/var'
wrap_mode = 'nofallback'

0 comments on commit 6e83482

Please sign in to comment.