Fridrich Strba wrote:
I meant the install.doc document
Cheers
Fridrich
On Fri, 2009-05-15 at 23:00 +0200, Fridrich Strba wrote:
> Why not to read the README in the sources concerning win32 and do
> exactly what they suggest?
>
> Fridrich
>
> On Fri, 2009-05-15 at 16:19 +0200, Farkas Levente wrote:
>> hi,
>> it's turn out mingw32-libjpeg can't be used since it's contains a
few
>> typedef (INT32, boolean) which already defined in w32api so it's works
>> as a native lib but not as mingw32 lib. i'd like to make a patch for
>> this. what's the recommended way for this:
>> - should i apply a patch which simply remove these typedefs or
>> - add an extra ifdef for these typedef (and which ifdef use for this
>> purpose)?
>> thanks.
ok we rtfm:-) so we fix it.
may i apply this patch to the fedora cvs?
--
Levente "Si vis pacem para bellum!"
Index: jpeg-mingw32.patch
===================================================================
RCS file: /cvs/pkgs/rpms/mingw32-libjpeg/devel/jpeg-mingw32.patch,v
retrieving revision 1.1
diff -u -r1.1 jpeg-mingw32.patch
--- jpeg-mingw32.patch 30 Jan 2009 11:48:26 -0000 1.1
+++ jpeg-mingw32.patch 19 May 2009 13:17:56 -0000
@@ -1,7 +1,6 @@
-diff -rup jpeg-6b/makefile.cfg jpeg-6b.new/makefile.cfg
---- jpeg-6b/makefile.cfg 2008-09-09 09:54:38.000000000 -0400
-+++ jpeg-6b.new/makefile.cfg 2008-09-09 09:55:03.000000000 -0400
-@@ -169,7 +169,7 @@ libjpeg.a: @A2K_DEPS@ $(LIBOBJECTS)
+--- ./makefile.cfg.mingw32 2009-05-19 14:56:43.000000000 +0200
++++ ./makefile.cfg 2009-05-19 14:56:43.000000000 +0200
+@@ -169,7 +169,7 @@
# with libtool:
libjpeg.la: @A2K_DEPS@ $(LIBOBJECTS)
$(LIBTOOL) --mode=link $(CC) $(CFLAGS) -o libjpeg.la $(LIBOBJECTS) \
@@ -10,3 +9,28 @@
# sample programs:
+--- ./jconfig.vc.mingw32 2009-05-19 15:02:19.000000000 +0200
++++ ./jconfig.vc 2009-05-19 15:03:51.000000000 +0200
+@@ -21,6 +21,11 @@
+ #endif
+ #define HAVE_BOOLEAN /* prevent jmorecfg.h from redefining it */
+
++/* Define "INT32" as int, not long, per Windows custom */
++#ifndef __BASETSD_H__ /* don't conflict if basetsd.h already read */
++typedef int INT32;
++#endif
++#define HAVE_INT32 /* prevent jmorecfg.h from redefining it */
+
+ #ifdef JPEG_INTERNALS
+
+--- ./jmorecfg.h.mingw32 2009-05-19 15:01:33.000000000 +0200
++++ ./jmorecfg.h 2009-05-19 15:02:07.000000000 +0200
+@@ -157,7 +157,7 @@
+
+ /* INT32 must hold at least signed 32-bit values. */
+
+-#ifndef XMD_H /* X11/xmd.h correctly defines INT32 */
++#ifndef HAVE_INT32
+ typedef long INT32;
+ #endif
+
Index: mingw32-libjpeg.spec
===================================================================
RCS file: /cvs/pkgs/rpms/mingw32-libjpeg/devel/mingw32-libjpeg.spec,v
retrieving revision 1.3
diff -u -r1.3 mingw32-libjpeg.spec
--- mingw32-libjpeg.spec 26 Feb 2009 01:14:41 -0000 1.3
+++ mingw32-libjpeg.spec 19 May 2009 13:17:56 -0000
@@ -10,7 +10,7 @@
Name: mingw32-libjpeg
Version: 6b
-Release: 10%{?dist}
+Release: 11%{?dist}
Summary: MinGW Windows Libjpeg library
License: IJG
@@ -50,7 +50,7 @@
%patch5 -p1 -b .oflo
%patch6 -p1
-%patch100 -p1
+%patch100 -p1 -b .mingw32
# For long-obsolete reasons, libjpeg 6b doesn't ship with a configure.in.
# We need to re-autoconf though, in order to update libtool support,
@@ -137,6 +137,9 @@
%changelog
+* Tue May 19 2009 Zoltan Seress <gatesofdarkness(a)gmail.com> - 6b-11.el5
+- modify jpeg-mingw32.patch to use correct typedefs on Windows
+
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng(a)lists.fedoraproject.org> -
6b-10
- Rebuilt for
https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild