summaryrefslogtreecommitdiff
path: root/dev-tcltk
diff options
context:
space:
mode:
Diffstat (limited to 'dev-tcltk')
-rw-r--r--dev-tcltk/Manifest.gzbin6798 -> 6801 bytes
-rw-r--r--dev-tcltk/expect/Manifest4
-rw-r--r--dev-tcltk/expect/expect-5.45.4.ebuild4
-rw-r--r--dev-tcltk/expect/files/expect-5.45.4-examples.patch14
-rw-r--r--dev-tcltk/iwidgets/Manifest4
-rw-r--r--dev-tcltk/iwidgets/iwidgets-4.1.1.ebuild62
-rw-r--r--dev-tcltk/snack/Manifest3
-rw-r--r--dev-tcltk/snack/files/alsa-undef-sym.patch6
-rw-r--r--dev-tcltk/snack/snack-2.2.10-r7.ebuild97
-rw-r--r--dev-tcltk/tclperl/Manifest2
-rw-r--r--dev-tcltk/tclperl/tclperl-3.2-r1.ebuild5
-rw-r--r--dev-tcltk/tkimg/Manifest8
-rw-r--r--dev-tcltk/tkimg/files/tkimg-1.4.7-jpeg-9.patch18
-rw-r--r--dev-tcltk/tkimg/files/tkimg-1.4.7-jpeg.patch63
-rw-r--r--dev-tcltk/tkimg/files/tkimg-1.4.7-png.patch80
-rw-r--r--dev-tcltk/tkimg/files/tkimg-1.4.7-tclconfig.patch39
-rw-r--r--dev-tcltk/tkimg/files/tkimg-1.4.7-tiff.patch806
-rw-r--r--dev-tcltk/tkimg/files/tkimg-1.4.7-zlib.patch90
-rw-r--r--dev-tcltk/tkimg/tkimg-1.4.7.ebuild88
19 files changed, 1378 insertions, 15 deletions
diff --git a/dev-tcltk/Manifest.gz b/dev-tcltk/Manifest.gz
index a834f0fbffdc..3e6e96c52b4a 100644
--- a/dev-tcltk/Manifest.gz
+++ b/dev-tcltk/Manifest.gz
Binary files differ
diff --git a/dev-tcltk/expect/Manifest b/dev-tcltk/expect/Manifest
index 74cc65ea4645..9d825afa0e96 100644
--- a/dev-tcltk/expect/Manifest
+++ b/dev-tcltk/expect/Manifest
@@ -3,9 +3,9 @@ AUX expect-5.45-darwin-install_name.patch 727 BLAKE2B fca6df8c6d01bd54f26e6a2311
AUX expect-5.45-format-security.patch 428 BLAKE2B 98e4d1da9f790bb1ab1b0b8481c5c0a747823f0998fff7993316d44cd5b29659467901c9f2e78d6b77342a9f0cb9072730a8600240fa37f240e10cc677162f63 SHA512 b85f0985b908f72d960eeb00567caab048874806c68d259835dc4564e33032524e9026e07ece3ad5f8669d67f7976019efb5dd763ba84b4cc13571ca999c7f06
AUX expect-5.45-gfbsd.patch 996 BLAKE2B 46183afae664e2995403e36b423e0576022063d8acfb681dd98d6e98e54c86588f0e74067b929fe105bc477fedd8709b749857dcdaf5e57fa28445dad34c4139 SHA512 4fa7c4723c9ad2f5811c5762abe202f1d7584a6050c75cab277fe1b6c697809204a9adcf6f6f6c3c215c8df32f3ac9b083da907777b1ea02e1a4e64b8bf91242
AUX expect-5.45-headers.patch 2280 BLAKE2B 6326615eee52aaa7307b32d048af21d657cb308e737995944b7e081a06a4d6b6f3409836b28835e6534ef57215542b524061cb731be3b419b23ab2ba38184079 SHA512 ac55ec9d65e87d5c64327d802fa16eab9f218f71e760090b2afc00b5fdb791859e6d1f35b0d1a5f52e7ff6ffb21e538581a1782976754fe8ae3ca5950c8db55c
-AUX expect-5.45.4-examples.patch 807 BLAKE2B 7b102a0fc95324d7b2aae343edf1d5ecd914234d89e8d57f2c1cdb64e707b58969552ded0eacd17373de42aa7ab60ef32e4b0f41c389de93c15bcffbe52ffe2c SHA512 6a9d8b713c0c20b630d4c61373afde76924ac00b7057cab9b42c0a7f81bf9712006ef7f81e82523262a429b960cacf6dc7742c835617a69b0c248a2e13131f50
+AUX expect-5.45.4-examples.patch 935 BLAKE2B df87d211f6693b836e2e8ca2b63c56a9dd073a8e2ab3f71b38523d4797da0c54411d51bd38e5568c0b850b30ce89d7c984945e704486eb61ca5077709de514fc SHA512 0cad9007f82d2e9fb1994e7b8a84858603cca471f34dbbaddadc30b4594c5cb31cb29749629bcea47b1da4abe3526ddc1c5ea36fb816571bc9c6ffadc120667c
DIST expect5.45.4.tar.gz 632363 BLAKE2B a3a936e7644c922fdd474fa08c45926396ccce9a63e5f65f4d5e157f5160cfe4de47688734b39d13281d9548aac492810f19236e06563903d3d8081e4661048d SHA512 a8dc25e8175f67e029e15cbcfca1705165c1c4cb2dd37eaaaebffb61e3ba132d9519cd73ca5add4c3358a2b0b7a91e878279e8d0b72143ff2c287fce07e4659a
DIST expect5.45.tar.gz 628808 BLAKE2B d7260d3b2ce1bcd72deef121e1f994f45bfa5397291692d794c9b8ad627d7ac183689ba00ba22f728853ac03b6b083fb6f283dc5c453aa991e04263c217be552 SHA512 be991c68241e607b3a689eae7e7966056dbfb577e857331d54a4911bd178c1816425217603b43918ad1b6d2e966271a0f01e79d7028a22e223562d59d10c8c51
-EBUILD expect-5.45.4.ebuild 2179 BLAKE2B 1804f4383356a7a3e0e1f3d2120740d6fd44e9a043392be3925bd854e35f6fef8d89cc4c368dd68f7f7ebe525265514e14bd3ecc0afb8070e35469746379e90d SHA512 ee66f0c8d8c8cb69d022c2e02b06194a1e52c76874fd2fcc835550890c7c0cb100e27a99e06db7857cc9d056015d57f511c7399c712df52082374d1ed2aa8e9b
+EBUILD expect-5.45.4.ebuild 2339 BLAKE2B 4bbf3336ea71939b00a81752c41a6f7572841160a2caf7b51ced61390d22d1b836a9762cc2da7e78a0cdbde21e67a115a9a019417d1246ecb2db48c4bba3a68a SHA512 d990d458d1477c17ca197bffb05f564232960acb140dcdeaf9b79131b8d4c5d3af9cd58fa91ea25928f14b32b7ba9e337f83cbcc2104d439c9c6deadeedd595b
EBUILD expect-5.45.ebuild 2323 BLAKE2B a7ddc999f1d2c1b3c8f1a8c5983b94c89e4a4e8dcc3d06e229b63f359d41ea108c3f2d7d92d2427e6ada3fa01c840cc233cc839335d21c41be67cf84378b9808 SHA512 bfef9b4a10fa57845aa223962a457949db55fdcd41fdb507c9413f4fd223bfe37a5cee231394912d0d919dc10641e9f6908cf445e508fc794b5d2dc4c10d3582
MISC metadata.xml 329 BLAKE2B 9eebe793b4602782f9bd2db8dd7a0cfdfdab3f89400f3ececcf25862220c47e78feebc579b468ae5dc44ae482b8a69f844f141a2f535fbd61dec73f11c8eea83 SHA512 cd5b6144b39381b2b69791171489dd907c3d779ae488b361f744ffacb2459b0c72cb70a72a85dce6bd7a25774e1a42da511dd0d041b25580bf243a515095f3d1
diff --git a/dev-tcltk/expect/expect-5.45.4.ebuild b/dev-tcltk/expect/expect-5.45.4.ebuild
index 7f5402663564..b6d1a0feefe2 100644
--- a/dev-tcltk/expect/expect-5.45.4.ebuild
+++ b/dev-tcltk/expect/expect-5.45.4.ebuild
@@ -72,6 +72,10 @@ src_install() {
if use doc ; then
docinto examples
+ echo dodoc \
+ example/README \
+ $(printf 'example/%s ' $(expect_make_var _SCRIPTS)) \
+ $(printf 'example/%s.man ' $(expect_make_var _SCRIPTS_MANPAGES))
dodoc \
example/README \
$(printf 'example/%s ' $(expect_make_var _SCRIPTS)) \
diff --git a/dev-tcltk/expect/files/expect-5.45.4-examples.patch b/dev-tcltk/expect/files/expect-5.45.4-examples.patch
index 10de8821a01a..cd631b30a5c1 100644
--- a/dev-tcltk/expect/files/expect-5.45.4-examples.patch
+++ b/dev-tcltk/expect/files/expect-5.45.4-examples.patch
@@ -1,21 +1,23 @@
--- a/Makefile.in 2018-09-26 15:59:09.049279363 +0200
+++ b/Makefile.in 2018-09-26 16:00:00.514427553 +0200
-@@ -32,16 +32,12 @@
+@@ -32,15 +32,17 @@
# SCRIPTS is a target. If this is a problem, just comment out the
# SCRIPTS target itself.
-SCRIPTS = timed-run timed-read ftp-rfc autopasswd lpunlock weather \
-- passmass rftp kibitz rlogin-cwd xpstat tkpasswd dislocate xkibitz \
-- tknewsbiff unbuffer mkpasswd cryptdir decryptdir autoexpect \
-- multixterm
+SCRIPTS = unbuffer
++_SCRIPTS = timed-run timed-read ftp-rfc autopasswd lpunlock weather \
+ passmass rftp kibitz rlogin-cwd xpstat tkpasswd dislocate xkibitz \
+- tknewsbiff unbuffer mkpasswd cryptdir decryptdir autoexpect \
++ tknewsbiff mkpasswd cryptdir decryptdir autoexpect \
+ multixterm
# A couple of the scripts have man pages of their own.
# You can delete these too if you don't want'em.
-SCRIPTS_MANPAGES = kibitz dislocate xkibitz tknewsbiff unbuffer mkpasswd \
-- passmass cryptdir decryptdir autoexpect multixterm
+SCRIPTS_MANPAGES = unbuffer
++_SCRIPTS_MANPAGES = kibitz dislocate xkibitz tknewsbiff unbuffer mkpasswd \
+ passmass cryptdir decryptdir autoexpect multixterm
- # allow us to handle null list gracefully, "end_of_list" should not exist
diff --git a/dev-tcltk/iwidgets/Manifest b/dev-tcltk/iwidgets/Manifest
index f73bb1dabbdb..aac1afa066c0 100644
--- a/dev-tcltk/iwidgets/Manifest
+++ b/dev-tcltk/iwidgets/Manifest
@@ -1,6 +1,10 @@
AUX 4.0.1-path.patch 2352 BLAKE2B 4868024ece21be33bb69f95fe827591b559ca8e3cbd77d2e7f06d60acbf40495cd69fe175e3845305bc2b0cc59ecc5c817c85b8fc3f5be5d26f9e9e95fc54ea6 SHA512 1ca0d44372ee3e559dc47d773dde0dde3e1db4e8d6966c825143694ab20dc857feb52611d81f0c1ff045f947e282596430e5a3b4e0ceb673c57f8985fa11260f
DIST itcl3.2.1_src.tgz 427026 BLAKE2B f37612bc21916bfad082d60cd216e28f2e427307e0ea80aa0ca1506c1d247471bfcd20be744a16ef57f5e04db0c34fcc436f2fbe53715462417202377a6cf0e4 SHA512 f6b832f20e53bac66c8bcdbf64aa4aad932ee827fb8059ad2e0dca0c61db01affde6b67c1e0acb331a3837eebcb38282fa7bec90f5d6ed4b65799f4424679f3f
+DIST itcl4.0.3.tar.gz 430522 BLAKE2B e1ce0325a501b0227f6ec721927488dff0e2ea323bb8b03b046ce23964b55cdf44d7633f34546b9b0432785e609bb7dddeb3a300cbb2d82a9e4eb70acb1bfd66 SHA512 9736a08f0f33e0afa677a77eb643454908531786435b73314a80d9ee211c06f037eb0de3c2c2608b728253f9ec613a601d76f16f29964eb06b667ecbb3400df4
+DIST itk4.0.1.tar.gz 182029 BLAKE2B fe3ed0adddf71af9bf795949b18baf7d983edc1e6e95939db18bdf896069083afbc8498935b0c59e2c5f4179fdc6f624e67198afa0755e8183d754c181d50642 SHA512 d64beeb42949e96b384ef2fd571971813697086df8b18af79399cedbb80eba19dc013677957959ea93dc0dcd7cdc4be012b3f9a5f0eedf0bd743550837bd78fc
+DIST iwidgets-4.1.1.tar.gz 720630 BLAKE2B f276159893b19d7af7cbbe3653f9e406184c76065ae7906c34388545bdfff1b9e427a6e9b1985f349e9229c69c935b5b85ae8a0fd15ef28b0a1312fc4fcec8f4 SHA512 56fd91d832c59426b030bde2ec7136e46751503dac1b650d195251cac7ef1d1a7024adb2d995fe835f1039a0f99eb616db97a9e9c591f827a911eea2c233c305
DIST iwidgets4.0.1.tar.gz 647960 BLAKE2B 3dafbe73a40e4babff574a82b4bd68546f109a52197f15228877950560f8089f95a44da93c3ff2723e2a40f26bac0e00ca4f34099e716591b93e9aba846e4257 SHA512 61d1980eb8beb2821fbd8333f5d1f6faa8bf59d98392fee8d166eef213b27c6b66121d42b8eef64d151e5249009be56076a8cf8bb6635072ee6ee4075858182e
EBUILD iwidgets-4.0.1-r3.ebuild 1433 BLAKE2B c866699220a46cbeb18fa09df403e2cea4b8afcfc791f0b2989a035d6fb85c8a19ec7c5ba4c5e0c12dbe71d5a67eeedd651d0252dbe6e4680c23eb49a1eaf422 SHA512 750fd18f58409e9642b7112ea07d23616ba19ce6e2c00df4b7fda62bbf2e7b41c7b4331890c2fb8d10a398c68586f8d6581db206569c13e2f44ec0c81a7af5b0
EBUILD iwidgets-4.0.1.ebuild 863 BLAKE2B 6d4adbb993dd99a0a0b4e1924c7e8f23296430f17d78fbbb9e122bf58949e62b2bbfbc8915ce327b9a76c2d71b280f1293188a06999839d1948d472c361c2dc6 SHA512 1920f61dd8b29a1b8621aa61f802ed0006983f4b4528233219cfbade9e0a7aa89d634365e112b6925a584e2fea3cf2f84e19d4ad26ad12a55a3b57238262bd14
+EBUILD iwidgets-4.1.1.ebuild 1383 BLAKE2B 7e9a6688a40ab5ce1ea5e0468141271e5ba34d6717f457ce609b8f4b2d762e1cefedf6032e3afcdecca3f17228478888ca0435b3f5e97c49fd77dbcc8e24a631 SHA512 d15d3b1977bc0f2e03fc94c9b3f16c2a8b22633e748a2f6250390232a68d31b11b1603c941d1ee57bbd33ad6afbec3caf68b04fd6fbb3e1ab1ae5b74c5d26688
MISC metadata.xml 330 BLAKE2B 31520e9c34731a6b9f743db2dc1ecd3dfa0600c77c64ec8d3274f65a3e4998086684a78bac8b55d3450310d0cc8d3de741fe924a6bc722821aa15deaf1360419 SHA512 404a351da7b77344ba6ad0969162591a9fdc582ca723b43d04ed073bdc164b4df173a3267b333ed4d19aaa48b34c696d485703c85cccd700320e23008ef189b1
diff --git a/dev-tcltk/iwidgets/iwidgets-4.1.1.ebuild b/dev-tcltk/iwidgets/iwidgets-4.1.1.ebuild
new file mode 100644
index 000000000000..5c4d8362e2ed
--- /dev/null
+++ b/dev-tcltk/iwidgets/iwidgets-4.1.1.ebuild
@@ -0,0 +1,62 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit multilib
+
+BASE_URI_ITCLTK="mirror://sourceforge/incrtcl/%5BIncr%20Tcl_Tk%5D-4-source"
+ITCL_VER=4.0.3
+ITK_VER=4.0.1
+
+DESCRIPTION="Widget collection for incrTcl/incrTk"
+HOMEPAGE="http://incrtcl.sourceforge.net/itcl/"
+SRC_URI="
+ mirror://sourceforge/incrtcl/%5BIncr%20Widgets%5D/${PV}/${P}.tar.gz
+ ${BASE_URI_ITCLTK}/itcl%20${ITCL_VER}/itcl${ITCL_VER}.tar.gz
+ ${BASE_URI_ITCLTK}/itk%20${ITK_VER}/itk${ITK_VER}.tar.gz"
+
+LICENSE="HPND Old-MIT tcltk"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~sparc ~x86 ~amd64-linux ~x86-linux"
+IUSE=""
+
+DEPEND="
+ >=dev-tcltk/itcl-${ITCL_VER}
+ >=dev-tcltk/itk-${ITK_VER}"
+RDEPEND="${DEPEND}"
+
+RESTRICT="test"
+
+src_prepare() {
+ default
+ sed \
+ -e "/^\(LIB\|SCRIPT\)_INSTALL_DIR =/s|lib|$(get_libdir)|" \
+ -i Makefile.in || die
+ sed -i \
+ -e "/require/s:Itk:itk:" \
+ iwidgets.tcl.in
+
+ # Bug 115470
+ rm doc/panedwindow.n
+}
+
+src_configure() {
+ (cd ../itcl${ITCL_VER}; ./configure)
+ econf \
+ --with-tcl="${EPREFIX}"/usr/$(get_libdir) \
+ --with-tk="${EPREFIX}"/usr/$(get_libdir) \
+ --with-itcl="${WORKDIR}"/itcl${ITCL_VER} \
+ --with-itk="${WORKDIR}"/itk${ITK_VER}
+}
+
+src_compile() {
+ :
+}
+
+src_install() {
+ default
+
+ # demos are in the wrong place:
+ mv "${ED}/usr/$(get_libdir)/${PN}${PV}/demos" "${ED}/usr/share/doc/${PF}/"
+}
diff --git a/dev-tcltk/snack/Manifest b/dev-tcltk/snack/Manifest
index c4dceb3a8ce9..f024d6b34417 100644
--- a/dev-tcltk/snack/Manifest
+++ b/dev-tcltk/snack/Manifest
@@ -1,6 +1,7 @@
-AUX alsa-undef-sym.patch 1225 BLAKE2B 330c8e3da69aebe63fff74cdf32ab5fce303d6f2ffc2f5a06d9d2e406064e2758527cf3891a43d9971509c52a2fdcb30a1c1798f41a9c6f7d12004cceb53d68b SHA512 2f925029ca7ebcf0028beb2c303d07831879d9750b5f4f463a8d463964301d0182650b9ad50b103be6c0e5eb4cb58a19e02496b7afee8531dcb2c132a292ff97
+AUX alsa-undef-sym.patch 1230 BLAKE2B 9551a46a1852a8503898d74927cd0b83c2508cb06db5292b557e99a1ad6873d749bf23e69d164ee54bdc68f4b4d60adf7f2bfd425d7bbc40f57e8e98d090131e SHA512 d730d6dbf721eeb46333f52824272cdecc48d975d5ef7eb21f7ba18ab2458dff72e33b3eb2dad489e65d651ddabfb478d4457d60affe172bc2433257863f37a0
AUX snack-2.2.10-CVE-2012-6303-fix.patch 778 BLAKE2B f6f34248825da751e81f4079d70fa7dec4dcbc5e63931aee58ad1f021e0a47f0bfdc7a52e69693bf32bae618a49f5c35c757694dd14984ebc79cd62acce2bda7 SHA512 6e2f7fcf8ca0c2792cf52432340f2319b8c82677a3568c9e382f91758f5e6bf26c3a05939d4a748c4198c4e50f27141ebd2cb298d8363765ed6582192d64d3e8
AUX snack-2.2.10-darwin.patch 1108 BLAKE2B 862cd6a36363b45c9a27af08fa4bf347fc3e1a8fbbf972b72dfb4faf4cb135365fbe06377a20a2b77e02126e27de723b642067d8ccedb9947b9aa873069152ce SHA512 0d82270d830c8b7d15dcbead05d80c15666d1bac164f26c045859f7f4dc4c098961b48272ecd0b059a1b36ba8d560c563fe8e40add822f311026faf5f7eeaf0a
DIST snack2.2.10.tar.gz 1798252 BLAKE2B e27b8e7d6082cdcfc06e7eea5ab832fb78ba104de9e56a69c6c9cd688183f7d4c6bdb974e4d5d2bf5ef2bc5518a913ddf17c90db8d10cef4dbee533307cc7718 SHA512 c17ad332fa4f3ded006b97ceca85cada079e4c7cd933768b289c13dadca1b8803fccaf709ec2def5af4abe92c307f25597ebfa6f94df2d681e40815cd7eccb9b
EBUILD snack-2.2.10-r6.ebuild 2012 BLAKE2B db70db5649537e2a4fb3d4484eafd6366e016b384415ec40330c4ff345c934c8554fdd34a91734c074d37096401ae883ad8d359deeeb6fb465950c16157cb0bf SHA512 30849b4e77e6177d41d32004ad1026ef44a57d654d25e583ebe6e7a16a08d0224ea3a79e0df62c7238b19b3d92fb1ab51325404e7f1e5e324208e3ccbeb13d62
+EBUILD snack-2.2.10-r7.ebuild 1940 BLAKE2B e6e88ef6cba18d2b1de2cee927c48208a612e2929e47cfe4d4b3d5256984653acc5ebcac712084f3046d540aff81301ce2c4adcf0253a20f4f4d59472a1c37af SHA512 32339642f2f30d41df5f0f381cba807d80f63a6e1d10870c70865ddd11e653422109cdcdd5927cf0c703b314d7499ab578dcd012e528a102fc328d65f9050231
MISC metadata.xml 259 BLAKE2B 174c3c7b4292350e73a38b09d473abba172ee6e82ca1b5bcb6815a9927609a7fbac063a19498e7c5deaa32530d10d8c493760ff5b6e489f821410cfeccadf566 SHA512 5943f2c9dc9a55862bae4c01be9e1f27304ffc1ce48d67341b4a19793c0bb11fe3d1a419af924ac360aeeafbce28018971602019a559a8a6c5939e05e3567639
diff --git a/dev-tcltk/snack/files/alsa-undef-sym.patch b/dev-tcltk/snack/files/alsa-undef-sym.patch
index 77a222754fe1..c46b9371c752 100644
--- a/dev-tcltk/snack/files/alsa-undef-sym.patch
+++ b/dev-tcltk/snack/files/alsa-undef-sym.patch
@@ -1,5 +1,5 @@
---- unix/jkAudIO_alsa.c 2005-12-14 12:29:38.000000000 +0100
-+++ unix/jkAudIO_alsa.c 2008-09-01 22:51:20.000000000 +0200
+--- a/unix/jkAudIO_alsa.c 2005-12-14 12:29:38.000000000 +0100
++++ b/unix/jkAudIO_alsa.c 2008-09-01 22:51:20.000000000 +0200
@@ -49,6 +49,8 @@
static int minNumChan = 1;
@@ -46,4 +46,4 @@
+ return (played);
}
- void \ No newline at end of file
+ void
diff --git a/dev-tcltk/snack/snack-2.2.10-r7.ebuild b/dev-tcltk/snack/snack-2.2.10-r7.ebuild
new file mode 100644
index 000000000000..8e0d447a69cd
--- /dev/null
+++ b/dev-tcltk/snack/snack-2.2.10-r7.ebuild
@@ -0,0 +1,97 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python2_7 pypy )
+
+inherit autotools distutils-r1 multilib
+
+DESCRIPTION="The Snack Sound Toolkit (Tcl)"
+HOMEPAGE="http://www.speech.kth.se/snack/"
+SRC_URI="http://www.speech.kth.se/snack/dist/${PN}${PV}.tar.gz"
+
+LICENSE="GPL-2"
+KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
+SLOT="0"
+IUSE="alsa examples python vorbis"
+
+RESTRICT="test" # Bug 78354
+
+DEPEND="
+ dev-lang/tcl:0=
+ dev-lang/tk:0=
+ alsa? ( media-libs/alsa-lib )
+ python? ( ${PYTHON_DEPS} )
+ vorbis? ( media-libs/libvorbis )"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}/${PN}${PV}/unix"
+
+PATCHES=(
+ "${FILESDIR}"/alsa-undef-sym.patch
+ "${FILESDIR}"/${P}-CVE-2012-6303-fix.patch
+ )
+
+HTML_DOCS="${WORKDIR}/${PN}${PV}/doc/*"
+
+src_prepare() {
+ # adds -install_name (soname on Darwin)
+ [[ ${CHOST} == *-darwin* ]] && PATCHES+=( "${FILESDIR}"/${P}-darwin.patch )
+
+ sed \
+ -e "s:ar cr:$(tc-getAR) cr:g" \
+ -e "s:-O:${CFLAGS}:g" \
+ -i Makefile.in || die
+
+ cd ..
+
+ default
+
+ sed \
+ -e 's|^\(#define roundf(.*\)|//\1|' \
+ -i generic/jkFormatMP3.c || die
+}
+
+src_configure() {
+ local myconf=""
+
+ use alsa && myconf+=" --enable-alsa"
+
+ if use vorbis; then
+ myconf+=" --with-ogg-include="${EPREFIX}"/usr/include"
+ myconf+=" --with-ogg-lib="${EPREFIX}"/usr/$(get_libdir)"
+ fi
+
+ econf \
+ --libdir="${EPREFIX}"/usr/$(get_libdir) \
+ --includedir="${EPREFIX}"/usr/include \
+ --with-tcl="${EPREFIX}"/usr/$(get_libdir) \
+ --with-tk="${EPREFIX}"/usr/$(get_libdir) \
+ $myconf
+}
+
+src_compile() {
+ default
+}
+
+HTMML_DOCS=""
+
+src_install() {
+ default
+
+ if use python ; then
+ cd "${S}"/../python || die
+ distutils-r1_src_install
+ fi
+
+ cd "${S}"/.. || die
+
+ if use examples ; then
+ docinto examples
+ sed -i -e 's/wish[0-9.]+/wish/g' demos/tcl/* || die
+ dodoc -r demos/tcl
+
+ use python && dodoc -r demos/python
+ fi
+}
diff --git a/dev-tcltk/tclperl/Manifest b/dev-tcltk/tclperl/Manifest
index 5df6c9b87eb7..14005b3f48a1 100644
--- a/dev-tcltk/tclperl/Manifest
+++ b/dev-tcltk/tclperl/Manifest
@@ -1,3 +1,3 @@
DIST tclperl-3.2.tar.bz2 11765 BLAKE2B 408bfa98a706edfed45d57183f2152bfdc9e0a8fa7b53b3d612f1d15e3e3733fc1eb6ef8df501a28446429ec78912b937f143ce43d23ceebc2ced58c6668a6f5 SHA512 aed6fb4b0275cf75e6024336e81e3cd1502d82ae697e79b6142d2f9b3cfb0891541cc585fa83d6219632f11d6eda43b141d009caf5fe7433b2b2ca92aa875c00
-EBUILD tclperl-3.2-r1.ebuild 915 BLAKE2B dd47e4152e19af3e0153c679e7794c77701fb33d28773c5164c33ef66a5cbf34a4ca24c883c8dcdf9317e5dbd34a7744f44587be5795ba29584c47d3b1a2c85f SHA512 aefa222e5c8b1c3dec21158a955e57bbb344f0aed7af2b07140fe1317beb1814379b563d35ff5fa43e554e107d470254daadadf436cef7da39a3349e883fc0db
+EBUILD tclperl-3.2-r1.ebuild 939 BLAKE2B c9693de9764249df6bf7688b063fcd00a5717fe7c14c8e12ce2397b7da61ed15420aa14812a035b0823a7bb54b1494d18ca0df34eb6400184202319910698968 SHA512 dcace10dc901e18cc047f50c57cb34db8a1c93eb9ccf53d45eee8fb1337f40ea359e3fafa2e3aa35c5c6bb90adf2b7b1efeacadde2fb9b4bd5ca8e31b5b08c79
MISC metadata.xml 259 BLAKE2B 174c3c7b4292350e73a38b09d473abba172ee6e82ca1b5bcb6815a9927609a7fbac063a19498e7c5deaa32530d10d8c493760ff5b6e489f821410cfeccadf566 SHA512 5943f2c9dc9a55862bae4c01be9e1f27304ffc1ce48d67341b4a19793c0bb11fe3d1a419af924ac360aeeafbce28018971602019a559a8a6c5939e05e3567639
diff --git a/dev-tcltk/tclperl/tclperl-3.2-r1.ebuild b/dev-tcltk/tclperl/tclperl-3.2-r1.ebuild
index b151af67051a..64e82c79a3e1 100644
--- a/dev-tcltk/tclperl/tclperl-3.2-r1.ebuild
+++ b/dev-tcltk/tclperl/tclperl-3.2-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=5
@@ -16,7 +16,8 @@ IUSE=""
DEPEND="
>=dev-lang/tcl-8.3.3:0
- >=dev-lang/perl-5.6.0"
+ >=dev-lang/perl-5.6.0
+ sys-libs/binutils-libs"
RDEPEND="${DEPEND}"
src_compile() {
diff --git a/dev-tcltk/tkimg/Manifest b/dev-tcltk/tkimg/Manifest
index a4912066dee0..3c5206fb5eab 100644
--- a/dev-tcltk/tkimg/Manifest
+++ b/dev-tcltk/tkimg/Manifest
@@ -1,6 +1,14 @@
AUX tkimg-1.4-jpeg-9.patch 364 BLAKE2B bc9b3e4e404b49a9909d7198929033ebee4ab839f1f2ec71aea9435637bdcb6a3f0dd9c2ed379d9e0f7215853b0e693337876ac0842a37b32533151ef4d9b739 SHA512 4bb6cf0b7774700d607bccfb1590660344754749c40acefcba23046333b1029006acede784177473c629ab63247402bbbc4ab172946485af950c5e8ec6abb8c9
AUX tkimg-1.4-png2.patch 1044 BLAKE2B 236e5fa637b4b1cc6c74dd85d4fe73520941af360873b0455ab146c443d844470d6afb67071976cd1850a79e0906b7374947d2c802c8ba85f83682c6ae0f77a5 SHA512 fbf982af5446fc54212745eee8338d5dc4b169f79045963be23a84c7a0ef9e68f54d895156b4f040f6585499f1ead9967ac0ce57106e3ca3615fbaa9adcd1fb7
+AUX tkimg-1.4.7-jpeg-9.patch 364 BLAKE2B bc9b3e4e404b49a9909d7198929033ebee4ab839f1f2ec71aea9435637bdcb6a3f0dd9c2ed379d9e0f7215853b0e693337876ac0842a37b32533151ef4d9b739 SHA512 4bb6cf0b7774700d607bccfb1590660344754749c40acefcba23046333b1029006acede784177473c629ab63247402bbbc4ab172946485af950c5e8ec6abb8c9
+AUX tkimg-1.4.7-jpeg.patch 2806 BLAKE2B 081284be08ef881e48910187b29bdc83f80b24caa62e0f440d1b5b61bf204acbc3db096f918d3e81b0df3182e8cfbcb6f45dc5e67764dac757008ca6b7484e27 SHA512 49afa55a51e5e62358470ff40b5ef89069f9700cad3232744f443c82fc622b56c6890ad80b3a47f38c58637d7327b15f220d5b708845d519ed9638be5d58422c
+AUX tkimg-1.4.7-png.patch 2853 BLAKE2B 5f3b38d8138242a25dad11d96bf8472414549a2509f7f709f21c7205e7cbfab56c1b9397f0e993eb2fe2b243b67818084ccaa81be46b8d5821b6398fb964dc55 SHA512 89230f0a8b3d6ffbe201ce8e66297f7cc5067aecb08eee417c738aed9d6bf0fd6792234a9292f66462df70cf71f4f451956a8da208ce9474a55054a68ac8657d
+AUX tkimg-1.4.7-tclconfig.patch 1330 BLAKE2B df85cad53dcf18168e72f069ccae0125396038c7fcf03fbae7f402d2b580684201ab54e06f06b46fda6deb1c85db6b27f3d86938ca6849c6375fa51fc5ef5876 SHA512 b7d5325a33085a8ddd4dd51d19c2c7e5e46692b40a38bd3314518325a20902035a3ac3f9c56e4b7e532b195674e44b83be6ea5be2ef66c7064680bee3bf3ef93
+AUX tkimg-1.4.7-tiff.patch 36744 BLAKE2B 8c61013cb52af69a7ac8d0f4fdb3b1727711a2f2aa8e31fa09f7e2bdcb53780d02f1e19e9f13a102df7616cc4b359ded068e22ea49918a49a6b39514561452f3 SHA512 2d9723ea1d9c092d77bb2f8bedc9571c4853a158f9f14750e731b926b762dc050e180f96822c610a41d6903c23e2f94ae4e687b5822196c143d6ff6893f0624c
+AUX tkimg-1.4.7-zlib.patch 3248 BLAKE2B f53fe1beff672e53efc2f7c8f2fa3954eced064d9deda0e0d8160aaf8b1a598ffdc35bd1d7be254588a5a8f61c95d41287910ed0a88c15767d53781e2b2e0fa4 SHA512 9723e9b2a5ec8563946b5a608a59ea5ec52b044a0b350cb91e5831d0235a7ae0b93e108b87db84a3b9baf552a12e2452e288dae37e34c3730e4dd81456818d06
+DIST Img-Source-1.4.7.tar.gz 7259144 BLAKE2B 48794a21564864c5b20953d1504acde5512be4aaa8db0834f63b15431af0bfa8bb2050f241e7b2d9b383480b59e17567f26f45c91e9f9a7fc58600cfe6ef6595 SHA512 6a395d6263e2f46151d0d3f5c6044d87a933617981200d2663328b8c7993b8a3aacba45568cee7aa2f5d8c8d020cb63956179aab5147d25d91b8834c0dfa4b9d
DIST tkimg-1.4-patchset-1.tar.xz 17956 BLAKE2B f6d3e5e5f258434bd02e21271357f2e2013ce7c90f2d1862e8e7ac0f1cf235d39b1713434a00261ec442c1843a70194b4d14081a5d4cec07c8ad6bf45bbf1db3 SHA512 bd20e0beaa224c42e856e6d44d86c2a5f04c28d096c561f44c4afcf8c821bf859c602156a9be60f23f906e8da2f43c89ca358d32e8f9497296e7c5a5bf23ed69
DIST tkimg1.4.tar.bz2 4912894 BLAKE2B 630ce6b95f42f0883373970ff919493d34cf4a61119af9520702079c6272f9b6ddbc6241197b39ac509d9b2c76c6f3d3bd29944acea4cdc1c82134cba473818a SHA512 b03aba6e21e35b8733dbc4fa66fae67284a05e68248e5afb2a85c1520c74d0c6c5091860a3ab682f4a662a318c562339e9b7b82f050e63bbf48d1b4757d379a1
EBUILD tkimg-1.4-r9.ebuild 1842 BLAKE2B 470dcd82e9d64a0e809c39679ce8fa602f14d085eba6a665fbb112f0810a216378688a5fdec79e8bd16a6a06f4fa0a6efdac8e6742aa90449e2d674c38debc9d SHA512 35c3e79accf91eb48d577eb019c65125ca4ced5add2c2130599b3d92a8f4970ad1238df0dcf6cc22dadadb51d624338515933a522918b0b3cd1cd39e1f8d1e89
+EBUILD tkimg-1.4.7.ebuild 1850 BLAKE2B 9903b3fb237417316ccebdc7a00ac7f668192a9d5284cb98609b405000b88229c6f79c4ddb22d52835eceb25220015d2f570ce4303c3a8927c06fb08ae3efc14 SHA512 858877fc5ab8a96fb91727bd94cf6a80173cc4b5ae6d05560ebf90d105e11cc00704ee3d8faf8723c0c00a4ac642af6901e9d750aece10599487efbb5f467898
MISC metadata.xml 436 BLAKE2B 264c09c99797be5f1a242a1146d8552ab4cf632ad404d950829d102b2f3f8a40c5542ff04e9770a4870153843e462298af802e6caaff9e5bbb37abdb32697155 SHA512 d0401ca91110d4ffb90190d7135d3a5e6ef1aa0d3106cd7a84e72e64f3f565ee2ef30ac19aa2f119838a50d9c926132b93f2723a763d25b819db42fc57c16adf
diff --git a/dev-tcltk/tkimg/files/tkimg-1.4.7-jpeg-9.patch b/dev-tcltk/tkimg/files/tkimg-1.4.7-jpeg-9.patch
new file mode 100644
index 000000000000..23000ac7922c
--- /dev/null
+++ b/dev-tcltk/tkimg/files/tkimg-1.4.7-jpeg-9.patch
@@ -0,0 +1,18 @@
+Fix build with jpeg-9, bug #520886
+
+--- a/jpeg/jpeg.c 2010-06-17 15:40:24.000000000 +0200
++++ b/jpeg/jpeg.c 2018-02-07 23:26:38.050073397 +0100
+@@ -53,6 +53,13 @@
+ */
+
+ #include "tkimg.h"
++#ifndef FALSE
++#define FALSE 0
++#endif
++#ifndef TRUE
++#define TRUE 1
++#endif
++#define HAVE_BOOLEAN
+ #include "jpegtcl.h"
+
+ static int SetupJPegLibrary(Tcl_Interp *interp);
diff --git a/dev-tcltk/tkimg/files/tkimg-1.4.7-jpeg.patch b/dev-tcltk/tkimg/files/tkimg-1.4.7-jpeg.patch
new file mode 100644
index 000000000000..969b953a19a3
--- /dev/null
+++ b/dev-tcltk/tkimg/files/tkimg-1.4.7-jpeg.patch
@@ -0,0 +1,63 @@
+ libjpeg/Makefile.in | 2 +-
+ libjpeg/configure.in | 19 -------------------
+ libjpeg/jpegtclDecls.h | 4 ++--
+ 4 files changed, 4 insertions(+), 39 deletions(-)
+
+diff --git a/libjpeg/Makefile.in b/libjpeg/Makefile.in
+index cf2aca8..2d937b1 100644
+--- a/libjpeg/Makefile.in
++++ b/libjpeg/Makefile.in
+@@ -107,7 +107,7 @@ RANLIB = @RANLIB@
+ RANLIB_STUB = @RANLIB_STUB@
+ SHLIB_CFLAGS = @SHLIB_CFLAGS@
+ SHLIB_LD = @SHLIB_LD@
+-SHLIB_LD_LIBS = @SHLIB_LD_LIBS@
++SHLIB_LD_LIBS = @SHLIB_LD_LIBS@ -ljpeg
+ STLIB_LD = @STLIB_LD@
+ TCL_DEFS = @TCL_DEFS@
+ TCL_BIN_DIR = @TCL_BIN_DIR@
+diff --git a/libjpeg/configure.in b/libjpeg/configure.in
+index 378806d..327e2bd 100644
+--- a/libjpeg/configure.in
++++ b/libjpeg/configure.in
+@@ -54,25 +54,6 @@ JPEG_CC=$CC
+
+ TEA_ADD_SOURCES([jpegtcl.c jpegtclStubInit.c])
+
+-TEA_ADD_SOURCES([
+- ../compat/libjpeg/jcapimin.c ../compat/libjpeg/jcapistd.c ../compat/libjpeg/jccoefct.c
+- ../compat/libjpeg/jccolor.c ../compat/libjpeg/jcdctmgr.c ../compat/libjpeg/jchuff.c
+- ../compat/libjpeg/jcinit.c ../compat/libjpeg/jcmainct.c ../compat/libjpeg/jcmarker.c
+- ../compat/libjpeg/jcmaster.c ../compat/libjpeg/jcomapi.c ../compat/libjpeg/jcparam.c
+- ../compat/libjpeg/jcarith.c ../compat/libjpeg/jcprepct.c ../compat/libjpeg/jcsample.c
+- ../compat/libjpeg/jctrans.c ../compat/libjpeg/jdapimin.c ../compat/libjpeg/jdapistd.c
+- ../compat/libjpeg/jdatadst.c ../compat/libjpeg/jdatasrc.c ../compat/libjpeg/jdcoefct.c
+- ../compat/libjpeg/jdcolor.c ../compat/libjpeg/jddctmgr.c ../compat/libjpeg/jdhuff.c
+- ../compat/libjpeg/jdinput.c ../compat/libjpeg/jdmainct.c ../compat/libjpeg/jdmarker.c
+- ../compat/libjpeg/jdmaster.c ../compat/libjpeg/jdmerge.c ../compat/libjpeg/jdarith.c
+- ../compat/libjpeg/jdpostct.c ../compat/libjpeg/jdsample.c ../compat/libjpeg/jdtrans.c
+- ../compat/libjpeg/jerror.c ../compat/libjpeg/jfdctflt.c ../compat/libjpeg/jfdctfst.c
+- ../compat/libjpeg/jfdctint.c ../compat/libjpeg/jidctflt.c ../compat/libjpeg/jidctfst.c
+- ../compat/libjpeg/jidctint.c ../compat/libjpeg/jaricom.c ../compat/libjpeg/jquant1.c
+- ../compat/libjpeg/jquant2.c ../compat/libjpeg/jutils.c ../compat/libjpeg/jmemmgr.c
+- ../compat/libjpeg/jmemansi.c
+-])
+-
+ TEA_ADD_HEADERS([jpegtcl.h jpegtclDecls.h])
+
+ TEA_ADD_INCLUDES([-I\"`\${CYGPATH} \${srcdir}`\"])
+diff --git a/libjpeg/jpegtclDecls.h b/libjpeg/jpegtclDecls.h
+index fef99c2..f751b16 100644
+--- a/libjpeg/jpegtclDecls.h
++++ b/libjpeg/jpegtclDecls.h
+@@ -30,8 +30,8 @@ EXTERN int Jpegtcl_SafeInit(Tcl_Interp *interp);
+
+ /* undef Tcl macros that conflict with libjpeg stuff (sigh) */
+ #undef EXTERN
+-#include "../compat/libjpeg/jpeglib.h"
+-#include "../compat/libjpeg/jerror.h"
++#include "@GENTOO_PORTAGE_EPREFIX@/usr/include/jpeglib.h"
++#include "@GENTOO_PORTAGE_EPREFIX@/usr/include/jerror.h"
+
+ /* !BEGIN!: Do not edit below this line. */
+
diff --git a/dev-tcltk/tkimg/files/tkimg-1.4.7-png.patch b/dev-tcltk/tkimg/files/tkimg-1.4.7-png.patch
new file mode 100644
index 000000000000..787bdb3e7d42
--- /dev/null
+++ b/dev-tcltk/tkimg/files/tkimg-1.4.7-png.patch
@@ -0,0 +1,80 @@
+ libpng/Makefile.in | 4 +-
+ libpng/configure | 7 +-
+ libpng/configure.in | 8 -
+ libpng/pngtcl.decls | 215 +++++++++---------
+ libpng/pngtclDecls.h | 565 ++++++++++++++++++++++++------------------------
+ libpng/pngtclStubInit.c | 2 +-
+ 6 files changed, 388 insertions(+), 413 deletions(-)
+
+diff --git a/libpng/Makefile.in b/libpng/Makefile.in
+index eb8b87e..008d331 100644
+--- a/libpng/Makefile.in
++++ b/libpng/Makefile.in
+@@ -111,7 +111,7 @@ RANLIB = @RANLIB@
+ RANLIB_STUB = @RANLIB_STUB@
+ SHLIB_CFLAGS = @SHLIB_CFLAGS@
+ SHLIB_LD = @SHLIB_LD@
+-SHLIB_LD_LIBS = @SHLIB_LD_LIBS@
++SHLIB_LD_LIBS = @SHLIB_LD_LIBS@ -lpng
+ STLIB_LD = @STLIB_LD@
+ TCL_DEFS = @TCL_DEFS@
+ TCL_BIN_DIR = @TCL_BIN_DIR@
+@@ -154,7 +154,7 @@ CONFIG_CLEAN_FILES = Makefile
+ CPPFLAGS = @CPPFLAGS@
+ LIBS = @PKG_LIBS@ @LIBS@
+ AR = @AR@
+-CFLAGS = @CFLAGS@ -DPNG_IMPEXP=MODULE_SCOPE -DPNG_EXTERN=MODULE_SCOPE
++CFLAGS = @CFLAGS@ -DPNG_IMPEXP= -DPNG_EXTERN=MODULE_SCOPE
+ COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
+
+ #========================================================================
+@@ -179,7 +179,7 @@
+ # of the Makefile, in the "BINARIES" variable.
+ #========================================================================
+
+-binaries: pnglibconf.h $(BINARIES) pkgIndex.tcl
++binaries: $(BINARIES) pkgIndex.tcl
+
+ libraries:
+
+diff --git a/libpng/configure.in b/libpng/configure.in
+index c36befe..cd049c0 100644
+--- a/libpng/configure.in
++++ b/libpng/configure.in
+@@ -65,14 +65,6 @@ IMG_SRCPATH(zlibtcl)
+
+ TEA_ADD_SOURCES([pngtcl.c pngtclStubInit.c])
+
+-TEA_ADD_SOURCES([
+- ../compat/libpng/png.c ../compat/libpng/pngerror.c ../compat/libpng/pngmem.c
+- ../compat/libpng/pngpread.c ../compat/libpng/pngread.c ../compat/libpng/pngrio.c
+- ../compat/libpng/pngrtran.c ../compat/libpng/pngrutil.c ../compat/libpng/pngset.c
+- ../compat/libpng/pngtrans.c ../compat/libpng/pngwio.c ../compat/libpng/pngwrite.c
+- ../compat/libpng/pngwtran.c ../compat/libpng/pngwutil.c ../compat/libpng/pngget.c
+-])
+-
+ TEA_ADD_HEADERS([pngtcl.h pngtclDecls.h])
+ TEA_ADD_INCLUDES([-I\"`\${CYGPATH} \${zlibtcl_SRC_PATH}`\"])
+ TEA_ADD_INCLUDES([-I\"`\${CYGPATH} \${zlibtcl_BUILD_PATH}`\"])
+diff --git a/libpng/pngtclDecls.h b/libpng/pngtclDecls.h
+index adf987d..2b29fa3 100644
+--- a/libpng/pngtclDecls.h
++++ b/libpng/pngtclDecls.h
+@@ -20,7 +20,6 @@
+ # undef TCL_STORAGE_CLASS
+ # define TCL_STORAGE_CLASS DLLEXPORT
+ #else
+-# define PNG_IMPEXP extern
+ # undef USE_PNGTCL_STUBS
+ # define USE_PNGTCL_STUBS 1
+ #endif
+@@ -28,7 +27,8 @@
+ EXTERN int Pngtcl_Init(Tcl_Interp *interp);
+ EXTERN int Pngtcl_SafeInit(Tcl_Interp *interp);
+
+-#include "../compat/libpng/png.h"
++#include <@GENTOO_PORTAGE_EPREFIX@/usr/include/png.h>
++#include <@GENTOO_PORTAGE_EPREFIX@/usr/include/zlib.h>
+
+ /* !BEGIN!: Do not edit below this line. */
+
diff --git a/dev-tcltk/tkimg/files/tkimg-1.4.7-tclconfig.patch b/dev-tcltk/tkimg/files/tkimg-1.4.7-tclconfig.patch
new file mode 100644
index 000000000000..23aa9429722e
--- /dev/null
+++ b/dev-tcltk/tkimg/files/tkimg-1.4.7-tclconfig.patch
@@ -0,0 +1,39 @@
+--- a/tclconfig/tcl.m4 2018-10-02 11:46:05.621138841 +0200
++++ b/tclconfig/tcl.m4 2018-10-02 11:46:56.041138841 +0200
+@@ -1076,7 +1076,7 @@
+ CFLAGS=$hold_cflags])
+ AS_IF([test $tcl_cv_cc_visibility_hidden = yes], [
+ AC_DEFINE(MODULE_SCOPE,
+- [extern __attribute__((__visibility__("hidden")))],
++ [extern],
+ [Compiler support for module scope symbols])
+ AC_DEFINE(HAVE_HIDDEN, [1], [Compiler support for module scope symbols])
+ ])
+@@ -1298,7 +1298,7 @@
+ # mingw gcc mode
+ AC_CHECK_TOOL(RC, windres)
+ CFLAGS_DEBUG="-g"
+- CFLAGS_OPTIMIZE="-O2 -fomit-frame-pointer"
++ CFLAGS_OPTIMIZE=""
+ SHLIB_LD='${CC} -shared'
+ UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a'
+ LDFLAGS_CONSOLE="-wl,--subsystem,console ${lflags}"
+@@ -1557,7 +1557,7 @@
+ SHLIB_SUFFIX=".so"
+
+ # TEA specific:
+- CFLAGS_OPTIMIZE="-O2 -fomit-frame-pointer"
++ CFLAGS_OPTIMIZE=""
+
+ # TEA specific: use LDFLAGS_DEFAULT instead of LDFLAGS
+ SHLIB_LD='${CC} -shared ${CFLAGS} ${LDFLAGS_DEFAULT}'
+@@ -3290,9 +3290,6 @@
+ hold_cflags=$CFLAGS; CFLAGS="$CFLAGS -pipe"
+ AC_TRY_COMPILE(,, tcl_cv_cc_pipe=yes, tcl_cv_cc_pipe=no)
+ CFLAGS=$hold_cflags])
+- if test $tcl_cv_cc_pipe = yes; then
+- CFLAGS="$CFLAGS -pipe"
+- fi
+ fi
+
+ #--------------------------------------------------------------------
diff --git a/dev-tcltk/tkimg/files/tkimg-1.4.7-tiff.patch b/dev-tcltk/tkimg/files/tkimg-1.4.7-tiff.patch
new file mode 100644
index 000000000000..39b97e92bea9
--- /dev/null
+++ b/dev-tcltk/tkimg/files/tkimg-1.4.7-tiff.patch
@@ -0,0 +1,806 @@
+ libtiff/Makefile.in | 6 +-
+ libtiff/configure | 17 +--
+ libtiff/configure.in | 2 +-
+ libtiff/tifftclDecls.h | 368 ++++++++++++++++++++++------------------------
+ libtiff/tifftclStubInit.c | 20 ++-
+ tests/tiff.test | 6 +-
+ tiff/configure | 2 +-
+ tiff/tests/tiff.test | 6 +-
+ tiff/tiff.c | 12 +-
+ 9 files changed, 212 insertions(+), 227 deletions(-)
+
+diff --git a/libtiff/Makefile.in b/libtiff/Makefile.in
+index ebd81fc..08062b7 100644
+--- a/libtiff/Makefile.in
++++ b/libtiff/Makefile.in
+@@ -35,8 +35,8 @@
+
+ # tif_fax3sm is special. It is generated.
+
+-PKG_SOURCES = @PKG_SOURCES@ tif_fax3sm.c
+-PKG_OBJECTS = @PKG_OBJECTS@ tif_fax3sm.$(OBJEXT)
++PKG_SOURCES = @PKG_SOURCES@
++PKG_OBJECTS = @PKG_OBJECTS@
+
+ PKG_STUB_SOURCES = @PKG_STUB_SOURCES@
+ PKG_STUB_OBJECTS = @PKG_STUB_OBJECTS@
+@@ -109,7 +109,7 @@ RANLIB = @RANLIB@
+ RANLIB_STUB = @RANLIB_STUB@
+ SHLIB_CFLAGS = @SHLIB_CFLAGS@
+ SHLIB_LD = @SHLIB_LD@
+-SHLIB_LD_LIBS = @SHLIB_LD_LIBS@
++SHLIB_LD_LIBS = @SHLIB_LD_LIBS@ -ltiff
+ STLIB_LD = @STLIB_LD@
+ TCL_DEFS = @TCL_DEFS@
+ TCL_BIN_DIR = @TCL_BIN_DIR@
+diff --git a/libtiff/configure.in b/libtiff/configure.in
+index 4145e65..c7c8a2d 100644
+--- a/libtiff/configure.in
++++ b/libtiff/configure.in
+@@ -81,20 +81,6 @@
+
+ TEA_ADD_SOURCES([tifftcl.c tifftclStubInit.c])
+
+-TEA_ADD_SOURCES([
+- ../compat/libtiff/libtiff/tif_aux.c ../compat/libtiff/libtiff/tif_close.c ../compat/libtiff/libtiff/tif_codec.c
+- ../compat/libtiff/libtiff/tif_compress.c ../compat/libtiff/libtiff/tif_dir.c ../compat/libtiff/libtiff/tif_dirinfo.c
+- ../compat/libtiff/libtiff/tif_dirread.c ../compat/libtiff/libtiff/tif_dirwrite.c ../compat/libtiff/libtiff/tif_dumpmode.c
+- ../compat/libtiff/libtiff/tif_error.c ../compat/libtiff/libtiff/tif_fax3.c
+- ../compat/libtiff/libtiff/tif_getimage.c ../compat/libtiff/libtiff/tif_flush.c ../compat/libtiff/libtiff/tif_luv.c
+- ../compat/libtiff/libtiff/tif_lzw.c ../compat/libtiff/libtiff/tif_next.c ../compat/libtiff/libtiff/tif_open.c
+- ../compat/libtiff/libtiff/tif_packbits.c ../compat/libtiff/libtiff/tif_predict.c ../compat/libtiff/libtiff/tif_print.c
+- ../compat/libtiff/libtiff/tif_read.c ../compat/libtiff/libtiff/tif_swab.c ../compat/libtiff/libtiff/tif_strip.c
+- ../compat/libtiff/libtiff/tif_thunder.c ../compat/libtiff/libtiff/tif_tile.c ../compat/libtiff/libtiff/tif_version.c
+- ../compat/libtiff/libtiff/tif_warning.c ../compat/libtiff/libtiff/tif_write.c
+- ../compat/libtiff/libtiff/tif_color.c ../compat/libtiff/libtiff/tif_extension.c
+-])
+-
+ TEA_ADD_HEADERS([tifftcl.h tifftclDecls.h])
+ TEA_ADD_INCLUDES([-I\"`\${CYGPATH} \${srcdir}`\"])
+ TEA_ADD_INCLUDES([-I\"./libtiff\"])
+@@ -118,7 +118,6 @@
+ TEA_ADD_SOURCES([../compat/libtiff/libtiff/tif_win32.c])
+ else
+ CLEANFILES=""
+- TEA_ADD_SOURCES([../compat/libtiff/libtiff/tif_unix.c])
+ fi
+ AC_SUBST(CLEANFILES)
+
+diff --git a/libtiff/tifftclDecls.h b/libtiff/tifftclDecls.h
+index 1732cad..1c71857 100644
+--- a/libtiff/tifftclDecls.h
++++ b/libtiff/tifftclDecls.h
+@@ -34,9 +34,13 @@ EXTERN int Tifftcl_SafeInit(Tcl_Interp *interp);
+ */
+ #undef INLINE
+
+-#include "../compat/libtiff/libtiff/tiffio.h"
+-#include "../compat/libtiff/libtiff/tiffiop.h"
+-#include "../compat/libtiff/libtiff/tif_predict.h"
++#include <@GENTOO_PORTAGE_EPREFIX@/usr/include/tiffio.h>
++
++/*
++ * Typedefs for ``method pointers'' used internally.
++ */
++typedef unsigned char tidataval_t; /* internal image data value type */
++typedef tidataval_t* tidata_t; /* reference to internal image data */
+
+ /* !BEGIN!: Do not edit below this line. */
+
+@@ -54,18 +58,18 @@ TIFFTCLAPI TIFFCodec * TIFFRegisterCODEC(uint16 a, const char *b,
+ /* 3 */
+ TIFFTCLAPI void TIFFUnRegisterCODEC(TIFFCodec *a);
+ /* 4 */
+-TIFFTCLAPI tdata_t _TIFFmalloc(tsize_t a);
++TIFFTCLAPI tdata_t _TIFFmalloc(tmsize_t a);
+ /* 5 */
+-TIFFTCLAPI tdata_t _TIFFrealloc(tdata_t a, tsize_t b);
++TIFFTCLAPI tdata_t _TIFFrealloc(void *a, tmsize_t b);
+ /* 6 */
+-TIFFTCLAPI void _TIFFmemset(tdata_t a, int b, tsize_t c);
++TIFFTCLAPI void _TIFFmemset(void *a, int b, tmsize_t c);
+ /* 7 */
+-TIFFTCLAPI void _TIFFmemcpy(tdata_t a, const tdata_t b, tsize_t c);
++TIFFTCLAPI void _TIFFmemcpy(void *a, const void *b, tmsize_t c);
+ /* 8 */
+-TIFFTCLAPI int _TIFFmemcmp(const tdata_t a, const tdata_t b,
+- tsize_t c);
++TIFFTCLAPI int _TIFFmemcmp(const void *a, const void *b,
++ tmsize_t c);
+ /* 9 */
+-TIFFTCLAPI void _TIFFfree(tdata_t a);
++TIFFTCLAPI void _TIFFfree(void *a);
+ /* 10 */
+ TIFFTCLAPI void TIFFClose(TIFF *tiffptr);
+ /* 11 */
+@@ -73,30 +77,30 @@ TIFFTCLAPI int TIFFFlush(TIFF *tiffptr);
+ /* 12 */
+ TIFFTCLAPI int TIFFFlushData(TIFF *tiffptr);
+ /* 13 */
+-TIFFTCLAPI int TIFFGetField(TIFF *tiffptr, ttag_t a, ...);
++TIFFTCLAPI int TIFFGetField(TIFF *tiffptr, uint32 a, ...);
+ /* 14 */
+-TIFFTCLAPI int TIFFVGetField(TIFF *tiffptr, ttag_t a, va_list b);
++TIFFTCLAPI int TIFFVGetField(TIFF *tiffptr, uint32 a, va_list b);
+ /* 15 */
+-TIFFTCLAPI int TIFFGetFieldDefaulted(TIFF *tiffptr, ttag_t a, ...);
++TIFFTCLAPI int TIFFGetFieldDefaulted(TIFF *tiffptr, uint32 a, ...);
+ /* 16 */
+-TIFFTCLAPI int TIFFVGetFieldDefaulted(TIFF *tiffptr, ttag_t a,
++TIFFTCLAPI int TIFFVGetFieldDefaulted(TIFF *tiffptr, uint32 a,
+ va_list b);
+ /* 17 */
+ TIFFTCLAPI int TIFFReadDirectory(TIFF *tiffptr);
+ /* 18 */
+-TIFFTCLAPI tsize_t TIFFScanlineSize(TIFF *tiffptr);
++TIFFTCLAPI tmsize_t TIFFScanlineSize(TIFF *tiffptr);
+ /* 19 */
+-TIFFTCLAPI tsize_t TIFFRasterScanlineSize(TIFF *tiffptr);
++TIFFTCLAPI tmsize_t TIFFRasterScanlineSize(TIFF *tiffptr);
+ /* 20 */
+-TIFFTCLAPI tsize_t TIFFStripSize(TIFF *tiffptr);
++TIFFTCLAPI tmsize_t TIFFStripSize(TIFF *tiffptr);
+ /* 21 */
+-TIFFTCLAPI tsize_t TIFFVStripSize(TIFF *tiffptr, uint32 a);
++TIFFTCLAPI tmsize_t TIFFVStripSize(TIFF *tiffptr, uint32 a);
+ /* 22 */
+-TIFFTCLAPI tsize_t TIFFTileRowSize(TIFF *tiffptr);
++TIFFTCLAPI tmsize_t TIFFTileRowSize(TIFF *tiffptr);
+ /* 23 */
+-TIFFTCLAPI tsize_t TIFFTileSize(TIFF *tiffptr);
++TIFFTCLAPI tmsize_t TIFFTileSize(TIFF *tiffptr);
+ /* 24 */
+-TIFFTCLAPI tsize_t TIFFVTileSize(TIFF *tiffptr, uint32 a);
++TIFFTCLAPI tmsize_t TIFFVTileSize(TIFF *tiffptr, uint32 a);
+ /* 25 */
+ TIFFTCLAPI uint32 TIFFDefaultStripSize(TIFF *tiffptr, uint32 a);
+ /* 26 */
+@@ -117,21 +121,21 @@ TIFFTCLAPI int TIFFIsMSB2LSB(TIFF *tiffptr);
+ /* 33 */
+ TIFFTCLAPI uint32 TIFFCurrentRow(TIFF *tiffptr);
+ /* 34 */
+-TIFFTCLAPI tdir_t TIFFCurrentDirectory(TIFF *tiffptr);
++TIFFTCLAPI uint16 TIFFCurrentDirectory(TIFF *tiffptr);
+ /* 35 */
+-TIFFTCLAPI tdir_t TIFFNumberOfDirectories(TIFF *tiffptr);
++TIFFTCLAPI uint16 TIFFNumberOfDirectories(TIFF *tiffptr);
+ /* 36 */
+-TIFFTCLAPI uint32 TIFFCurrentDirOffset(TIFF *tiffptr);
++TIFFTCLAPI uint64 TIFFCurrentDirOffset(TIFF *tiffptr);
+ /* 37 */
+-TIFFTCLAPI tstrip_t TIFFCurrentStrip(TIFF *tiffptr);
++TIFFTCLAPI uint32 TIFFCurrentStrip(TIFF *tiffptr);
+ /* 38 */
+-TIFFTCLAPI ttile_t TIFFCurrentTile(TIFF *tiffptr);
++TIFFTCLAPI uint32 TIFFCurrentTile(TIFF *tiffptr);
+ /* 39 */
+-TIFFTCLAPI int TIFFReadBufferSetup(TIFF *tiffptr, tdata_t a,
+- tsize_t b);
++TIFFTCLAPI int TIFFReadBufferSetup(TIFF *tiffptr, void *a,
++ tmsize_t b);
+ /* 40 */
+-TIFFTCLAPI int TIFFWriteBufferSetup(TIFF *tiffptr, tdata_t a,
+- tsize_t b);
++TIFFTCLAPI int TIFFWriteBufferSetup(TIFF *tiffptr, void *a,
++ tmsize_t b);
+ /* 41 */
+ TIFFTCLAPI int TIFFWriteCheck(TIFF *tiffptr, int a, const char *b);
+ /* 42 */
+@@ -139,33 +143,31 @@ TIFFTCLAPI int TIFFCreateDirectory(TIFF *tiffptr);
+ /* 43 */
+ TIFFTCLAPI int TIFFLastDirectory(TIFF *tiffptr);
+ /* 44 */
+-TIFFTCLAPI int TIFFSetDirectory(TIFF *tiffptr, tdir_t a);
++TIFFTCLAPI int TIFFSetDirectory(TIFF *tiffptr, uint16 a);
+ /* 45 */
+-TIFFTCLAPI int TIFFSetSubDirectory(TIFF *tiffptr, uint32 a);
++TIFFTCLAPI int TIFFSetSubDirectory(TIFF *tiffptr, uint64 a);
+ /* 46 */
+-TIFFTCLAPI int TIFFUnlinkDirectory(TIFF *tiffptr, tdir_t a);
++TIFFTCLAPI int TIFFUnlinkDirectory(TIFF *tiffptr, uint16 a);
+ /* 47 */
+-TIFFTCLAPI int TIFFSetField(TIFF *tiffptr, ttag_t a, ...);
++TIFFTCLAPI int TIFFSetField(TIFF *tiffptr, uint32 a, ...);
+ /* 48 */
+-TIFFTCLAPI int TIFFVSetField(TIFF *tiffptr, ttag_t a, va_list b);
++TIFFTCLAPI int TIFFVSetField(TIFF *tiffptr, uint32 a, va_list b);
+ /* 49 */
+ TIFFTCLAPI int TIFFWriteDirectory(TIFF *tiffptr);
+ /* 50 */
+-TIFFTCLAPI int TIFFReassignTagToIgnore(enum TIFFIgnoreSense a,
+- int b);
+ /* 51 */
+ TIFFTCLAPI void TIFFPrintDirectory(TIFF *tiffptr, FILE *a, long b);
+ /* 52 */
+-TIFFTCLAPI int TIFFReadScanline(TIFF *tiffptr, tdata_t a, uint32 b,
+- tsample_t c);
++TIFFTCLAPI int TIFFReadScanline(TIFF *tiffptr, void *a, uint32 b,
++ uint16 c);
+ /* 53 */
+-TIFFTCLAPI int TIFFWriteScanline(TIFF *tiffptr, tdata_t a, uint32 b,
+- tsample_t c);
++TIFFTCLAPI int TIFFWriteScanline(TIFF *tiffptr, void *a, uint32 b,
++ uint16 c);
+ /* 54 */
+ TIFFTCLAPI int TIFFReadRGBAImage(TIFF *tiffptr, uint32 a, uint32 b,
+ uint32 *c, int d);
+ /* 55 */
+-TIFFTCLAPI int TIFFReadRGBAStrip(TIFF *tiffptr, tstrip_t a,
++TIFFTCLAPI int TIFFReadRGBAStrip(TIFF *tiffptr, uint32 a,
+ uint32 *b);
+ /* 56 */
+ TIFFTCLAPI int TIFFReadRGBATile(TIFF *tiffptr, uint32 a, uint32 b,
+@@ -203,48 +205,48 @@ TIFFTCLAPI TIFFErrorHandler TIFFSetWarningHandler(TIFFErrorHandler a);
+ /* 69 */
+ TIFFTCLAPI TIFFExtendProc TIFFSetTagExtender(TIFFExtendProc a);
+ /* 70 */
+-TIFFTCLAPI ttile_t TIFFComputeTile(TIFF *tiffptr, uint32 a, uint32 b,
+- uint32 c, tsample_t d);
++TIFFTCLAPI uint32 TIFFComputeTile(TIFF *tiffptr, uint32 a, uint32 b,
++ uint32 c, uint16 d);
+ /* 71 */
+ TIFFTCLAPI int TIFFCheckTile(TIFF *tiffptr, uint32 d, uint32 c,
+- uint32 b, tsample_t a);
++ uint32 b, uint16 a);
+ /* 72 */
+-TIFFTCLAPI ttile_t TIFFNumberOfTiles(TIFF *tiffptr);
++TIFFTCLAPI uint32 TIFFNumberOfTiles(TIFF *tiffptr);
+ /* 73 */
+-TIFFTCLAPI tsize_t TIFFReadTile(TIFF *tiffptr, tdata_t a, uint32 b,
+- uint32 c, uint32 d, tsample_t e);
++TIFFTCLAPI tmsize_t TIFFReadTile(TIFF *tiffptr, void *a, uint32 b,
++ uint32 c, uint32 d, uint16 e);
+ /* 74 */
+-TIFFTCLAPI tsize_t TIFFWriteTile(TIFF *tiffptr, tdata_t e, uint32 d,
+- uint32 c, uint32 b, tsample_t a);
++TIFFTCLAPI tmsize_t TIFFWriteTile(TIFF *tiffptr, void *e, uint32 d,
++ uint32 c, uint32 b, uint16 a);
+ /* 75 */
+-TIFFTCLAPI tstrip_t TIFFComputeStrip(TIFF *tiffptr, uint32 a,
+- tsample_t b);
++TIFFTCLAPI uint32 TIFFComputeStrip(TIFF *tiffptr, uint32 a,
++ uint16 b);
+ /* 76 */
+-TIFFTCLAPI tstrip_t TIFFNumberOfStrips(TIFF *tiffptr);
++TIFFTCLAPI uint32 TIFFNumberOfStrips(TIFF *tiffptr);
+ /* 77 */
+-TIFFTCLAPI tsize_t TIFFReadEncodedStrip(TIFF *tiffptr, tstrip_t a,
+- tdata_t b, tsize_t c);
++TIFFTCLAPI tmsize_t TIFFReadEncodedStrip(TIFF *tiffptr, uint32 a,
++ void *b, tmsize_t c);
+ /* 78 */
+-TIFFTCLAPI tsize_t TIFFReadRawStrip(TIFF *tiffptr, tstrip_t a,
+- tdata_t b, tsize_t c);
++TIFFTCLAPI tmsize_t TIFFReadRawStrip(TIFF *tiffptr, uint32 a,
++ void *b, tmsize_t c);
+ /* 79 */
+-TIFFTCLAPI tsize_t TIFFReadEncodedTile(TIFF *tiffptr, ttile_t a,
+- tdata_t b, tsize_t c);
++TIFFTCLAPI tmsize_t TIFFReadEncodedTile(TIFF *tiffptr, uint32 a,
++ void *b, tmsize_t c);
+ /* 80 */
+-TIFFTCLAPI tsize_t TIFFReadRawTile(TIFF *tiffptr, ttile_t c, tdata_t b,
+- tsize_t a);
++TIFFTCLAPI tmsize_t TIFFReadRawTile(TIFF *tiffptr, uint32 c, void *b,
++ tmsize_t a);
+ /* 81 */
+-TIFFTCLAPI tsize_t TIFFWriteEncodedStrip(TIFF *tiffptr, tstrip_t a,
+- tdata_t b, tsize_t c);
++TIFFTCLAPI tmsize_t TIFFWriteEncodedStrip(TIFF *tiffptr, uint32 a,
++ void *b, tmsize_t c);
+ /* 82 */
+-TIFFTCLAPI tsize_t TIFFWriteRawStrip(TIFF *tiffptr, tstrip_t a,
+- tdata_t b, tsize_t c);
++TIFFTCLAPI tmsize_t TIFFWriteRawStrip(TIFF *tiffptr, uint32 a,
++ void *b, tmsize_t c);
+ /* 83 */
+-TIFFTCLAPI tsize_t TIFFWriteEncodedTile(TIFF *tiffptr, ttile_t a,
+- tdata_t b, tsize_t c);
++TIFFTCLAPI tmsize_t TIFFWriteEncodedTile(TIFF *tiffptr, uint32 a,
++ void *b, tmsize_t c);
+ /* 84 */
+-TIFFTCLAPI tsize_t TIFFWriteRawTile(TIFF *tiffptr, ttile_t c, tdata_t b,
+- tsize_t a);
++TIFFTCLAPI tmsize_t TIFFWriteRawTile(TIFF *tiffptr, uint32 c, void *b,
++ tmsize_t a);
+ /* 85 */
+ TIFFTCLAPI void TIFFSetWriteOffset(TIFF *tiffptr, toff_t a);
+ /* 86 */
+@@ -254,13 +256,13 @@ TIFFTCLAPI void TIFFSwabLong(uint32 *a);
+ /* 88 */
+ TIFFTCLAPI void TIFFSwabDouble(double *a);
+ /* 89 */
+-TIFFTCLAPI void TIFFSwabArrayOfShort(uint16 *a, unsigned long b);
++TIFFTCLAPI void TIFFSwabArrayOfShort(uint16 *a, tmsize_t b);
+ /* 90 */
+-TIFFTCLAPI void TIFFSwabArrayOfLong(uint32 *b, unsigned long a);
++TIFFTCLAPI void TIFFSwabArrayOfLong(uint32 *b, tmsize_t a);
+ /* 91 */
+-TIFFTCLAPI void TIFFSwabArrayOfDouble(double *a, unsigned long b);
++TIFFTCLAPI void TIFFSwabArrayOfDouble(double *a, tmsize_t b);
+ /* 92 */
+-TIFFTCLAPI void TIFFReverseBits(unsigned char *a, unsigned long b);
++TIFFTCLAPI void TIFFReverseBits(uint8 *a, tmsize_t b);
+ /* 93 */
+ TIFFTCLAPI const unsigned char * TIFFGetBitRevTable(int a);
+ /* Slot 94 is reserved */
+@@ -269,8 +271,6 @@ TIFFTCLAPI const unsigned char * TIFFGetBitRevTable(int a);
+ /* Slot 97 is reserved */
+ /* Slot 98 is reserved */
+ /* Slot 99 is reserved */
+-/* 100 */
+-TIFFTCLAPI int TIFFPredictorInit(TIFF *tiffptr);
+ /* Slot 101 is reserved */
+ /* Slot 102 is reserved */
+ /* Slot 103 is reserved */
+@@ -281,20 +281,13 @@ TIFFTCLAPI int TIFFPredictorInit(TIFF *tiffptr);
+ /* Slot 108 is reserved */
+ /* Slot 109 is reserved */
+ /* 110 */
+-TIFFTCLAPI void _TIFFSetupFieldInfo(TIFF *tiffptr,
+- const TIFFFieldInfo a[], size_t b);
+ /* 111 */
+-TIFFTCLAPI int _TIFFMergeFieldInfo(TIFF *tiffptr,
+- const TIFFFieldInfo *a, int b);
+ /* 112 */
+ TIFFTCLAPI void _TIFFPrintFieldInfo(TIFF *tiffptr, FILE *a);
+ /* 113 */
+-TIFFTCLAPI const TIFFFieldInfo * TIFFFindFieldInfo(TIFF *tiffptr, ttag_t a,
+- TIFFDataType b);
+ /* 114 */
+-TIFFTCLAPI const TIFFFieldInfo * TIFFFieldWithTag(TIFF *tiffptr, ttag_t a);
++TIFFTCLAPI const TIFFField * TIFFFieldWithTag(TIFF *tiffptr, uint32 a);
+ /* 115 */
+-TIFFTCLAPI TIFFDataType _TIFFSampleToTagType(TIFF *tiffptr);
+ /* Slot 116 is reserved */
+ /* Slot 117 is reserved */
+ /* Slot 118 is reserved */
+@@ -302,43 +295,42 @@ TIFFTCLAPI TIFFDataType _TIFFSampleToTagType(TIFF *tiffptr);
+ /* 120 */
+ TIFFTCLAPI int _TIFFgetMode(const char *a, const char *b);
+ /* 121 */
+-TIFFTCLAPI int _TIFFNoRowEncode(TIFF *tiffptr, tidata_t a,
+- tsize_t b, tsample_t c);
++TIFFTCLAPI int _TIFFNoRowEncode(TIFF *tiffptr, uint8 *a,
++ tmsize_t b, uint16 c);
+ /* 122 */
+-TIFFTCLAPI int _TIFFNoStripEncode(TIFF *tiffptr, tidata_t c,
+- tsize_t b, tsample_t a);
++TIFFTCLAPI int _TIFFNoStripEncode(TIFF *tiffptr, uint8 *c,
++ tmsize_t b, uint16 a);
+ /* 123 */
+-TIFFTCLAPI int _TIFFNoTileEncode(TIFF *tiffptr, tidata_t a,
+- tsize_t b, tsample_t c);
++TIFFTCLAPI int _TIFFNoTileEncode(TIFF *tiffptr, uint8 *a,
++ tmsize_t b, uint16 c);
+ /* 124 */
+-TIFFTCLAPI int _TIFFNoRowDecode(TIFF *tiffptr, tidata_t c,
+- tsize_t b, tsample_t a);
++TIFFTCLAPI int _TIFFNoRowDecode(TIFF *tiffptr, uint8 *c,
++ tmsize_t b, uint16 a);
+ /* 125 */
+-TIFFTCLAPI int _TIFFNoStripDecode(TIFF *tiffptr, tidata_t a,
+- tsize_t b, tsample_t c);
++TIFFTCLAPI int _TIFFNoStripDecode(TIFF *tiffptr, uint8 *a,
++ tmsize_t b, uint16 c);
+ /* 126 */
+-TIFFTCLAPI int _TIFFNoTileDecode(TIFF *tiffptr, tidata_t c,
+- tsize_t b, tsample_t a);
++TIFFTCLAPI int _TIFFNoTileDecode(TIFF *tiffptr, uint8 *c,
++ tmsize_t b, uint16 a);
+ /* 127 */
+-TIFFTCLAPI void _TIFFNoPostDecode(TIFF *tiffptr, tidata_t a,
+- tsize_t b);
++TIFFTCLAPI void _TIFFNoPostDecode(TIFF *tiffptr, uint8 *a,
++ tmsize_t b);
+ /* 128 */
+-TIFFTCLAPI int _TIFFNoPreCode(TIFF *tiffptr, tsample_t a);
++TIFFTCLAPI int _TIFFNoPreCode(TIFF *tiffptr, uint16 a);
+ /* 129 */
+ TIFFTCLAPI int _TIFFNoSeek(TIFF *tiffptr, uint32 a);
+ /* 130 */
+-TIFFTCLAPI void _TIFFSwab16BitData(TIFF *tiffptr, tidata_t a,
+- tsize_t b);
++TIFFTCLAPI void _TIFFSwab16BitData(TIFF *tiffptr, uint8 *a,
++ tmsize_t b);
+ /* 131 */
+-TIFFTCLAPI void _TIFFSwab32BitData(TIFF *tiffptr, tidata_t b,
+- tsize_t a);
++TIFFTCLAPI void _TIFFSwab32BitData(TIFF *tiffptr, uint8 *b,
++ tmsize_t a);
+ /* 132 */
+-TIFFTCLAPI void _TIFFSwab64BitData(TIFF *tiffptr, tidata_t a,
+- tsize_t b);
++TIFFTCLAPI void _TIFFSwab64BitData(TIFF *tiffptr, uint8 *a,
++ tmsize_t b);
+ /* 133 */
+ TIFFTCLAPI int TIFFFlushData1(TIFF *tiffptr);
+ /* 134 */
+-TIFFTCLAPI void TIFFFreeDirectory(TIFF *tiffptr);
+ /* 135 */
+ TIFFTCLAPI int TIFFDefaultDirectory(TIFF *tiffptr);
+ /* 136 */
+@@ -397,6 +389,8 @@ TIFFTCLAPI int TIFFInitZIP(TIFF *tiffptr, int a);
+ TIFFTCLAPI int TIFFInitPixarLog(TIFF *tiffptr, int a);
+ /* 162 */
+ TIFFTCLAPI int TIFFInitSGILog(TIFF *tiffptr, int a);
++/* 163 */
++TIFFTCLAPI int TIFFInitLZMA(TIFF *tiffptr, int a);
+
+ typedef struct TifftclStubs {
+ int magic;
+@@ -406,27 +400,27 @@ typedef struct TifftclStubs {
+ const TIFFCodec * (*tIFFFindCODEC) (uint16 a); /* 1 */
+ TIFFCodec * (*tIFFRegisterCODEC) (uint16 a, const char *b, TIFFInitMethod c); /* 2 */
+ void (*tIFFUnRegisterCODEC) (TIFFCodec *a); /* 3 */
+- tdata_t (*_TIFFmallocPtr) (tsize_t a); /* 4 */
+- tdata_t (*_TIFFreallocPtr) (tdata_t a, tsize_t b); /* 5 */
+- void (*_TIFFmemsetPtr) (tdata_t a, int b, tsize_t c); /* 6 */
+- void (*_TIFFmemcpyPtr) (tdata_t a, const tdata_t b, tsize_t c); /* 7 */
+- int (*_TIFFmemcmpPtr) (const tdata_t a, const tdata_t b, tsize_t c); /* 8 */
+- void (*_TIFFfreePtr) (tdata_t a); /* 9 */
++ tdata_t (*_TIFFmallocPtr) (tmsize_t a); /* 4 */
++ tdata_t (*_TIFFreallocPtr) (void *a, tmsize_t b); /* 5 */
++ void (*_TIFFmemsetPtr) (void *a, int b, tmsize_t c); /* 6 */
++ void (*_TIFFmemcpyPtr) (void *a, const void *b, tmsize_t c); /* 7 */
++ int (*_TIFFmemcmpPtr) (const void *a, const void *b, tmsize_t c); /* 8 */
++ void (*_TIFFfreePtr) (void *a); /* 9 */
+ void (*tIFFClose) (TIFF *tiffptr); /* 10 */
+ int (*tIFFFlush) (TIFF *tiffptr); /* 11 */
+ int (*tIFFFlushData) (TIFF *tiffptr); /* 12 */
+- int (*tIFFGetField) (TIFF *tiffptr, ttag_t a, ...); /* 13 */
+- int (*tIFFVGetField) (TIFF *tiffptr, ttag_t a, va_list b); /* 14 */
+- int (*tIFFGetFieldDefaulted) (TIFF *tiffptr, ttag_t a, ...); /* 15 */
+- int (*tIFFVGetFieldDefaulted) (TIFF *tiffptr, ttag_t a, va_list b); /* 16 */
++ int (*tIFFGetField) (TIFF *tiffptr, uint32 a, ...); /* 13 */
++ int (*tIFFVGetField) (TIFF *tiffptr, uint32 a, va_list b); /* 14 */
++ int (*tIFFGetFieldDefaulted) (TIFF *tiffptr, uint32 a, ...); /* 15 */
++ int (*tIFFVGetFieldDefaulted) (TIFF *tiffptr, uint32 a, va_list b); /* 16 */
+ int (*tIFFReadDirectory) (TIFF *tiffptr); /* 17 */
+- tsize_t (*tIFFScanlineSize) (TIFF *tiffptr); /* 18 */
+- tsize_t (*tIFFRasterScanlineSize) (TIFF *tiffptr); /* 19 */
+- tsize_t (*tIFFStripSize) (TIFF *tiffptr); /* 20 */
+- tsize_t (*tIFFVStripSize) (TIFF *tiffptr, uint32 a); /* 21 */
+- tsize_t (*tIFFTileRowSize) (TIFF *tiffptr); /* 22 */
+- tsize_t (*tIFFTileSize) (TIFF *tiffptr); /* 23 */
+- tsize_t (*tIFFVTileSize) (TIFF *tiffptr, uint32 a); /* 24 */
++ tmsize_t (*tIFFScanlineSize) (TIFF *tiffptr); /* 18 */
++ tmsize_t (*tIFFRasterScanlineSize) (TIFF *tiffptr); /* 19 */
++ tmsize_t (*tIFFStripSize) (TIFF *tiffptr); /* 20 */
++ tmsize_t (*tIFFVStripSize) (TIFF *tiffptr, uint32 a); /* 21 */
++ tmsize_t (*tIFFTileRowSize) (TIFF *tiffptr); /* 22 */
++ tmsize_t (*tIFFTileSize) (TIFF *tiffptr); /* 23 */
++ tmsize_t (*tIFFVTileSize) (TIFF *tiffptr, uint32 a); /* 24 */
+ uint32 (*tIFFDefaultStripSize) (TIFF *tiffptr, uint32 a); /* 25 */
+ void (*tIFFDefaultTileSize) (TIFF *tiffptr, uint32 *a, uint32 *b); /* 26 */
+ int (*tIFFFileno) (TIFF *tiffptr); /* 27 */
+@@ -436,28 +430,28 @@ typedef struct TifftclStubs {
+ int (*tIFFIsUpSampled) (TIFF *tiffptr); /* 31 */
+ int (*tIFFIsMSB2LSB) (TIFF *tiffptr); /* 32 */
+ uint32 (*tIFFCurrentRow) (TIFF *tiffptr); /* 33 */
+- tdir_t (*tIFFCurrentDirectory) (TIFF *tiffptr); /* 34 */
+- tdir_t (*tIFFNumberOfDirectories) (TIFF *tiffptr); /* 35 */
+- uint32 (*tIFFCurrentDirOffset) (TIFF *tiffptr); /* 36 */
+- tstrip_t (*tIFFCurrentStrip) (TIFF *tiffptr); /* 37 */
+- ttile_t (*tIFFCurrentTile) (TIFF *tiffptr); /* 38 */
+- int (*tIFFReadBufferSetup) (TIFF *tiffptr, tdata_t a, tsize_t b); /* 39 */
+- int (*tIFFWriteBufferSetup) (TIFF *tiffptr, tdata_t a, tsize_t b); /* 40 */
++ uint16 (*tIFFCurrentDirectory) (TIFF *tiffptr); /* 34 */
++ uint16 (*tIFFNumberOfDirectories) (TIFF *tiffptr); /* 35 */
++ uint64 (*tIFFCurrentDirOffset) (TIFF *tiffptr); /* 36 */
++ uint32 (*tIFFCurrentStrip) (TIFF *tiffptr); /* 37 */
++ uint32 (*tIFFCurrentTile) (TIFF *tiffptr); /* 38 */
++ int (*tIFFReadBufferSetup) (TIFF *tiffptr, void *a, tmsize_t b); /* 39 */
++ int (*tIFFWriteBufferSetup) (TIFF *tiffptr, void *a, tmsize_t b); /* 40 */
+ int (*tIFFWriteCheck) (TIFF *tiffptr, int a, const char *b); /* 41 */
+ int (*tIFFCreateDirectory) (TIFF *tiffptr); /* 42 */
+ int (*tIFFLastDirectory) (TIFF *tiffptr); /* 43 */
+- int (*tIFFSetDirectory) (TIFF *tiffptr, tdir_t a); /* 44 */
+- int (*tIFFSetSubDirectory) (TIFF *tiffptr, uint32 a); /* 45 */
+- int (*tIFFUnlinkDirectory) (TIFF *tiffptr, tdir_t a); /* 46 */
+- int (*tIFFSetField) (TIFF *tiffptr, ttag_t a, ...); /* 47 */
+- int (*tIFFVSetField) (TIFF *tiffptr, ttag_t a, va_list b); /* 48 */
++ int (*tIFFSetDirectory) (TIFF *tiffptr, uint16 a); /* 44 */
++ int (*tIFFSetSubDirectory) (TIFF *tiffptr, uint64 a); /* 45 */
++ int (*tIFFUnlinkDirectory) (TIFF *tiffptr, uint16 a); /* 46 */
++ int (*tIFFSetField) (TIFF *tiffptr, uint32 a, ...); /* 47 */
++ int (*tIFFVSetField) (TIFF *tiffptr, uint32 a, va_list b); /* 48 */
+ int (*tIFFWriteDirectory) (TIFF *tiffptr); /* 49 */
+- int (*tIFFReassignTagToIgnore) (enum TIFFIgnoreSense a, int b); /* 50 */
++ void (*reserved50)(void);
+ void (*tIFFPrintDirectory) (TIFF *tiffptr, FILE *a, long b); /* 51 */
+- int (*tIFFReadScanline) (TIFF *tiffptr, tdata_t a, uint32 b, tsample_t c); /* 52 */
+- int (*tIFFWriteScanline) (TIFF *tiffptr, tdata_t a, uint32 b, tsample_t c); /* 53 */
++ int (*tIFFReadScanline) (TIFF *tiffptr, void *a, uint32 b, uint16 c); /* 52 */
++ int (*tIFFWriteScanline) (TIFF *tiffptr, void *a, uint32 b, uint16 c); /* 53 */
+ int (*tIFFReadRGBAImage) (TIFF *tiffptr, uint32 a, uint32 b, uint32 *c, int d); /* 54 */
+- int (*tIFFReadRGBAStrip) (TIFF *tiffptr, tstrip_t a, uint32 *b); /* 55 */
++ int (*tIFFReadRGBAStrip) (TIFF *tiffptr, uint32 a, uint32 *b); /* 55 */
+ int (*tIFFReadRGBATile) (TIFF *tiffptr, uint32 a, uint32 b, uint32 *c); /* 56 */
+ int (*tIFFRGBAImageOK) (TIFF *tiffptr, char *a); /* 57 */
+ int (*tIFFRGBAImageBegin) (TIFFRGBAImage *a, TIFF *tiffptr, int b, char *c); /* 58 */
+@@ -472,29 +466,29 @@ typedef struct TifftclStubs {
+ TIFFErrorHandler (*tIFFSetErrorHandler) (TIFFErrorHandler a); /* 67 */
+ TIFFErrorHandler (*tIFFSetWarningHandler) (TIFFErrorHandler a); /* 68 */
+ TIFFExtendProc (*tIFFSetTagExtender) (TIFFExtendProc a); /* 69 */
+- ttile_t (*tIFFComputeTile) (TIFF *tiffptr, uint32 a, uint32 b, uint32 c, tsample_t d); /* 70 */
+- int (*tIFFCheckTile) (TIFF *tiffptr, uint32 d, uint32 c, uint32 b, tsample_t a); /* 71 */
+- ttile_t (*tIFFNumberOfTiles) (TIFF *tiffptr); /* 72 */
+- tsize_t (*tIFFReadTile) (TIFF *tiffptr, tdata_t a, uint32 b, uint32 c, uint32 d, tsample_t e); /* 73 */
+- tsize_t (*tIFFWriteTile) (TIFF *tiffptr, tdata_t e, uint32 d, uint32 c, uint32 b, tsample_t a); /* 74 */
+- tstrip_t (*tIFFComputeStrip) (TIFF *tiffptr, uint32 a, tsample_t b); /* 75 */
+- tstrip_t (*tIFFNumberOfStrips) (TIFF *tiffptr); /* 76 */
+- tsize_t (*tIFFReadEncodedStrip) (TIFF *tiffptr, tstrip_t a, tdata_t b, tsize_t c); /* 77 */
+- tsize_t (*tIFFReadRawStrip) (TIFF *tiffptr, tstrip_t a, tdata_t b, tsize_t c); /* 78 */
+- tsize_t (*tIFFReadEncodedTile) (TIFF *tiffptr, ttile_t a, tdata_t b, tsize_t c); /* 79 */
+- tsize_t (*tIFFReadRawTile) (TIFF *tiffptr, ttile_t c, tdata_t b, tsize_t a); /* 80 */
+- tsize_t (*tIFFWriteEncodedStrip) (TIFF *tiffptr, tstrip_t a, tdata_t b, tsize_t c); /* 81 */
+- tsize_t (*tIFFWriteRawStrip) (TIFF *tiffptr, tstrip_t a, tdata_t b, tsize_t c); /* 82 */
+- tsize_t (*tIFFWriteEncodedTile) (TIFF *tiffptr, ttile_t a, tdata_t b, tsize_t c); /* 83 */
+- tsize_t (*tIFFWriteRawTile) (TIFF *tiffptr, ttile_t c, tdata_t b, tsize_t a); /* 84 */
++ uint32 (*tIFFComputeTile) (TIFF *tiffptr, uint32 a, uint32 b, uint32 c, uint16 d); /* 70 */
++ int (*tIFFCheckTile) (TIFF *tiffptr, uint32 d, uint32 c, uint32 b, uint16 a); /* 71 */
++ uint32 (*tIFFNumberOfTiles) (TIFF *tiffptr); /* 72 */
++ tmsize_t (*tIFFReadTile) (TIFF *tiffptr, void *a, uint32 b, uint32 c, uint32 d, uint16 e); /* 73 */
++ tmsize_t (*tIFFWriteTile) (TIFF *tiffptr, void *e, uint32 d, uint32 c, uint32 b, uint16 a); /* 74 */
++ uint32 (*tIFFComputeStrip) (TIFF *tiffptr, uint32 a, uint16 b); /* 75 */
++ uint32 (*tIFFNumberOfStrips) (TIFF *tiffptr); /* 76 */
++ tmsize_t (*tIFFReadEncodedStrip) (TIFF *tiffptr, uint32 a, void *b, tmsize_t c); /* 77 */
++ tmsize_t (*tIFFReadRawStrip) (TIFF *tiffptr, uint32 a, void *b, tmsize_t c); /* 78 */
++ tmsize_t (*tIFFReadEncodedTile) (TIFF *tiffptr, uint32 a, void *b, tmsize_t c); /* 79 */
++ tmsize_t (*tIFFReadRawTile) (TIFF *tiffptr, uint32 c, void *b, tmsize_t a); /* 80 */
++ tmsize_t (*tIFFWriteEncodedStrip) (TIFF *tiffptr, uint32 a, void *b, tmsize_t c); /* 81 */
++ tmsize_t (*tIFFWriteRawStrip) (TIFF *tiffptr, uint32 a, void *b, tmsize_t c); /* 82 */
++ tmsize_t (*tIFFWriteEncodedTile) (TIFF *tiffptr, uint32 a, void *b, tmsize_t c); /* 83 */
++ tmsize_t (*tIFFWriteRawTile) (TIFF *tiffptr, uint32 c, void *b, tmsize_t a); /* 84 */
+ void (*tIFFSetWriteOffset) (TIFF *tiffptr, toff_t a); /* 85 */
+ void (*tIFFSwabShort) (uint16 *a); /* 86 */
+ void (*tIFFSwabLong) (uint32 *a); /* 87 */
+ void (*tIFFSwabDouble) (double *a); /* 88 */
+- void (*tIFFSwabArrayOfShort) (uint16 *a, unsigned long b); /* 89 */
+- void (*tIFFSwabArrayOfLong) (uint32 *b, unsigned long a); /* 90 */
+- void (*tIFFSwabArrayOfDouble) (double *a, unsigned long b); /* 91 */
+- void (*tIFFReverseBits) (unsigned char *a, unsigned long b); /* 92 */
++ void (*tIFFSwabArrayOfShort) (uint16 *a, tmsize_t b); /* 89 */
++ void (*tIFFSwabArrayOfLong) (uint32 *b, tmsize_t a); /* 90 */
++ void (*tIFFSwabArrayOfDouble) (double *a, tmsize_t b); /* 91 */
++ void (*tIFFReverseBits) (unsigned char *a, tmsize_t b); /* 92 */
+ const unsigned char * (*tIFFGetBitRevTable) (int a); /* 93 */
+ void (*reserved94)(void);
+ void (*reserved95)(void);
+@@ -502,7 +496,7 @@ typedef struct TifftclStubs {
+ void (*reserved97)(void);
+ void (*reserved98)(void);
+ void (*reserved99)(void);
+- int (*tIFFPredictorInit) (TIFF *tiffptr); /* 100 */
++ void (*reserved100)(void);
+ void (*reserved101)(void);
+ void (*reserved102)(void);
+ void (*reserved103)(void);
+@@ -512,31 +506,31 @@ typedef struct TifftclStubs {
+ void (*reserved107)(void);
+ void (*reserved108)(void);
+ void (*reserved109)(void);
+- void (*_TIFFSetupFieldInfoPtr) (TIFF *tiffptr, const TIFFFieldInfo a[], size_t b); /* 110 */
+- int (*_TIFFMergeFieldInfoPtr) (TIFF *tiffptr, const TIFFFieldInfo *a, int b); /* 111 */
++ void (*reserved110)(void);
++ void (*reserved111)(void);
+ void (*_TIFFPrintFieldInfoPtr) (TIFF *tiffptr, FILE *a); /* 112 */
+- const TIFFFieldInfo * (*tIFFFindFieldInfo) (TIFF *tiffptr, ttag_t a, TIFFDataType b); /* 113 */
+- const TIFFFieldInfo * (*tIFFFieldWithTag) (TIFF *tiffptr, ttag_t a); /* 114 */
+- TIFFDataType (*_TIFFSampleToTagTypePtr) (TIFF *tiffptr); /* 115 */
++ void (*reserved113)(void);
++ const TIFFField * (*tIFFFieldWithTag) (TIFF *tiffptr, uint32 a); /* 114 */
++ void (*reserved115)(void);
+ void (*reserved116)(void);
+ void (*reserved117)(void);
+ void (*reserved118)(void);
+ void (*reserved119)(void);
+ int (*_TIFFgetModePtr) (const char *a, const char *b); /* 120 */
+- int (*_TIFFNoRowEncodePtr) (TIFF *tiffptr, tidata_t a, tsize_t b, tsample_t c); /* 121 */
+- int (*_TIFFNoStripEncodePtr) (TIFF *tiffptr, tidata_t c, tsize_t b, tsample_t a); /* 122 */
+- int (*_TIFFNoTileEncodePtr) (TIFF *tiffptr, tidata_t a, tsize_t b, tsample_t c); /* 123 */
+- int (*_TIFFNoRowDecodePtr) (TIFF *tiffptr, tidata_t c, tsize_t b, tsample_t a); /* 124 */
+- int (*_TIFFNoStripDecodePtr) (TIFF *tiffptr, tidata_t a, tsize_t b, tsample_t c); /* 125 */
+- int (*_TIFFNoTileDecodePtr) (TIFF *tiffptr, tidata_t c, tsize_t b, tsample_t a); /* 126 */
+- void (*_TIFFNoPostDecodePtr) (TIFF *tiffptr, tidata_t a, tsize_t b); /* 127 */
+- int (*_TIFFNoPreCodePtr) (TIFF *tiffptr, tsample_t a); /* 128 */
++ int (*_TIFFNoRowEncodePtr) (TIFF *tiffptr, uint8 *a, tmsize_t b, uint16 c); /* 121 */
++ int (*_TIFFNoStripEncodePtr) (TIFF *tiffptr, uint8 *c, tmsize_t b, uint16 a); /* 122 */
++ int (*_TIFFNoTileEncodePtr) (TIFF *tiffptr, uint8 *a, tmsize_t b, uint16 c); /* 123 */
++ int (*_TIFFNoRowDecodePtr) (TIFF *tiffptr, uint8 *c, tmsize_t b, uint16 a); /* 124 */
++ int (*_TIFFNoStripDecodePtr) (TIFF *tiffptr, uint8 *a, tmsize_t b, uint16 c); /* 125 */
++ int (*_TIFFNoTileDecodePtr) (TIFF *tiffptr, uint8 *c, tmsize_t b, uint16 a); /* 126 */
++ void (*_TIFFNoPostDecodePtr) (TIFF *tiffptr, uint8 *a, tmsize_t b); /* 127 */
++ int (*_TIFFNoPreCodePtr) (TIFF *tiffptr, uint16 a); /* 128 */
+ int (*_TIFFNoSeekPtr) (TIFF *tiffptr, uint32 a); /* 129 */
+- void (*_TIFFSwab16BitDataPtr) (TIFF *tiffptr, tidata_t a, tsize_t b); /* 130 */
+- void (*_TIFFSwab32BitDataPtr) (TIFF *tiffptr, tidata_t b, tsize_t a); /* 131 */
+- void (*_TIFFSwab64BitDataPtr) (TIFF *tiffptr, tidata_t a, tsize_t b); /* 132 */
++ void (*_TIFFSwab16BitDataPtr) (TIFF *tiffptr, uint8 *a, tmsize_t b); /* 130 */
++ void (*_TIFFSwab32BitDataPtr) (TIFF *tiffptr, uint8 *b, tmsize_t a); /* 131 */
++ void (*_TIFFSwab64BitDataPtr) (TIFF *tiffptr, uint8 *a, tmsize_t b); /* 132 */
+ int (*tIFFFlushData1) (TIFF *tiffptr); /* 133 */
+- void (*tIFFFreeDirectory) (TIFF *tiffptr); /* 134 */
++ void (*reserved134)(void);
+ int (*tIFFDefaultDirectory) (TIFF *tiffptr); /* 135 */
+ int (*tIFFSetCompressionScheme) (TIFF *tiffptr, int a); /* 136 */
+ void (*_TIFFSetDefaultCompressionStatePtr) (TIFF *tiffptr); /* 137 */
+@@ -565,6 +559,7 @@ typedef struct TifftclStubs {
+ int (*tIFFInitZIP) (TIFF *tiffptr, int a); /* 160 */
+ int (*tIFFInitPixarLog) (TIFF *tiffptr, int a); /* 161 */
+ int (*tIFFInitSGILog) (TIFF *tiffptr, int a); /* 162 */
++ int (*tIFFInitLZMA) (TIFF *tiffptr, int a); /* 163 */
+ } TifftclStubs;
+
+ #ifdef __cplusplus
+@@ -681,8 +676,7 @@ TIFFTCLAPI const TifftclStubs *tifftclStubsPtr;
+ (tifftclStubsPtr->tIFFVSetField) /* 48 */
+ #define TIFFWriteDirectory \
+ (tifftclStubsPtr->tIFFWriteDirectory) /* 49 */
+-#define TIFFReassignTagToIgnore \
+- (tifftclStubsPtr->tIFFReassignTagToIgnore) /* 50 */
++/* Slot 50 is reserved */
+ #define TIFFPrintDirectory \
+ (tifftclStubsPtr->tIFFPrintDirectory) /* 51 */
+ #define TIFFReadScanline \
+@@ -775,8 +769,7 @@ TIFFTCLAPI const TifftclStubs *tifftclStubsPtr;
+ /* Slot 97 is reserved */
+ /* Slot 98 is reserved */
+ /* Slot 99 is reserved */
+-#define TIFFPredictorInit \
+- (tifftclStubsPtr->tIFFPredictorInit) /* 100 */
++/* Slot 100 is reserved */
+ /* Slot 101 is reserved */
+ /* Slot 102 is reserved */
+ /* Slot 103 is reserved */
+@@ -786,18 +779,14 @@ TIFFTCLAPI const TifftclStubs *tifftclStubsPtr;
+ /* Slot 107 is reserved */
+ /* Slot 108 is reserved */
+ /* Slot 109 is reserved */
+-#define _TIFFSetupFieldInfo \
+- (tifftclStubsPtr->_TIFFSetupFieldInfoPtr) /* 110 */
+-#define _TIFFMergeFieldInfo \
+- (tifftclStubsPtr->_TIFFMergeFieldInfoPtr) /* 111 */
++/* Slot 110 is reserved */
++/* Slot 111 is reserved */
+ #define _TIFFPrintFieldInfo \
+ (tifftclStubsPtr->_TIFFPrintFieldInfoPtr) /* 112 */
+-#define TIFFFindFieldInfo \
+- (tifftclStubsPtr->tIFFFindFieldInfo) /* 113 */
++/* Slot 113 is reserved */
+ #define TIFFFieldWithTag \
+ (tifftclStubsPtr->tIFFFieldWithTag) /* 114 */
+-#define _TIFFSampleToTagType \
+- (tifftclStubsPtr->_TIFFSampleToTagTypePtr) /* 115 */
++/* Slot 115 is reserved */
+ /* Slot 116 is reserved */
+ /* Slot 117 is reserved */
+ /* Slot 118 is reserved */
+@@ -830,8 +819,7 @@ TIFFTCLAPI const TifftclStubs *tifftclStubsPtr;
+ (tifftclStubsPtr->_TIFFSwab64BitDataPtr) /* 132 */
+ #define TIFFFlushData1 \
+ (tifftclStubsPtr->tIFFFlushData1) /* 133 */
+-#define TIFFFreeDirectory \
+- (tifftclStubsPtr->tIFFFreeDirectory) /* 134 */
++/* Slot 134 is reserved */
+ #define TIFFDefaultDirectory \
+ (tifftclStubsPtr->tIFFDefaultDirectory) /* 135 */
+ #define TIFFSetCompressionScheme \
+@@ -888,6 +876,8 @@ TIFFTCLAPI const TifftclStubs *tifftclStubsPtr;
+ (tifftclStubsPtr->tIFFInitPixarLog) /* 161 */
+ #define TIFFInitSGILog \
+ (tifftclStubsPtr->tIFFInitSGILog) /* 162 */
++#define TIFFInitLZMA \
++ (tifftclStubsPtr->tIFFInitLZMA) /* 163 */
+
+ #endif /* defined(USE_TIFFTCL_STUBS) */
+
+diff --git a/libtiff/tifftclStubInit.c b/libtiff/tifftclStubInit.c
+index cf9448f..37d9916 100644
+--- a/libtiff/tifftclStubInit.c
++++ b/libtiff/tifftclStubInit.c
+@@ -70,7 +70,7 @@ const TifftclStubs tifftclStubs = {
+ TIFFSetField, /* 47 */
+ TIFFVSetField, /* 48 */
+ TIFFWriteDirectory, /* 49 */
+- TIFFReassignTagToIgnore, /* 50 */
++ 0, /* 50 */
+ TIFFPrintDirectory, /* 51 */
+ TIFFReadScanline, /* 52 */
+ TIFFWriteScanline, /* 53 */
+@@ -120,7 +120,7 @@ const TifftclStubs tifftclStubs = {
+ 0, /* 97 */
+ 0, /* 98 */
+ 0, /* 99 */
+- TIFFPredictorInit, /* 100 */
++ 0, /* 100 */
+ 0, /* 101 */
+ 0, /* 102 */
+ 0, /* 103 */
+@@ -130,12 +130,12 @@ const TifftclStubs tifftclStubs = {
+ 0, /* 107 */
+ 0, /* 108 */
+ 0, /* 109 */
+- _TIFFSetupFieldInfo, /* 110 */
+- _TIFFMergeFieldInfo, /* 111 */
++ 0, /* 110 */
++ 0, /* 111 */
+ _TIFFPrintFieldInfo, /* 112 */
+- TIFFFindFieldInfo, /* 113 */
++ 0, /* 113 */
+ TIFFFieldWithTag, /* 114 */
+- _TIFFSampleToTagType, /* 115 */
++ 0, /* 115 */
+ 0, /* 116 */
+ 0, /* 117 */
+ 0, /* 118 */
+@@ -154,7 +154,7 @@ const TifftclStubs tifftclStubs = {
+ _TIFFSwab32BitData, /* 131 */
+ _TIFFSwab64BitData, /* 132 */
+ TIFFFlushData1, /* 133 */
+- TIFFFreeDirectory, /* 134 */
++ 0, /* 134 */
+ TIFFDefaultDirectory, /* 135 */
+ TIFFSetCompressionScheme, /* 136 */
+ _TIFFSetDefaultCompressionState, /* 137 */
+@@ -239,6 +239,12 @@ const TifftclStubs tifftclStubs = {
+ #else /* !LOGLUV_SUPPORT */
+ TIFFInitSGILog, /* 162 */
+ #endif /* !LOGLUV_SUPPORT */
++#if !defined(LZMA_SUPPORT)
++ 0, /* 163 */
++#else
++ TIFFInitLZMA, /* 163 */
++#endif /* !LZMA_SUPPORT */
++
+ };
+
+ /* !END!: Do not edit above this line. */
+diff --git a/tiff/configure.in b/tiff/configure.in
+index 81851fa..524588d 100755
+--- a/tiff/configure.in
++++ b/tiff/configure.in
+@@ -74,7 +74,7 @@
+ # and PKG_TCL_SOURCES.
+ #-----------------------------------------------------------------------
+
+-TEA_ADD_SOURCES([tiff.c tiffJpeg.c tiffZip.c tiffPixar.c])
++TEA_ADD_SOURCES([tiff.c])
+ TEA_ADD_HEADERS([])
+ TEA_ADD_INCLUDES([-I\"`\${CYGPATH} \${srcdir}`\"])
+ TEA_ADD_INCLUDES([-I\"`\${CYGPATH} \${tkimg_SRC_PATH}`\"])
+diff --git a/tiff/tiff.c b/tiff/tiff.c
+index 78dd3b2..8bd5ec7 100644
+--- a/tiff/tiff.c
++++ b/tiff/tiff.c
+@@ -115,8 +115,8 @@ SetupTiffLibrary (interp)
+ if (!initialized) {
+ initialized = 1;
+ if (
+- TIFFRegisterCODEC && TIFFError && TIFFPredictorInit &&
+- _TIFFMergeFieldInfo && TIFFFlushData1 && _TIFFNoPostDecode &&
++ TIFFRegisterCODEC && TIFFError &&
++ TIFFFlushData1 && _TIFFNoPostDecode &&
+ TIFFTileRowSize && TIFFScanlineSize && _TIFFsetByteArray &&
+ TIFFVSetField && TIFFSwabArrayOfShort
+ ) {
+@@ -124,14 +124,14 @@ SetupTiffLibrary (interp)
+ if (Zlibtcl_InitStubs(interp, ZLIBTCL_VERSION, 0) == NULL) {
+ return TCL_ERROR;
+ }
+- TIFFRegisterCODEC (COMPRESSION_DEFLATE, "Deflate", TkimgTIFFInitZip);
+- TIFFRegisterCODEC (COMPRESSION_ADOBE_DEFLATE, "AdobeDeflate", TkimgTIFFInitZip);
++ TIFFRegisterCODEC (COMPRESSION_DEFLATE, "Deflate", TIFFInitZIP);
++ TIFFRegisterCODEC (COMPRESSION_ADOBE_DEFLATE, "AdobeDeflate", TIFFInitZIP);
+
+ if (Jpegtcl_InitStubs(interp, JPEGTCL_VERSION, 0) == NULL) {
+ return TCL_ERROR;
+ }
+- TIFFRegisterCODEC (COMPRESSION_JPEG, "JPEG", TkimgTIFFInitJpeg);
+- TIFFRegisterCODEC (COMPRESSION_PIXARLOG, "PixarLog", TkimgTIFFInitPixar);
++ TIFFRegisterCODEC (COMPRESSION_JPEG, "JPEG", TIFFInitJPEG);
++ TIFFRegisterCODEC (COMPRESSION_PIXARLOG, "PixarLog", TIFFInitPixarLog);
+ }
+ }
+ return TCL_OK;
diff --git a/dev-tcltk/tkimg/files/tkimg-1.4.7-zlib.patch b/dev-tcltk/tkimg/files/tkimg-1.4.7-zlib.patch
new file mode 100644
index 000000000000..3d4845835ff7
--- /dev/null
+++ b/dev-tcltk/tkimg/files/tkimg-1.4.7-zlib.patch
@@ -0,0 +1,90 @@
+ zlib/Makefile.in | 2 +-
+ zlib/configure.in | 5 --
+ zlib/zlibtcl.decls | 2 +-
+ zlib/zlibtclDecls.h | 10 +--
+ 5 files changed, 8 insertions(+), 184 deletions(-)
+
+diff --git a/zlib/Makefile.in b/zlib/Makefile.in
+index e70ec66..c8bf0f3 100644
+--- a/zlib/Makefile.in
++++ b/zlib/Makefile.in
+@@ -107,7 +107,7 @@ RANLIB = @RANLIB@
+ RANLIB_STUB = @RANLIB_STUB@
+ SHLIB_CFLAGS = @SHLIB_CFLAGS@
+ SHLIB_LD = @SHLIB_LD@
+-SHLIB_LD_LIBS = @SHLIB_LD_LIBS@
++SHLIB_LD_LIBS = @SHLIB_LD_LIBS@ -lz
+ STLIB_LD = @STLIB_LD@
+ TCL_DEFS = @TCL_DEFS@
+ TCL_BIN_DIR = @TCL_BIN_DIR@
+diff --git a/zlib/configure.in b/zlib/configure.in
+index 6b1e310..f51befa 100644
+--- a/zlib/configure.in
++++ b/zlib/configure.in
+@@ -51,11 +51,6 @@ TEA_SETUP_COMPILER
+ #-----------------------------------------------------------------------
+
+ TEA_ADD_SOURCES([zlibtcl.c zlibtclStubInit.c])
+-TEA_ADD_SOURCES([../compat/zlib/adler32.c ../compat/zlib/compress.c ../compat/zlib/crc32.c])
+-TEA_ADD_SOURCES([../compat/zlib/deflate.c ../compat/zlib/gzclose.c ../compat/zlib/gzlib.c])
+-TEA_ADD_SOURCES([../compat/zlib/gzread.c ../compat/zlib/gzwrite.c ../compat/zlib/infback.c])
+-TEA_ADD_SOURCES([../compat/zlib/inffast.c ../compat/zlib/inflate.c ../compat/zlib/inftrees.c])
+-TEA_ADD_SOURCES([../compat/zlib/trees.c ../compat/zlib/uncompr.c ../compat/zlib/zutil.c])
+
+ TEA_ADD_HEADERS([zlibtcl.h zlibtclDecls.h])
+
+diff --git a/zlib/zlibtcl.decls b/zlib/zlibtcl.decls
+index c4bf22e..b9fb804 100644
+--- a/zlib/zlibtcl.decls
++++ b/zlib/zlibtcl.decls
+@@ -138,7 +138,7 @@ declare 38 {
+ int gzputc(gzFile file, int c)
+ }
+ declare 39 {
+- int gzgetc(gzFile file)
++ int gzgetc_(gzFile file)
+ }
+ declare 40 {
+ int gzflush(gzFile file, int flush)
+diff --git a/zlib/zlibtclDecls.h b/zlib/zlibtclDecls.h
+index 2f7ecb2..6393821 100644
+--- a/zlib/zlibtclDecls.h
++++ b/zlib/zlibtclDecls.h
+@@ -28,7 +28,7 @@
+ EXTERN int Zlibtcl_Init(Tcl_Interp *interp);
+ EXTERN int Zlibtcl_SafeInit(Tcl_Interp *interp);
+
+-#include "../compat/zlib/zlib.h"
++#include "@GENTOO_PORTAGE_EPREFIX@/usr/include/zlib.h"
+
+ /* !BEGIN!: Do not edit below this line. */
+
+@@ -120,7 +120,7 @@ ZEXTERN char * gzgets(gzFile file, char *buf, int len);
+ /* 38 */
+ ZEXTERN int gzputc(gzFile file, int c);
+ /* 39 */
+-ZEXTERN int gzgetc(gzFile file);
++ZEXTERN int gzgetc_(gzFile file);
+ /* 40 */
+ ZEXTERN int gzflush(gzFile file, int flush);
+ /* 41 */
+@@ -179,7 +179,7 @@ typedef struct ZlibtclStubs {
+ int (*gzputsPtr) (gzFile file, const char *s); /* 36 */
+ char * (*gzgetsPtr) (gzFile file, char *buf, int len); /* 37 */
+ int (*gzputcPtr) (gzFile file, int c); /* 38 */
+- int (*gzgetcPtr) (gzFile file); /* 39 */
++ int (*gzgetc_Ptr) (gzFile file); /* 39 */
+ int (*gzflushPtr) (gzFile file, int flush); /* 40 */
+ z_off_t (*gzseekPtr) (gzFile file, z_off_t offset, int whence); /* 41 */
+ int (*gzrewindPtr) (gzFile file); /* 42 */
+@@ -273,8 +273,8 @@ ZEXTERN const ZlibtclStubs *zlibtclStubsPtr;
+ (zlibtclStubsPtr->gzgetsPtr) /* 37 */
+ #define gzputc \
+ (zlibtclStubsPtr->gzputcPtr) /* 38 */
+-#define gzgetc \
+- (zlibtclStubsPtr->gzgetcPtr) /* 39 */
++#define gzgetc_ \
++ (zlibtclStubsPtr->gzgetc_Ptr) /* 39 */
+ #define gzflush \
+ (zlibtclStubsPtr->gzflushPtr) /* 40 */
+ #define gzseek \
diff --git a/dev-tcltk/tkimg/tkimg-1.4.7.ebuild b/dev-tcltk/tkimg/tkimg-1.4.7.ebuild
new file mode 100644
index 000000000000..0798c06517db
--- /dev/null
+++ b/dev-tcltk/tkimg/tkimg-1.4.7.ebuild
@@ -0,0 +1,88 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit autotools eutils multilib prefix toolchain-funcs virtualx
+
+MYP=Img-Source-$PV
+
+DESCRIPTION="Adds a lot of image formats to Tcl/Tk"
+HOMEPAGE="http://tkimg.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${PN}/1.4/${PN}%20${PV}/${MYP}.tar.gz"
+
+SLOT="0"
+LICENSE="BSD"
+KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux"
+IUSE="doc test static-libs"
+
+RDEPEND="
+ dev-lang/tk:=
+ >=dev-tcltk/tcllib-1.11
+ media-libs/tiff:0=
+ >=media-libs/libpng-1.6:0=
+ >=sys-libs/zlib-1.2.7:=
+ x11-libs/libX11
+ virtual/jpeg:="
+DEPEND="${RDEPEND}
+ test? (
+ x11-apps/xhost
+ media-fonts/font-misc-misc
+ media-fonts/font-cursor-misc )"
+
+# Fails tests
+RESTRICT="test"
+
+S="${WORKDIR}/${MYP}"
+
+PATCHES=(
+ "${FILESDIR}"/${P}-tclconfig.patch
+ "${FILESDIR}"/${P}-jpeg.patch
+ "${FILESDIR}"/${P}-zlib.patch
+ "${FILESDIR}"/${P}-png.patch
+ "${FILESDIR}"/${P}-tiff.patch
+ "${FILESDIR}"/${P}-jpeg-9.patch
+)
+
+src_prepare() {
+ default
+ find . -name configure -delete
+ eautoreconf
+ for dir in zlib libpng libtiff libjpeg base bmp gif ico jpeg pcx pixmap png\
+ ppm ps sgi sun tga tiff window xbm xpm dted raw ; do
+ (cd $dir; eautoreconf)
+ done
+
+ find compat/{libjpeg,libpng,zlib,libtiff} -delete
+
+ eprefixify */*.h
+ tc-export AR
+}
+
+src_install() {
+ local l bl
+
+ emake \
+ DESTDIR="${D}" \
+ INSTALL_ROOT="${D}" \
+ install
+
+ if ! use static-libs; then
+ find "${ED}"/usr/$(get_libdir)/ -type f -name "*\.a" -delete || die
+ fi
+
+ # Make library links
+ for l in "${ED}"/usr/lib*/Img*/*tcl*.so; do
+ bl=$(basename $l)
+ dosym Img1.4/${bl} /usr/$(get_libdir)/${bl}
+ done
+
+ dodoc ChangeLog README Reorganization.Notes.txt changes ANNOUNCE
+
+ if use doc; then
+ insinto /usr/share/doc/${PF}
+ doins demo.tcl
+ insinto /usr/share/doc/${PF}/html
+ doins -r doc/*
+ fi
+}