blob: bc6f021e6baa6af856945f88c9c578da33289d8e [file] [log] [blame]
Patrick Williamsb48b7b42016-08-17 15:04:38 -05001SUMMARY = "Framebuffer image and doc viewer tools"
2DESCRIPTION = "The fbida project contains a few applications for viewing and editing images, \
3 with the main focus being photos."
4HOMEPAGE = "http://linux.bytesex.org/fbida/"
5AUTHOR = "Gerd Hoffmann"
6SECTION = "utils"
7
Andrew Geissler9aee5002022-03-30 16:27:02 +00008LICENSE = "GPL-2.0-only"
Andrew Geisslerbffdb3e2020-08-21 16:13:29 -05009LIC_FILES_CHKSUM = "file://COPYING;md5=e8feb78a32950a909621bbb51f634b39"
Patrick Williamsb48b7b42016-08-17 15:04:38 -050010
Andrew Geisslerbffdb3e2020-08-21 16:13:29 -050011DEPENDS = "virtual/libiconv jpeg fontconfig freetype libexif libdrm pixman poppler libepoxy cairo"
Patrick Williamsb48b7b42016-08-17 15:04:38 -050012
Brad Bishop6e60e8b2018-02-01 10:27:11 -050013SRC_URI = "https://www.kraxel.org/releases/fbida/fbida-${PV}.tar.gz \
14 file://0001-Avoid-using-host-path.patch \
15 file://fix-preprocessor.patch \
16 file://support-jpeg-turbo.patch \
Andrew Geisslerbffdb3e2020-08-21 16:13:29 -050017 file://cairo-weak-detect.patch \
18 file://fbida-gcc10.patch \
Brad Bishop6e60e8b2018-02-01 10:27:11 -050019 "
Andrew Geisslerbffdb3e2020-08-21 16:13:29 -050020SRC_URI[sha256sum] = "95b7c01556cb6ef9819f358b314ddfeb8a4cbe862b521a3ed62f03d163154438"
Patrick Williamsb48b7b42016-08-17 15:04:38 -050021
Andrew Geisslerd688a012020-09-18 13:36:00 -050022inherit pkgconfig features_check
23
24# Depends on libepoxy
25REQUIRED_DISTRO_FEATURES = "opengl"
Brad Bishop6e60e8b2018-02-01 10:27:11 -050026
Patrick Williamsb48b7b42016-08-17 15:04:38 -050027EXTRA_OEMAKE = "STRIP= 'srcdir=${S}' -f ${S}/GNUmakefile"
28
29PACKAGECONFIG ??= "gif png curl"
30PACKAGECONFIG[curl] = ",,curl"
31PACKAGECONFIG[gif] = ",,giflib"
32PACKAGECONFIG[png] = ",,libpng"
33PACKAGECONFIG[tiff] = ",,tiff"
34PACKAGECONFIG[motif] = ",,libx11 libxext libxpm libxt openmotif"
35PACKAGECONFIG[webp] = ",,libwebp"
36PACKAGECONFIG[lirc] = ",,lirc"
Andrew Geisslerbffdb3e2020-08-21 16:13:29 -050037# This can only be enabled when cairo has egl enabled in its packageconfig support too
38PACKAGECONFIG[egl] = ",,"
39
40EXTRA_OEMAKE += ""${@bb.utils.contains('PACKAGECONFIG', 'egl', 'HAVE_CAIRO_GL=yes', 'HAVE_CAIRO_GL=no', d)}""
Patrick Williamsb48b7b42016-08-17 15:04:38 -050041
Andrew Geissler9aee5002022-03-30 16:27:02 +000042CFLAGS += "${@bb.utils.contains('DISTRO_FEATURES', 'x11', '', '-DEGL_NO_X11=1', d)}"
43
Patrick Williamsb48b7b42016-08-17 15:04:38 -050044do_compile() {
45 sed -i -e 's# fbgs# \$(srcdir)/fbgs#; s#-Ijpeg#-I\$(srcdir)/jpeg#; s# jpeg/# \$(srcdir)/jpeg/#' ${S}/GNUmakefile
46 sed -i -e 's:/sbin/ldconfig:echo x:' ${S}/mk/Autoconf.mk
Brad Bishop6e60e8b2018-02-01 10:27:11 -050047 sed -i -e 's: cpp: ${CPP}:' ${S}/GNUmakefile
Patrick Williamsb48b7b42016-08-17 15:04:38 -050048
49 # Be sure to respect preferences (force to "no")
50 # Also avoid issues when ${BUILD_ARCH} == ${HOST_ARCH}
Brad Bishop6e60e8b2018-02-01 10:27:11 -050051 if [ -z "${@bb.utils.filter('PACKAGECONFIG', 'curl', d)}" ]; then
Patrick Williamsb48b7b42016-08-17 15:04:38 -050052 sed -i -e '/^HAVE_LIBCURL/s/:=.*$/:= no/' ${S}/GNUmakefile
53 fi
Brad Bishop6e60e8b2018-02-01 10:27:11 -050054 if [ -z "${@bb.utils.filter('PACKAGECONFIG', 'gif', d)}" ]; then
Patrick Williamsb48b7b42016-08-17 15:04:38 -050055 sed -i -e '/^HAVE_LIBGIF/s/:=.*$/:= no/' ${S}/GNUmakefile
56 fi
Brad Bishop6e60e8b2018-02-01 10:27:11 -050057 if [ -z "${@bb.utils.filter('PACKAGECONFIG', 'png', d)}" ]; then
Patrick Williamsb48b7b42016-08-17 15:04:38 -050058 sed -i -e '/^HAVE_LIBPNG/s/:=.*$/:= no/' ${S}/GNUmakefile
59 fi
Brad Bishop6e60e8b2018-02-01 10:27:11 -050060 if [ -z "${@bb.utils.filter('PACKAGECONFIG', 'tiff', d)}" ]; then
Patrick Williamsb48b7b42016-08-17 15:04:38 -050061 sed -i -e '/^HAVE_LIBTIFF/s/:=.*$/:= no/' ${S}/GNUmakefile
62 fi
Brad Bishop6e60e8b2018-02-01 10:27:11 -050063 if [ -z "${@bb.utils.filter('PACKAGECONFIG', 'motif', d)}" ]; then
Patrick Williamsb48b7b42016-08-17 15:04:38 -050064 sed -i -e '/^HAVE_MOTIF/s/:=.*$/:= no/' ${S}/GNUmakefile
65 fi
Brad Bishop6e60e8b2018-02-01 10:27:11 -050066 if [ -z "${@bb.utils.filter('PACKAGECONFIG', 'webp', d)}" ]; then
Patrick Williamsb48b7b42016-08-17 15:04:38 -050067 sed -i -e '/^HAVE_LIBWEBP/s/:=.*$/:= no/' ${S}/GNUmakefile
68 fi
Brad Bishop6e60e8b2018-02-01 10:27:11 -050069 if [ -z "${@bb.utils.filter('PACKAGECONFIG', 'lirc', d)}" ]; then
Patrick Williamsb48b7b42016-08-17 15:04:38 -050070 sed -i -e '/^HAVE_LIBLIRC/s/:=.*$/:= no/' ${S}/GNUmakefile
71 fi
72
73 oe_runmake
74}
75
76do_install() {
77 oe_runmake 'DESTDIR=${D}' install
78}
79
Patrick Williams213cb262021-08-07 19:21:33 -050080RDEPENDS:${PN} = "ttf-dejavu-sans-mono bash"