diff options
author | Daniel Eklöf <daniel@ekloef.se> | 2024-07-18 18:21:11 +0200 |
---|---|---|
committer | Daniel Eklöf <daniel@ekloef.se> | 2024-07-18 18:21:43 +0200 |
commit | d91789cf42d88852709bfc62fab5f242a36fdf84 (patch) | |
tree | 6365fc20514ccda860ea7a64382f7876772ddb14 /PKGBUILD | |
parent | c89bbfe6012275afe500c0c862329f37c4021d73 (diff) | |
download | wbg-d91789cf42d88852709bfc62fab5f242a36fdf84.tar.gz |
meson/nanosvg: add support for linking against system's nanosvg
Nanosvg upstream is header only, and does not support/provide a
library, neither shared nor static.
However, most distributions still provide a nanosvg package with
either a static library, or shared. Arch does the latter.
So, let's support building against a system provided nanosvg library.
The default is still to use bundled version, but this can be changed
with
-Dsystem-nanosvg=enabled
when configuring the build tree.
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,12 +1,12 @@ pkgname=wbg -pkgver=1.2.0 +pkgver=1.2.0.r13.gd687493 pkgrel=1 pkgdesc="Super simple wallpaper application" arch=('x86_64' 'aarch64') url=https://codeberg.org/dnkl/wbg license=(mit) makedepends=('meson' 'ninja' 'wayland-protocols' 'tllist>=1.0.1') -depends=('wayland' 'pixman' 'libjpeg-turbo' 'libpng' 'libwebp' 'libjxl') +depends=('wayland' 'pixman' 'nanosvg' 'libjpeg-turbo' 'libpng' 'libwebp' 'libjxl') source=() changelog=CHANGELOG.md @@ -16,7 +16,7 @@ pkgver() { } build() { - meson --prefix=/usr --buildtype=release --wrap-mode=nofallback .. + meson --prefix=/usr --buildtype=release --wrap-mode=nofallback -Dsystem-nanosvg=enabled .. ninja } |