]> git.sesse.net Git - vlc/blob - extras/contrib/src/Patches/libpng-win32.patch
live: updated patch
[vlc] / extras / contrib / src / Patches / libpng-win32.patch
1 --- scripts/makefile.cygwin     2006-06-27 22:22:40.000000000 +0200
2 +++ scripts/makefile.cygwin     2006-07-12 13:18:15.000000000 +0200
3 @@ -35,7 +35,6 @@
4  # $CFLAGS, and include pnggccrd.o in $OBJS, below, and in the dependency
5  # list at the bottom of this makefile.
6  
7 -CC=gcc
8  ifdef MINGW
9  MINGW_CCFLAGS=-mno-cygwin -I/usr/include/mingw
10  MINGW_LDFLAGS=-mno-cygwin -L/usr/lib/mingw
11 @@ -43,14 +42,13 @@
12  
13  # Where "make install" puts libpng*.a, *png*.dll, png.h, and pngconf.h
14  ifndef prefix
15 -prefix=/usr
16 -$(warning You haven't specified a 'prefix=' location. Defaulting to "/usr")
17 +prefix=??PREFIX??
18  endif
19  exec_prefix=$(prefix)
20  
21  # Where the zlib library and include files are located
22 -ZLIBLIB= /usr/lib
23 -ZLIBINC=
24 +ZLIBLIB= ??PREFIX??/lib
25 +ZLIBINC= ??PREFIX??/include
26  #ZLIBLIB=../zlib
27  #ZLIBINC=../zlib
28  
29 @@ -95,7 +93,9 @@
30  LDEXTRA=-Wl,--out-implib=$(IMPLIB) $(addprefix -L,$(ZLIBLIB)) -lz
31  
32  MKDIR_P=/bin/mkdir -pv
33 +ifndef RANLIB
34  RANLIB=ranlib
35 +endif
36  #RANLIB=echo
37  
38  INCPATH=$(prefix)/include
39 @@ -174,7 +174,7 @@
40         $(CC) -c $(CFLAGS) -DPNG_BUILD_DLL -o $@ $<
41  
42  $(STATLIB): $(OBJS)
43 -       ar rc $@ $(OBJS)
44 +       $(AR) rc $@ $(OBJS)
45         $(RANLIB) $@
46  
47  $(SHAREDDEF): scripts/pngw32.def