1*4882a593SmuzhiyunSUMMARY = "Framebuffer image and doc viewer tools" 2*4882a593SmuzhiyunDESCRIPTION = "The fbida project contains a few applications for viewing and editing images, \ 3*4882a593Smuzhiyun with the main focus being photos." 4*4882a593SmuzhiyunHOMEPAGE = "http://linux.bytesex.org/fbida/" 5*4882a593SmuzhiyunAUTHOR = "Gerd Hoffmann" 6*4882a593SmuzhiyunSECTION = "utils" 7*4882a593Smuzhiyun 8*4882a593SmuzhiyunLICENSE = "GPL-2.0-only" 9*4882a593SmuzhiyunLIC_FILES_CHKSUM = "file://COPYING;md5=e8feb78a32950a909621bbb51f634b39" 10*4882a593Smuzhiyun 11*4882a593SmuzhiyunDEPENDS = "virtual/libiconv jpeg fontconfig freetype libexif libdrm pixman poppler libepoxy cairo" 12*4882a593Smuzhiyun 13*4882a593SmuzhiyunSRC_URI = "https://www.kraxel.org/releases/fbida/fbida-${PV}.tar.gz \ 14*4882a593Smuzhiyun file://0001-Avoid-using-host-path.patch \ 15*4882a593Smuzhiyun file://fix-preprocessor.patch \ 16*4882a593Smuzhiyun file://support-jpeg-turbo.patch \ 17*4882a593Smuzhiyun file://cairo-weak-detect.patch \ 18*4882a593Smuzhiyun file://fbida-gcc10.patch \ 19*4882a593Smuzhiyun " 20*4882a593SmuzhiyunSRC_URI[sha256sum] = "95b7c01556cb6ef9819f358b314ddfeb8a4cbe862b521a3ed62f03d163154438" 21*4882a593Smuzhiyun 22*4882a593Smuzhiyuninherit pkgconfig features_check 23*4882a593Smuzhiyun 24*4882a593Smuzhiyun# Depends on libepoxy 25*4882a593SmuzhiyunREQUIRED_DISTRO_FEATURES = "opengl" 26*4882a593Smuzhiyun 27*4882a593SmuzhiyunEXTRA_OEMAKE = "STRIP= 'srcdir=${S}' -f ${S}/GNUmakefile" 28*4882a593Smuzhiyun 29*4882a593SmuzhiyunPACKAGECONFIG ??= "gif png curl" 30*4882a593SmuzhiyunPACKAGECONFIG[curl] = ",,curl" 31*4882a593SmuzhiyunPACKAGECONFIG[gif] = ",,giflib" 32*4882a593SmuzhiyunPACKAGECONFIG[png] = ",,libpng" 33*4882a593SmuzhiyunPACKAGECONFIG[tiff] = ",,tiff" 34*4882a593SmuzhiyunPACKAGECONFIG[motif] = ",,libx11 libxext libxpm libxt openmotif" 35*4882a593SmuzhiyunPACKAGECONFIG[webp] = ",,libwebp" 36*4882a593SmuzhiyunPACKAGECONFIG[lirc] = ",,lirc" 37*4882a593Smuzhiyun# This can only be enabled when cairo has egl enabled in its packageconfig support too 38*4882a593SmuzhiyunPACKAGECONFIG[egl] = ",," 39*4882a593Smuzhiyun 40*4882a593SmuzhiyunEXTRA_OEMAKE += ""${@bb.utils.contains('PACKAGECONFIG', 'egl', 'HAVE_CAIRO_GL=yes', 'HAVE_CAIRO_GL=no', d)}"" 41*4882a593Smuzhiyun 42*4882a593SmuzhiyunCFLAGS += "${@bb.utils.contains('DISTRO_FEATURES', 'x11', '', '-DEGL_NO_X11=1', d)}" 43*4882a593Smuzhiyun 44*4882a593Smuzhiyundo_compile() { 45*4882a593Smuzhiyun sed -i -e 's# fbgs# \$(srcdir)/fbgs#; s#-Ijpeg#-I\$(srcdir)/jpeg#; s# jpeg/# \$(srcdir)/jpeg/#' ${S}/GNUmakefile 46*4882a593Smuzhiyun sed -i -e 's:/sbin/ldconfig:echo x:' ${S}/mk/Autoconf.mk 47*4882a593Smuzhiyun sed -i -e 's: cpp: ${CPP}:' ${S}/GNUmakefile 48*4882a593Smuzhiyun 49*4882a593Smuzhiyun # Be sure to respect preferences (force to "no") 50*4882a593Smuzhiyun # Also avoid issues when ${BUILD_ARCH} == ${HOST_ARCH} 51*4882a593Smuzhiyun if [ -z "${@bb.utils.filter('PACKAGECONFIG', 'curl', d)}" ]; then 52*4882a593Smuzhiyun sed -i -e '/^HAVE_LIBCURL/s/:=.*$/:= no/' ${S}/GNUmakefile 53*4882a593Smuzhiyun fi 54*4882a593Smuzhiyun if [ -z "${@bb.utils.filter('PACKAGECONFIG', 'gif', d)}" ]; then 55*4882a593Smuzhiyun sed -i -e '/^HAVE_LIBGIF/s/:=.*$/:= no/' ${S}/GNUmakefile 56*4882a593Smuzhiyun fi 57*4882a593Smuzhiyun if [ -z "${@bb.utils.filter('PACKAGECONFIG', 'png', d)}" ]; then 58*4882a593Smuzhiyun sed -i -e '/^HAVE_LIBPNG/s/:=.*$/:= no/' ${S}/GNUmakefile 59*4882a593Smuzhiyun fi 60*4882a593Smuzhiyun if [ -z "${@bb.utils.filter('PACKAGECONFIG', 'tiff', d)}" ]; then 61*4882a593Smuzhiyun sed -i -e '/^HAVE_LIBTIFF/s/:=.*$/:= no/' ${S}/GNUmakefile 62*4882a593Smuzhiyun fi 63*4882a593Smuzhiyun if [ -z "${@bb.utils.filter('PACKAGECONFIG', 'motif', d)}" ]; then 64*4882a593Smuzhiyun sed -i -e '/^HAVE_MOTIF/s/:=.*$/:= no/' ${S}/GNUmakefile 65*4882a593Smuzhiyun fi 66*4882a593Smuzhiyun if [ -z "${@bb.utils.filter('PACKAGECONFIG', 'webp', d)}" ]; then 67*4882a593Smuzhiyun sed -i -e '/^HAVE_LIBWEBP/s/:=.*$/:= no/' ${S}/GNUmakefile 68*4882a593Smuzhiyun fi 69*4882a593Smuzhiyun if [ -z "${@bb.utils.filter('PACKAGECONFIG', 'lirc', d)}" ]; then 70*4882a593Smuzhiyun sed -i -e '/^HAVE_LIBLIRC/s/:=.*$/:= no/' ${S}/GNUmakefile 71*4882a593Smuzhiyun fi 72*4882a593Smuzhiyun 73*4882a593Smuzhiyun oe_runmake 74*4882a593Smuzhiyun} 75*4882a593Smuzhiyun 76*4882a593Smuzhiyundo_install() { 77*4882a593Smuzhiyun oe_runmake 'DESTDIR=${D}' install 78*4882a593Smuzhiyun} 79*4882a593Smuzhiyun 80*4882a593SmuzhiyunRDEPENDS:${PN} = "ttf-dejavu-sans-mono bash" 81