forked from oe-lite/base
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
- Loading branch information
Rasmus Villemoes
committed
Oct 28, 2016
1 parent
abdf161
commit e5639b4
Showing
1 changed file
with
50 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.libtiff.org/" | ||
LICENSE = "BSD-2-Clause*" | ||
HOMEPAGE = "http://www.remotesensing.org/libtiff/" | ||
|
||
RECIPE_TYPES = "machine native" | ||
SRC_URI = "ftp://ftp.remotesensing.org/pub/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 | ||
|
||
RECIPE_FLAGS += "tiff_jpeg tiff_lzma tiff_zlib" | ||
DEFAULT_USE_tiff_jpeg = "1" | ||
DEFAULT_USE_tiff_lzma = "1" | ||
DEFAULT_USE_tiff_zlib = "1" | ||
|
||
TIFF_JPEG = "" | ||
TIFF_JPEG:USE_tiff_jpeg = "libjpeg" | ||
TIFF_LZMA = "" | ||
TIFF_LZMA:USE_tiff_lzma = "liblzma" | ||
TIFF_ZLIB = "" | ||
TIFF_ZLIB:USE_tiff_zlib = "libz" | ||
|
||
USE_FLAG_DEPENDS = "${TIFF_JPEG} ${TIFF_LZMA} ${TIFF_ZLIB}" | ||
|
||
inherit autotools c++ | ||
DEPENDS += "libc libgcc-s libm libstdc++ ${USE_FLAG_DEPENDS}" | ||
|
||
OECONF_ARCHTUPLE = "ax_cv_check_gl_libgl=no" | ||
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 \ | ||
" | ||
|
||
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/" | ||
AUTO_PACKAGE_UTILS_DEPENDS = "libc libm libtiff ${USE_FLAG_DEPENDS}" | ||
AUTO_PACKAGE_UTILS_RDEPENDS = "libc libm libtiff ${USE_FLAG_DEPENDS}" | ||
|
||
LIBTOOL_HOST_SCRIPTS:HOST_LIBC_mingw = "libtool" | ||
LIBTOOL_HOST_SCRIPT_FIXUP:HOST_LIBC_mingw = "1" | ||
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" |