]> git.sesse.net Git - vlc/blob - extras/contrib/src/Patches/libpng-osx.patch
* make more contribs work with SDK. refs #182
[vlc] / extras / contrib / src / Patches / libpng-osx.patch
1 diff -ruN libpng-1.2.5/scripts/makefile.macosx libpng/scripts/makefile.macosx
2 --- libpng-1.2.5/scripts/makefile.macosx        2002-10-03 13:32:34.000000000 +0200
3 +++ libpng/scripts/makefile.macosx      2006-02-22 22:05:47.000000000 +0100
4 @@ -6,7 +6,7 @@
5  # For conditions of distribution and use, see copyright notice in png.h
6  
7  # where make install puts libpng.a and png.h
8 -prefix=/usr/local
9 +prefix=??PREFIX??
10  
11  # Where the zlib library and include files are located
12  #ZLIBLIB=/usr/local/lib
13 @@ -20,8 +20,8 @@
14  PNGMIN = 1.2.5
15  PNGVER = $(PNGMAJ).$(PNGMIN)
16  
17 -CFLAGS=-fno-common -I$(ZLIBINC) -O # -g -DPNG_DEBUG=5
18 -LDFLAGS=-L. -L$(ZLIBLIB) -lpng -lz -current_version $(PNGVER)
19 +CFLAGS=??EXTRA_CFLAGS?? -fno-common -I$(ZLIBINC) -O # -g -DPNG_DEBUG=5
20 +LDFLAGS=??EXTRA_LDFLAGS?? -L. -L$(ZLIBLIB) -lpng -lz
21  
22  LIBNAME=libpng12
23  SHAREDLIB_POSTFIX=dylib
24 @@ -52,7 +52,7 @@
25         pngread.o pngrio.o pngwio.o pngwrite.o pngrtran.o \
26         pngwtran.o pngmem.o pngerror.o pngpread.o
27  
28 -all: libpng.a pngtest shared libpng.pc libpng-config
29 +all: libpng.a pngtest libpng.pc libpng-config
30  
31  shared: $(LIBNAME).$(PNGVER).$(SHAREDLIB_POSTFIX)
32  
33 @@ -153,7 +153,7 @@
34         chmod 755 $(DB)/$(LIBNAME)-config
35         (cd $(DB); ln -sf $(LIBNAME)-config libpng-config)
36  
37 -install: install-static install-shared install-man install-config
38 +install: install-static install-man install-config
39  
40  # If you installed in $(DESTDIR), test-installed won't work until you
41  # move the library to its final location.