summaryrefslogtreecommitdiff
blob: 30cfafa8b307bc21f9981f534e945e44a060deef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
 libjpeg/configure.in      |   21 +--------------------
 libjpeg/jpegtclDecls.h    |    4 ++--
 libpng/configure.in       |   10 +---------
 libpng/pngtclDecls.h      |    2 +-
 libtiff/configure.in      |   19 ++-----------------
 libtiff/tifftcl.decls     |    3 ---
 libtiff/tifftclDecls.h    |    7 +++----
 libtiff/tifftclStubInit.c |    1 -
 zlib/configure.in         |    7 +------
 zlib/zlibtclDecls.h       |    2 +-
 10 files changed, 12 insertions(+), 64 deletions(-)

diff --git a/libjpeg/configure.in b/libjpeg/configure.in
index ebf24a1..c38f766 100644
--- a/libjpeg/configure.in
+++ b/libjpeg/configure.in
@@ -54,30 +54,11 @@ 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}`\"])
 TEA_ADD_INCLUDES([-I\"./libjpeg\"])
-TEA_ADD_LIBS([])
+TEA_ADD_LIBS([-ljpeg])
 TEA_ADD_CFLAGS([])
 TEA_ADD_STUB_SOURCES([jpegtclStubLib.c])
 TEA_ADD_SOURCES([jpegtclStubLib.c])
diff --git a/libjpeg/jpegtclDecls.h b/libjpeg/jpegtclDecls.h
index e4cd005..34106b0 100644
--- a/libjpeg/jpegtclDecls.h
+++ b/libjpeg/jpegtclDecls.h
@@ -33,8 +33,8 @@ EXTERN int Jpegtcl_SafeInit(Tcl_Interp *interp);
 #if !defined(NO_PROTOTYPES) && !defined(HAVE_PROTOTYPES)
 #   define HAVE_PROTOTYPES 1
 #endif
-#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/libpng/configure.in b/libpng/configure.in
index 4bfe863..7380680 100644
--- a/libpng/configure.in
+++ b/libpng/configure.in
@@ -65,19 +65,11 @@ 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}`\"])
 TEA_ADD_INCLUDES([-I\"`\${CYGPATH} \${srcdir}`\"])
-TEA_ADD_LIBS([-lm])
+TEA_ADD_LIBS([-lm -lpng])
 TEA_ADD_CFLAGS([-DZLIBTCL_VERSION=\\\"${zlibtcl_VERSION}\\\"])
 TEA_ADD_STUB_SOURCES([pngtclStubLib.c])
 TEA_ADD_SOURCES([pngtclStubLib.c])
diff --git a/libpng/pngtclDecls.h b/libpng/pngtclDecls.h
index 32baeab..a535e25 100644
--- a/libpng/pngtclDecls.h
+++ b/libpng/pngtclDecls.h
@@ -28,7 +28,7 @@
 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"
 
 /* !BEGIN!: Do not edit below this line. */
 
diff --git a/libtiff/configure.in b/libtiff/configure.in
index 64e5bdf..20a8dd1 100644
--- a/libtiff/configure.in
+++ b/libtiff/configure.in
@@ -68,7 +68,7 @@ else
     TIFFHOST="$host"
 fi
 ${srcdir}/../compat/libtiff/configure --disable-zlib --disable-pixarlog --disable-jpeg \
-	"--with-CC=$TIFFCC" $TIFFHOST
+	$TIFFHOST
 mv -f tifftcl_confdefs.h confdefs.h
 
 #-----------------------------------------------------------------------
@@ -82,20 +82,6 @@ mv -f tifftcl_confdefs.h confdefs.h
 
 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\"])
@@ -133,7 +119,6 @@ if test "${TEA_PLATFORM}" = "windows" ; then
     TEA_ADD_SOURCES([../compat/libtiff/libtiff/tif_win32.c])
 else
     CLEANFILES=""
-    TEA_ADD_SOURCES([../compat/libtiff/libtiff/tif_unix.c])
 fi
 AC_SUBST(CLEANFILES)
 
@@ -198,7 +183,7 @@ TEA_MAKE_LIB
 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" != "yes" ; then
     TEA_ADD_LIBS([user32.lib])
 else
-    TEA_ADD_LIBS([-lm])
+    TEA_ADD_LIBS([-lm -ltiff])
 fi
 
 #--------------------------------------------------------------------
diff --git a/libtiff/tifftcl.decls b/libtiff/tifftcl.decls
index bed9be1..e7f1433 100644
--- a/libtiff/tifftcl.decls
+++ b/libtiff/tifftcl.decls
@@ -172,9 +172,6 @@ declare 48 {
 declare 49 {
     int TIFFWriteDirectory(TIFF *tiffptr)
 }
-declare 50 {
-    int TIFFReassignTagToIgnore(enum TIFFIgnoreSense a, int b)
-}
 declare 51 {
     void TIFFPrintDirectory(TIFF *tiffptr, FILE *a, long b)
 }
diff --git a/libtiff/tifftclDecls.h b/libtiff/tifftclDecls.h
index 1732cad..8ae1967 100644
--- a/libtiff/tifftclDecls.h
+++ b/libtiff/tifftclDecls.h
@@ -34,7 +34,9 @@ EXTERN int Tifftcl_SafeInit(Tcl_Interp *interp);
  */
 #undef INLINE
 
-#include "../compat/libtiff/libtiff/tiffio.h"
+#include "../compat/libtiff/libtiff/tiffiop.h"
+#include "@GENTOO_PORTAGE_EPREFIX@/usr/include/tiff.h"
+#include "@GENTOO_PORTAGE_EPREFIX@/usr/include/tiffio.h"
 #include "../compat/libtiff/libtiff/tiffiop.h"
 #include "../compat/libtiff/libtiff/tif_predict.h"
 
@@ -150,9 +152,6 @@ TIFFTCLAPI int		TIFFSetField(TIFF *tiffptr, ttag_t a, ...);
 TIFFTCLAPI int		TIFFVSetField(TIFF *tiffptr, ttag_t 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 */
diff --git a/libtiff/tifftclStubInit.c b/libtiff/tifftclStubInit.c
index cf9448f..7302310 100644
--- a/libtiff/tifftclStubInit.c
+++ b/libtiff/tifftclStubInit.c
@@ -70,7 +70,6 @@ const TifftclStubs tifftclStubs = {
     TIFFSetField, /* 47 */
     TIFFVSetField, /* 48 */
     TIFFWriteDirectory, /* 49 */
-    TIFFReassignTagToIgnore, /* 50 */
     TIFFPrintDirectory, /* 51 */
     TIFFReadScanline, /* 52 */
     TIFFWriteScanline, /* 53 */
diff --git a/zlib/configure.in b/zlib/configure.in
index 713bc51..2aff164 100644
--- a/zlib/configure.in
+++ b/zlib/configure.in
@@ -51,16 +51,11 @@ 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])
 
 TEA_ADD_INCLUDES([-I\"`\${CYGPATH} \${srcdir}`\"])
-TEA_ADD_LIBS([])
+TEA_ADD_LIBS([-lz])
 TEA_ADD_CFLAGS([])
 TEA_ADD_STUB_SOURCES([zlibtclStubLib.c])
 TEA_ADD_SOURCES([zlibtclStubLib.c])
diff --git a/zlib/zlibtclDecls.h b/zlib/zlibtclDecls.h
index 2f7ecb2..d6666ab 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. */