Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame^] | 1 | SUMMARY = "Framebuffer image and doc viewer tools" |
| 2 | DESCRIPTION = "The fbida project contains a few applications for viewing and editing images, \ |
| 3 | with the main focus being photos." |
| 4 | HOMEPAGE = "http://linux.bytesex.org/fbida/" |
| 5 | AUTHOR = "Gerd Hoffmann" |
| 6 | SECTION = "utils" |
| 7 | |
| 8 | LICENSE = "GPLv2" |
| 9 | LIC_FILES_CHKSUM = "file://COPYING;md5=8ca43cbc842c2336e835926c2166c28b" |
| 10 | |
| 11 | DEPENDS = "virtual/libiconv jpeg fontconfig freetype libexif" |
| 12 | |
| 13 | SRC_URI = "https://www.kraxel.org/releases/fbida/fbida-${PV}.tar.gz" |
| 14 | SRC_URI[md5sum] = "09460b964b58c2e39b665498eca29018" |
| 15 | SRC_URI[sha256sum] = "7a5a3aac61b40a6a2bbf716d270a46e2f8e8d5c97e314e927d41398a4d0b6cb6" |
| 16 | |
| 17 | B = "${WORKDIR}/build" |
| 18 | |
| 19 | EXTRA_OEMAKE = "STRIP= 'srcdir=${S}' -f ${S}/GNUmakefile" |
| 20 | |
| 21 | PACKAGECONFIG ??= "gif png curl" |
| 22 | PACKAGECONFIG[curl] = ",,curl" |
| 23 | PACKAGECONFIG[gif] = ",,giflib" |
| 24 | PACKAGECONFIG[png] = ",,libpng" |
| 25 | PACKAGECONFIG[tiff] = ",,tiff" |
| 26 | PACKAGECONFIG[motif] = ",,libx11 libxext libxpm libxt openmotif" |
| 27 | PACKAGECONFIG[webp] = ",,libwebp" |
| 28 | PACKAGECONFIG[lirc] = ",,lirc" |
| 29 | |
| 30 | do_compile() { |
| 31 | sed -i -e 's# fbgs# \$(srcdir)/fbgs#; s#-Ijpeg#-I\$(srcdir)/jpeg#; s# jpeg/# \$(srcdir)/jpeg/#' ${S}/GNUmakefile |
| 32 | sed -i -e 's:/sbin/ldconfig:echo x:' ${S}/mk/Autoconf.mk |
| 33 | sed -i -e 's: cpp: ${TARGET_PREFIX}cpp -I${STAGING_INCDIR}:' ${S}/GNUmakefile |
| 34 | |
| 35 | # Be sure to respect preferences (force to "no") |
| 36 | # Also avoid issues when ${BUILD_ARCH} == ${HOST_ARCH} |
| 37 | if [ -z "${@bb.utils.contains('PACKAGECONFIG', 'curl', 'curl', '', d)}" ]; then |
| 38 | sed -i -e '/^HAVE_LIBCURL/s/:=.*$/:= no/' ${S}/GNUmakefile |
| 39 | fi |
| 40 | if [ -z "${@bb.utils.contains('PACKAGECONFIG', 'gif', 'gif', '', d)}" ]; then |
| 41 | sed -i -e '/^HAVE_LIBGIF/s/:=.*$/:= no/' ${S}/GNUmakefile |
| 42 | fi |
| 43 | if [ -z "${@bb.utils.contains('PACKAGECONFIG', 'png', 'png', '', d)}" ]; then |
| 44 | sed -i -e '/^HAVE_LIBPNG/s/:=.*$/:= no/' ${S}/GNUmakefile |
| 45 | fi |
| 46 | if [ -z "${@bb.utils.contains('PACKAGECONFIG', 'tiff', 'tiff', '', d)}" ]; then |
| 47 | sed -i -e '/^HAVE_LIBTIFF/s/:=.*$/:= no/' ${S}/GNUmakefile |
| 48 | fi |
| 49 | if [ -z "${@bb.utils.contains('PACKAGECONFIG', 'motif', 'motif', '', d)}" ]; then |
| 50 | sed -i -e '/^HAVE_MOTIF/s/:=.*$/:= no/' ${S}/GNUmakefile |
| 51 | fi |
| 52 | if [ -z "${@bb.utils.contains('PACKAGECONFIG', 'webp', 'webp', '', d)}" ]; then |
| 53 | sed -i -e '/^HAVE_LIBWEBP/s/:=.*$/:= no/' ${S}/GNUmakefile |
| 54 | fi |
| 55 | if [ -z "${@bb.utils.contains('PACKAGECONFIG', 'lirc', 'lirc', '', d)}" ]; then |
| 56 | sed -i -e '/^HAVE_LIBLIRC/s/:=.*$/:= no/' ${S}/GNUmakefile |
| 57 | fi |
| 58 | |
| 59 | oe_runmake |
| 60 | } |
| 61 | |
| 62 | do_install() { |
| 63 | oe_runmake 'DESTDIR=${D}' install |
| 64 | } |
| 65 | |
| 66 | RDEPENDS_${PN} = "ttf-dejavu-sans-mono bash" |