diff options
| -rw-r--r-- | meta-oe/recipes-graphics/fbida/fbida_git.bb | 6 | ||||
| -rw-r--r-- | meta-oe/recipes-graphics/fbida/files/0001-meson.build-make-fbpdf-build-optional.patch | 66 |
2 files changed, 70 insertions, 2 deletions
diff --git a/meta-oe/recipes-graphics/fbida/fbida_git.bb b/meta-oe/recipes-graphics/fbida/fbida_git.bb index 784485052d..523a7865ce 100644 --- a/meta-oe/recipes-graphics/fbida/fbida_git.bb +++ b/meta-oe/recipes-graphics/fbida/fbida_git.bb | |||
| @@ -8,7 +8,7 @@ SECTION = "utils" | |||
| 8 | LICENSE = "GPL-2.0-only" | 8 | LICENSE = "GPL-2.0-only" |
| 9 | LIC_FILES_CHKSUM = "file://COPYING;md5=e8feb78a32950a909621bbb51f634b39" | 9 | LIC_FILES_CHKSUM = "file://COPYING;md5=e8feb78a32950a909621bbb51f634b39" |
| 10 | 10 | ||
| 11 | DEPENDS = "virtual/libiconv jpeg fontconfig freetype libexif libdrm pixman udev libinput poppler libepoxy cairo" | 11 | DEPENDS = "virtual/libiconv jpeg fontconfig freetype libexif libdrm pixman udev libinput cairo" |
| 12 | 12 | ||
| 13 | PV = "2.14+git${SRCPV}" | 13 | PV = "2.14+git${SRCPV}" |
| 14 | SRC_URI = "git://github.com/kraxel/fbida;protocol=https;branch=master \ | 14 | SRC_URI = "git://github.com/kraxel/fbida;protocol=https;branch=master \ |
| @@ -18,6 +18,7 @@ SRC_URI = "git://github.com/kraxel/fbida;protocol=https;branch=master \ | |||
| 18 | file://0001-meson.build-install-fbgs-shell-script.patch \ | 18 | file://0001-meson.build-install-fbgs-shell-script.patch \ |
| 19 | file://0002-meson.build-add-features-options-for-png-gif-tiff-we.patch \ | 19 | file://0002-meson.build-add-features-options-for-png-gif-tiff-we.patch \ |
| 20 | file://0003-meson.build-do-not-require-xkbcommon.patch \ | 20 | file://0003-meson.build-do-not-require-xkbcommon.patch \ |
| 21 | file://0001-meson.build-make-fbpdf-build-optional.patch \ | ||
| 21 | " | 22 | " |
| 22 | SRCREV = "eb769e3d7f4a073d4c37ed524ebd5017c6a578f5" | 23 | SRCREV = "eb769e3d7f4a073d4c37ed524ebd5017c6a578f5" |
| 23 | S = "${WORKDIR}/git" | 24 | S = "${WORKDIR}/git" |
| @@ -27,12 +28,13 @@ inherit meson pkgconfig features_check | |||
| 27 | # Depends on libepoxy | 28 | # Depends on libepoxy |
| 28 | REQUIRED_DISTRO_FEATURES = "opengl" | 29 | REQUIRED_DISTRO_FEATURES = "opengl" |
| 29 | 30 | ||
| 30 | PACKAGECONFIG ??= "gif png" | 31 | PACKAGECONFIG ??= "gif png pdf" |
| 31 | PACKAGECONFIG[gif] = "-Dgif=enabled,-Dgif=disabled,giflib" | 32 | PACKAGECONFIG[gif] = "-Dgif=enabled,-Dgif=disabled,giflib" |
| 32 | PACKAGECONFIG[png] = "-Dpng=enabled,-Dpng=disabled,libpng" | 33 | PACKAGECONFIG[png] = "-Dpng=enabled,-Dpng=disabled,libpng" |
| 33 | PACKAGECONFIG[tiff] = "-Dtiff=enabled,-Dtiff=disabled,tiff" | 34 | PACKAGECONFIG[tiff] = "-Dtiff=enabled,-Dtiff=disabled,tiff" |
| 34 | PACKAGECONFIG[motif] = "-Dmotif=enabled,-Dmotif=disabled,libx11 libxext libxpm libxt openmotif" | 35 | PACKAGECONFIG[motif] = "-Dmotif=enabled,-Dmotif=disabled,libx11 libxext libxpm libxt openmotif" |
| 35 | PACKAGECONFIG[webp] = "-Dwebp=enabled,-Dwebp=disabled,libwebp" | 36 | PACKAGECONFIG[webp] = "-Dwebp=enabled,-Dwebp=disabled,libwebp" |
| 37 | PACKAGECONFIG[pdf] = "-Dpdf=enabled,-Dpdf=disabled,poppler libepoxy" | ||
| 36 | 38 | ||
| 37 | CFLAGS += "${@bb.utils.contains('DISTRO_FEATURES', 'x11', '', '-DEGL_NO_X11=1', d)}" | 39 | CFLAGS += "${@bb.utils.contains('DISTRO_FEATURES', 'x11', '', '-DEGL_NO_X11=1', d)}" |
| 38 | 40 | ||
diff --git a/meta-oe/recipes-graphics/fbida/files/0001-meson.build-make-fbpdf-build-optional.patch b/meta-oe/recipes-graphics/fbida/files/0001-meson.build-make-fbpdf-build-optional.patch new file mode 100644 index 0000000000..304c6600ca --- /dev/null +++ b/meta-oe/recipes-graphics/fbida/files/0001-meson.build-make-fbpdf-build-optional.patch | |||
| @@ -0,0 +1,66 @@ | |||
| 1 | From c00a155e90a9b22bd6ab5fa5407bb9923ee16ca0 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: "Meyer, Wolfgang" <Wolfgang.Meyer@gossenmetrawatt.com> | ||
| 3 | Date: Fri, 16 Sep 2022 18:45:58 +0200 | ||
| 4 | Subject: [PATCH] meson.build: make fbpdf build optional | ||
| 5 | |||
| 6 | Upstream-Status: Pending | ||
| 7 | Signed-off-by: "Meyer, Wolfgang" <Wolfgang.Meyer@gossenmetrawatt.com> | ||
| 8 | --- | ||
| 9 | meson.build | 22 ++++++++++++---------- | ||
| 10 | meson_options.txt | 1 + | ||
| 11 | 2 files changed, 13 insertions(+), 10 deletions(-) | ||
| 12 | |||
| 13 | diff --git a/meson.build b/meson.build | ||
| 14 | index 6b3daf3..289d1ec 100644 | ||
| 15 | --- a/meson.build | ||
| 16 | +++ b/meson.build | ||
| 17 | @@ -15,11 +15,11 @@ x11resdir = x11resrun.stdout().strip() | ||
| 18 | |||
| 19 | # pkg-config deps | ||
| 20 | pixman_dep = dependency('pixman-1') | ||
| 21 | -poppler_dep = dependency('poppler-glib') | ||
| 22 | +poppler_dep = dependency('poppler-glib', required: get_option('pdf')) | ||
| 23 | cairo_dep = dependency('cairo') | ||
| 24 | drm_dep = dependency('libdrm') | ||
| 25 | -gbm_dep = dependency('gbm') | ||
| 26 | -epoxy_dep = dependency('epoxy') | ||
| 27 | +gbm_dep = dependency('gbm', required: get_option('pdf')) | ||
| 28 | +epoxy_dep = dependency('epoxy', required: get_option('pdf')) | ||
| 29 | exif_dep = dependency('libexif') | ||
| 30 | png_dep = dependency('libpng', required: get_option('png')) | ||
| 31 | tiff_dep = dependency('libtiff-4', required: get_option('tiff')) | ||
| 32 | @@ -132,13 +132,15 @@ fbpdf_deps = [ drm_dep, gbm_dep, epoxy_dep, | ||
| 33 | pixman_dep, poppler_dep, cairo_dep, | ||
| 34 | udev_dep, input_dep ] | ||
| 35 | |||
| 36 | -executable('fbpdf', | ||
| 37 | - sources : fbpdf_srcs, | ||
| 38 | - dependencies : fbpdf_deps, | ||
| 39 | - install : true) | ||
| 40 | -install_data('fbgs', | ||
| 41 | - install_dir : get_option('bindir'), | ||
| 42 | - install_mode : 'rwxr--r--') | ||
| 43 | +if get_option('pdf').enabled() | ||
| 44 | + executable('fbpdf', | ||
| 45 | + sources : fbpdf_srcs, | ||
| 46 | + dependencies : fbpdf_deps, | ||
| 47 | + install : true) | ||
| 48 | + install_data('fbgs', | ||
| 49 | + install_dir : get_option('bindir'), | ||
| 50 | + install_mode : 'rwxr--r--') | ||
| 51 | +endif | ||
| 52 | |||
| 53 | # build fbcon | ||
| 54 | fbcon_srcs = [ 'fbcon.c', 'drmtools.c', 'fbtools.c', 'gfx.c', 'vt.c', 'kbd.c' ] | ||
| 55 | diff --git a/meson_options.txt b/meson_options.txt | ||
| 56 | index ce37188..74699ab 100644 | ||
| 57 | --- a/meson_options.txt | ||
| 58 | +++ b/meson_options.txt | ||
| 59 | @@ -3,3 +3,4 @@ option('png', type: 'feature', value : 'enabled') | ||
| 60 | option('tiff', type: 'feature', value : 'enabled') | ||
| 61 | option('webp', type: 'feature', value : 'disabled') | ||
| 62 | option('motif', type: 'feature', value : 'disabled') | ||
| 63 | +option('pdf', type: 'feature', value : 'enabled') | ||
| 64 | -- | ||
| 65 | 2.37.3 | ||
| 66 | |||
