]> git.sesse.net Git - vlc/blob - extras/contrib/src/Patches/libpng-osx.patch
* forwardport [18332]:
[vlc] / extras / contrib / src / Patches / libpng-osx.patch
1 diff -ruN libpng-1.2.12/scripts/makefile.darwin libpng/scripts/makefile.darwin
2 --- libpng-1.2.12/scripts/makefile.darwin       2006-06-27 22:22:40.000000000 +0200
3 +++ libpng/scripts/makefile.darwin      2006-12-08 18:15:36.000000000 +0100
4 @@ -7,14 +7,14 @@
5  # For conditions of distribution and use, see copyright notice 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 @@ -38,8 +38,8 @@
25  RANLIB=ranlib
26  RM_F=/bin/rm -f
27  
28 -CFLAGS=-I$(ZLIBINC) -Wall -O3 -funroll-loops
29 -LDFLAGS=-L. -L$(ZLIBLIB) -lpng12 -lz
30 +CFLAGS=??EXTRA_CFLAGS?? -I$(ZLIBINC) -Wall -O3 -funroll-loops
31 +LDFLAGS=??EXTRA_LDFLAGS?? -L. -L$(ZLIBLIB) -lpng12 -lz
32  
33  INCPATH=$(prefix)/include
34  LIBPATH=$(exec_prefix)/lib
35 @@ -72,7 +72,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 @@ -178,7 +178,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