]> git.sesse.net Git - vlc/blob - extras/contrib/src/Patches/libpng-osx.patch
contribs: updated libpng patch
[vlc] / extras / contrib / src / Patches / libpng-osx.patch
1 diff -urN libpng-1.2.41/scripts/makefile.darwin libpng/scripts/makefile.darwin
2 --- libpng-1.2.41/scripts/makefile.darwin       2009-12-03 04:46:02 +0300
3 +++ libpng/scripts/makefile.darwin       2009-12-04 14:37:52 +0300
4 @@ -10,14 +10,14 @@
5  # and license in png.h
6
7  # where "make install" puts libpng.a, libpng12.dylib, png.h and pngconf.h
8 -prefix=/usr/local
9 +prefix=??PREFIX??
10  exec_prefix=$(prefix)
11
12  # Where the zlib library and include files are located
13 -#ZLIBLIB=/usr/local/lib
14 -#ZLIBINC=/usr/local/include
15 -ZLIBLIB=../zlib
16 -ZLIBINC=../zlib
17 +ZLIBLIB=/usr/lib
18 +ZLIBINC=/usr/include
19 +#ZLIBLIB=../zlib
20 +#ZLIBINC=../zlib
21
22  # Library name:
23  LIBNAME = libpng12
24 @@ -42,8 +42,8 @@
25  RM_F=/bin/rm -f
26
27  # CFLAGS=-I$(ZLIBINC) -W -Wall -O3 -funroll-loops -DPNG_NO_MMX_CODE
28 -CFLAGS=-I$(ZLIBINC) -W -Wall -O -funroll-loops
29 -LDFLAGS=-L. -L$(ZLIBLIB) -lpng12 -lz
30 +CFLAGS=-DPNG_CONFIGURE_LIBPNG ??EXTRA_CFLAGS?? -I$(ZLIBINC) -W -Wall -O -funroll-loops
31 +LDFLAGS=??EXTRA_LDFLAGS?? -L. -L$(ZLIBLIB) -lpng12 -lz
32
33  INCPATH=$(prefix)/include
34  LIBPATH=$(exec_prefix)/lib
35 @@ -76,7 +76,7 @@
36  .c.pic.o:
37         $(CC) -c $(CFLAGS) -fno-common -o $@ $*.c
38
39 -all: libpng.a $(LIBSO) pngtest libpng.pc libpng-config
40 +all: libpng.a $(LIBSO) libpng.pc libpng-config
41
42  libpng.a: $(OBJS)
43         $(AR_RC) $@ $(OBJS)
44 @@ -185,7 +185,7 @@
45         chmod 755 $(DB)/$(LIBNAME)-config
46         (cd $(DB); $(LN_SF) $(LIBNAME)-config libpng-config)
47
48 -install: install-static install-shared install-man install-config
49 +install: install-static install-man install-config
50
51  # If you installed in $(DESTDIR), test-installed won't work until you
52  # move the library to its final location.  Use test-dd to test it