added my Recipes
This commit is contained in:
@@ -0,0 +1,80 @@
|
||||
SUMMARY = "Framebuffer image and doc viewer tools"
|
||||
DESCRIPTION = "The fbida project contains a few applications for viewing and editing images, \
|
||||
with the main focus being photos."
|
||||
HOMEPAGE = "http://linux.bytesex.org/fbida/"
|
||||
AUTHOR = "Gerd Hoffmann"
|
||||
SECTION = "utils"
|
||||
|
||||
LICENSE = "GPL-2.0-only"
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=e8feb78a32950a909621bbb51f634b39"
|
||||
|
||||
DEPENDS = "virtual/libiconv jpeg fontconfig freetype libexif libdrm pixman poppler libepoxy cairo"
|
||||
|
||||
SRC_URI = "https://www.kraxel.org/releases/fbida/fbida-${PV}.tar.gz \
|
||||
file://0001-Avoid-using-host-path.patch \
|
||||
file://fix-preprocessor.patch \
|
||||
file://support-jpeg-turbo.patch \
|
||||
file://cairo-weak-detect.patch \
|
||||
file://fbida-gcc10.patch \
|
||||
"
|
||||
SRC_URI[sha256sum] = "95b7c01556cb6ef9819f358b314ddfeb8a4cbe862b521a3ed62f03d163154438"
|
||||
|
||||
inherit pkgconfig features_check
|
||||
|
||||
# Depends on libepoxy
|
||||
REQUIRED_DISTRO_FEATURES = "opengl"
|
||||
|
||||
EXTRA_OEMAKE = "STRIP= 'srcdir=${S}' -f ${S}/GNUmakefile"
|
||||
|
||||
PACKAGECONFIG ??= "gif png curl"
|
||||
PACKAGECONFIG[curl] = ",,curl"
|
||||
PACKAGECONFIG[gif] = ",,giflib"
|
||||
PACKAGECONFIG[png] = ",,libpng"
|
||||
PACKAGECONFIG[tiff] = ",,tiff"
|
||||
PACKAGECONFIG[motif] = ",,libx11 libxext libxpm libxt openmotif"
|
||||
PACKAGECONFIG[webp] = ",,libwebp"
|
||||
PACKAGECONFIG[lirc] = ",,lirc"
|
||||
# This can only be enabled when cairo has egl enabled in its packageconfig support too
|
||||
PACKAGECONFIG[egl] = ",,"
|
||||
|
||||
EXTRA_OEMAKE += ""${@bb.utils.contains('PACKAGECONFIG', 'egl', 'HAVE_CAIRO_GL=yes', 'HAVE_CAIRO_GL=no', d)}""
|
||||
|
||||
CFLAGS += "${@bb.utils.contains('DISTRO_FEATURES', 'x11', '', '-DEGL_NO_X11=1', d)}"
|
||||
|
||||
do_compile() {
|
||||
sed -i -e 's# fbgs# \$(srcdir)/fbgs#; s#-Ijpeg#-I\$(srcdir)/jpeg#; s# jpeg/# \$(srcdir)/jpeg/#' ${S}/GNUmakefile
|
||||
sed -i -e 's:/sbin/ldconfig:echo x:' ${S}/mk/Autoconf.mk
|
||||
sed -i -e 's: cpp: ${CPP}:' ${S}/GNUmakefile
|
||||
|
||||
# Be sure to respect preferences (force to "no")
|
||||
# Also avoid issues when ${BUILD_ARCH} == ${HOST_ARCH}
|
||||
if [ -z "${@bb.utils.filter('PACKAGECONFIG', 'curl', d)}" ]; then
|
||||
sed -i -e '/^HAVE_LIBCURL/s/:=.*$/:= no/' ${S}/GNUmakefile
|
||||
fi
|
||||
if [ -z "${@bb.utils.filter('PACKAGECONFIG', 'gif', d)}" ]; then
|
||||
sed -i -e '/^HAVE_LIBGIF/s/:=.*$/:= no/' ${S}/GNUmakefile
|
||||
fi
|
||||
if [ -z "${@bb.utils.filter('PACKAGECONFIG', 'png', d)}" ]; then
|
||||
sed -i -e '/^HAVE_LIBPNG/s/:=.*$/:= no/' ${S}/GNUmakefile
|
||||
fi
|
||||
if [ -z "${@bb.utils.filter('PACKAGECONFIG', 'tiff', d)}" ]; then
|
||||
sed -i -e '/^HAVE_LIBTIFF/s/:=.*$/:= no/' ${S}/GNUmakefile
|
||||
fi
|
||||
if [ -z "${@bb.utils.filter('PACKAGECONFIG', 'motif', d)}" ]; then
|
||||
sed -i -e '/^HAVE_MOTIF/s/:=.*$/:= no/' ${S}/GNUmakefile
|
||||
fi
|
||||
if [ -z "${@bb.utils.filter('PACKAGECONFIG', 'webp', d)}" ]; then
|
||||
sed -i -e '/^HAVE_LIBWEBP/s/:=.*$/:= no/' ${S}/GNUmakefile
|
||||
fi
|
||||
if [ -z "${@bb.utils.filter('PACKAGECONFIG', 'lirc', d)}" ]; then
|
||||
sed -i -e '/^HAVE_LIBLIRC/s/:=.*$/:= no/' ${S}/GNUmakefile
|
||||
fi
|
||||
|
||||
oe_runmake
|
||||
}
|
||||
|
||||
do_install() {
|
||||
oe_runmake 'DESTDIR=${D}' install
|
||||
}
|
||||
|
||||
RDEPENDS:${PN} = "ttf-dejavu-sans-mono"
|
||||
@@ -0,0 +1,34 @@
|
||||
From 8d8fa9f22d9f6a95523bac63ac3af724faf5ff92 Mon Sep 17 00:00:00 2001
|
||||
From: Marek Vasut <marex@denx.de>
|
||||
Date: Fri, 7 Apr 2017 23:26:09 +0200
|
||||
Subject: [PATCH] Avoid using host-path
|
||||
|
||||
Remove the explicit reference to /usr/local/* , this is completely
|
||||
bogus and causes trouble during cross-compilation.
|
||||
|
||||
Signed-off-by: Marek Vasut <marex@denx.de>
|
||||
Upstream-Status: Inappropriate [upstream requires this]
|
||||
---
|
||||
mk/Variables.mk | 6 ------
|
||||
1 file changed, 6 deletions(-)
|
||||
|
||||
diff --git a/mk/Variables.mk b/mk/Variables.mk
|
||||
index 99f787c..3ffd87a 100644
|
||||
--- a/mk/Variables.mk
|
||||
+++ b/mk/Variables.mk
|
||||
@@ -42,12 +42,6 @@ CFLAGS += -Wall -Wmissing-prototypes -Wstrict-prototypes \
|
||||
-Wpointer-arith -Wunused
|
||||
CXXFLAGS += -Wall -Wpointer-arith -Wunused
|
||||
|
||||
-# add /usr/local to the search path if something is in there ...
|
||||
-ifneq ($(wildcard /usr/local/include/*.h),)
|
||||
- CFLAGS += -I/usr/local/include
|
||||
- LDFLAGS += -L/usr/local/$(LIB)
|
||||
-endif
|
||||
-
|
||||
# fixup include path for $(srcdir) != "."
|
||||
ifneq ($(srcdir),.)
|
||||
CFLAGS += -I. -I$(srcdir)
|
||||
--
|
||||
2.11.0
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
OE configures cairo to disable EGL support, however fbida expects cairo with egl support
|
||||
this patch therefore makes it possible to set HAVE_CAIRO_GL via recipe
|
||||
|
||||
Upstream-Status: Inappropriate [OE-Specific]
|
||||
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||
|
||||
--- a/GNUmakefile
|
||||
+++ b/GNUmakefile
|
||||
@@ -67,7 +67,7 @@ define make-config
|
||||
LIB := $(LIB)
|
||||
RESDIR := $(call ac_resdir)
|
||||
HAVE_LINUX_FB_H := $(call ac_header,linux/fb.h)
|
||||
-HAVE_CAIRO_GL := $(call ac_pkg_config,cairo-gl)
|
||||
+HAVE_CAIRO_GL ?= $(call ac_pkg_config,cairo-gl)
|
||||
HAVE_LIBPCD := $(call ac_lib,pcd_open,pcd)
|
||||
HAVE_LIBGIF := $(call ac_lib,DGifOpenFileName,gif)
|
||||
HAVE_LIBWEBP := $(call ac_pkg_config,libwebp)
|
||||
@@ -0,0 +1,61 @@
|
||||
Fix build with gcc10
|
||||
|
||||
Patch from https://src.fedoraproject.org/rpms/fbida/raw/master/f/fbida.gcc10.patch
|
||||
|
||||
Upstream-Status: Pending
|
||||
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||
|
||||
--- fbida-2.14/fbi.c.org 2020-03-15 17:02:17.944189632 +0100
|
||||
+++ fbida-2.14/fbi.c 2020-03-15 17:02:21.880223224 +0100
|
||||
@@ -100,7 +100,6 @@
|
||||
|
||||
/* graphics interface */
|
||||
gfxstate *gfx;
|
||||
-int debug;
|
||||
|
||||
/* framebuffer */
|
||||
char *fbdev = NULL;
|
||||
--- fbida-2.14/filter.c 2020-03-15 16:44:17.159855150 +0100
|
||||
+++ fbida-2.14/filter.c 2020-03-15 16:44:27.017941447 +0100
|
||||
@@ -6,8 +6,6 @@
|
||||
#include "readers.h"
|
||||
#include "filter.h"
|
||||
|
||||
-int debug = 0;
|
||||
-
|
||||
/* ----------------------------------------------------------------------- */
|
||||
|
||||
static void
|
||||
--- fbida-2.14/readers.c.org 2020-03-15 17:01:18.692683597 +0100
|
||||
+++ fbida-2.14/readers.c 2020-03-15 16:57:19.141632384 +0100
|
||||
@@ -6,6 +6,8 @@
|
||||
|
||||
#include "readers.h"
|
||||
|
||||
+int debug=0;
|
||||
+
|
||||
/* ----------------------------------------------------------------------- */
|
||||
|
||||
void load_bits_lsb(unsigned char *dst, unsigned char *src, int width,
|
||||
|
||||
--- fbida-2.14/viewer.c.org 2020-03-15 17:05:02.991595832 +0100
|
||||
+++ fbida-2.14/viewer.c 2020-03-15 17:04:55.424531467 +0100
|
||||
@@ -40,7 +40,6 @@
|
||||
#define PROCESS_LINES 16
|
||||
|
||||
-int debug;
|
||||
Cursor ptrs[POINTER_COUNT];
|
||||
|
||||
/* ----------------------------------------------------------------------- */
|
||||
|
||||
--- fbida-2.14/idaconfig.h.org 2020-03-15 17:07:09.239668196 +0100
|
||||
+++ fbida-2.14/idaconfig.h 2020-03-15 17:07:21.248770061 +0100
|
||||
@@ -17,7 +17,7 @@
|
||||
|
||||
/* -------------------------------------------------------------------------- */
|
||||
|
||||
-char *ida_lists;
|
||||
+extern char *ida_lists;
|
||||
|
||||
void ida_init_config(void);
|
||||
void ida_read_config(void);
|
||||
@@ -0,0 +1,6 @@
|
||||
--- a/scripts/jpeg-version.sh
|
||||
+++ b/scripts/jpeg-version.sh
|
||||
@@ -1,2 +1,2 @@
|
||||
#!/bin/sh
|
||||
-echo JPEG_LIB_VERSION | cpp $CFLAGS -include jpeglib.h | tail -1
|
||||
+${CPP} -include jpeglib.h -dM -E -x c /dev/null | grep 'define JPEG_LIB_VERSION' | cut -f 3 -d' '
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,13 @@
|
||||
Index: fbida-2.10/GNUmakefile
|
||||
===================================================================
|
||||
--- fbida-2.10.orig/GNUmakefile
|
||||
+++ fbida-2.10/GNUmakefile
|
||||
@@ -51,7 +51,7 @@ HAVE_LIBSANE := $(call ac_lib,sane_init,
|
||||
HAVE_LIBCURL := $(call ac_lib,curl_easy_init,curl)
|
||||
HAVE_LIBLIRC := $(call ac_lib,lirc_init,lirc_client)
|
||||
HAVE_MOTIF := $(call ac_lib,XmStringGenerate,Xm,-L/usr/X11R6/$(LIB) -lXpm -lXt -lXext -lX11)
|
||||
-JPEG_VER := $(call ac_jpeg_ver)
|
||||
+JPEG_VER := 62
|
||||
endef
|
||||
|
||||
# transposing
|
||||
Reference in New Issue
Block a user