Skip to content

Commit

Permalink
libtiff: update recipe
Browse files Browse the repository at this point in the history
This makes use of auto-package-* and makes a few features
optional. Since mingw build is disabled for now (see issue oe-lite#220) we
also remove the mingw specific bits - getting the mingw build to work
again may require adding those back, or something entirely different,
so it's better if there's no confusing legacy settings.

Also update the homepage and download URLs. Quoting from Wikipedia:

  Website hijacking

  Around January 2004, the original libtiff website (libtiff.org) has
  been hijacked, after it had disappeared in September 2003 due to ISP
  problems. [...]

  In September 2016, the libtiff maintainers lost control of
  http://www.remotesensing.org/libtiff/, which had been the main site
  since 2003. The official website is currently at
  http://www.simplesystems.org/libtiff/.
  • Loading branch information
Rasmus Villemoes committed Oct 28, 2016
1 parent abdf161 commit afa2d8b
Showing 1 changed file with 50 additions and 13 deletions.
63 changes: 50 additions & 13 deletions recipes/libtiff/tiff.inc
Original file line number Diff line number Diff line change
@@ -1,24 +1,61 @@
DESCRIPTION = "This software provides support for the Tag Image File Format (TIFF)"
HOMEPAGE = "http://www.simplesystems.org/libtiff/"
LICENSE = "BSD-2-Clause*"
HOMEPAGE = "http://www.remotesensing.org/libtiff/"

RECIPE_TYPES = "machine native"
SRC_URI = "ftp://download.osgeo.org/libtiff/tiff-${PV}.tar.gz"

COMPATIBLE_HOST_ARCHS = ".*linux"

SRC_URI = "ftp://ftp.remotesensing.org/pub/libtiff/tiff-${PV}.tar.gz"
inherit autotools-autoreconf c++ auto-package-utils auto-package-libs

inherit autotools c++
RECIPE_FLAGS += "tiff_jpeg tiff_lzma tiff_zlib"
DEFAULT_USE_tiff_jpeg = "1"
DEFAULT_USE_tiff_lzma = "1"
DEFAULT_USE_tiff_zlib = "1"

OECONF_ARCHTUPLE = "ax_cv_check_gl_libgl=no"
TIFF_JPEG = ""
TIFF_JPEG:USE_tiff_jpeg = "libjpeg"
TIFF_LZMA = ""
TIFF_LZMA:USE_tiff_lzma = "liblzma"
TIFF_ZLIB = ""
TIFF_ZLIB:USE_tiff_zlib = "libz"

PACKAGES =+ "${PN}-staticdev ${PN}-utils ${PN}-utils-dbg"
FILES_${PN} += "${libdir}/libtiffxx.so.*"
FILES_${PN}-dev += "${libdir}/libtiffxx.so ${libdir}/libtiffxx.la"
FILES_${PN}-staticdev = "${libdir}/libtiffxx.a"
FILES_${PN}-dbg += "${libdir}/.debug/libtiffxx.so*"
FILES_${PN}-utils = "${bindir}/*"
FILES_${PN}-utils-dbg += "${bindir}/.debug/"
USE_FLAG_DEPENDS = "${TIFF_JPEG} ${TIFF_LZMA} ${TIFF_ZLIB}"

LIBTOOL_HOST_SCRIPTS:HOST_LIBC_mingw = "libtool"
LIBTOOL_HOST_SCRIPT_FIXUP:HOST_LIBC_mingw = "1"
DEPENDS += "libc libgcc-s libm libstdc++ ${USE_FLAG_DEPENDS}"

AUTO_PACKAGE_UTILS = "\
bmp2tiff \
fax2ps \
fax2tiff \
gif2tiff \
pal2rgb \
ppm2tiff \
ras2tiff \
raw2tiff \
rgb2ycbcr \
thumbnail \
tiff2bw \
tiff2pdf \
tiff2ps \
tiff2rgba \
tiffcmp \
tiffcp \
tiffcrop \
tiffdither \
tiffdump \
tiffinfo \
tiffmedian \
tiffset \
tiffsplit \
"

AUTO_PACKAGE_UTILS_DEPENDS = "libc libm libtiff ${USE_FLAG_DEPENDS}"
AUTO_PACKAGE_UTILS_RDEPENDS = "libc libm libtiff ${USE_FLAG_DEPENDS}"

AUTO_PACKAGE_LIBS = "tiff tiffxx"
AUTO_PACKAGE_LIBS_DEPENDS = "libc libm tiff-dev ${USE_FLAG_DEPENDS}"
AUTO_PACKAGE_LIBS_RDEPENDS = "libc libm ${USE_FLAG_DEPENDS}"
DEPENDS_${PN}-libtiffxx += "libgcc-s libstdc++ libtiff"
RDEPENDS_${PN}-libtiffxx += "libgcc-s libstdc++ libtiff"

0 comments on commit afa2d8b

Please sign in to comment.