Commit 7bdd5b8a authored by Konstantin Pavlov's avatar Konstantin Pavlov

Contribs: update libpng-osx.patch.

parent 870c18ef
diff -ruN libpng-1.2.30/scripts/makefile.darwin libpng/scripts/makefile.darwin diff -urN libpng-1.2.41/scripts/makefile.darwin libpng/scripts/makefile.darwin
--- libpng-1.2.30/scripts/makefile.darwin 2008-08-15 16:14:44.000000000 +0200 --- libpng-1.2.41/scripts/makefile.darwin 2009-12-03 04:46:02 +0300
+++ libpng/scripts/makefile.darwin 2008-08-20 01:48:40.000000000 +0200 +++ libpng/scripts/makefile.darwin 2009-12-04 14:37:52 +0300
@@ -7,14 +7,14 @@ @@ -10,14 +10,14 @@
# For conditions of distribution and use, see copyright notice in png.h # and license in png.h
# where "make install" puts libpng.a, libpng12.dylib, png.h and pngconf.h # where "make install" puts libpng.a, libpng12.dylib, png.h and pngconf.h
-prefix=/usr/local -prefix=/usr/local
...@@ -21,18 +21,18 @@ diff -ruN libpng-1.2.30/scripts/makefile.darwin libpng/scripts/makefile.darwin ...@@ -21,18 +21,18 @@ diff -ruN libpng-1.2.30/scripts/makefile.darwin libpng/scripts/makefile.darwin
# Library name: # Library name:
LIBNAME = libpng12 LIBNAME = libpng12
@@ -39,8 +39,8 @@ @@ -42,8 +42,8 @@
RM_F=/bin/rm -f RM_F=/bin/rm -f
# CFLAGS=-I$(ZLIBINC) -W -Wall -O3 -funroll-loops -DPNG_NO_MMX_CODE # CFLAGS=-I$(ZLIBINC) -W -Wall -O3 -funroll-loops -DPNG_NO_MMX_CODE
-CFLAGS=-I$(ZLIBINC) -W -Wall -O -funroll-loops -CFLAGS=-DPNG_CONFIGURE_LIBPNG -I$(ZLIBINC) -W -Wall -O -funroll-loops
-LDFLAGS=-L. -L$(ZLIBLIB) -lpng12 -lz -LDFLAGS=-L. -L$(ZLIBLIB) -lpng12 -lz
+CFLAGS=??EXTRA_CFLAGS?? -I$(ZLIBINC) -W -Wall -O -funroll-loops +CFLAGS=-DPNG_CONFIGURE_LIBPNG ??EXTRA_CFLAGS?? -I$(ZLIBINC) -W -Wall -O -funroll-loops
+LDFLAGS=??EXTRA_LDFLAGS?? -L. -L$(ZLIBLIB) -lpng12 -lz +LDFLAGS=??EXTRA_LDFLAGS?? -L. -L$(ZLIBLIB) -lpng12 -lz
INCPATH=$(prefix)/include INCPATH=$(prefix)/include
LIBPATH=$(exec_prefix)/lib LIBPATH=$(exec_prefix)/lib
@@ -73,7 +73,7 @@ @@ -76,7 +76,7 @@
.c.pic.o: .c.pic.o:
$(CC) -c $(CFLAGS) -fno-common -o $@ $*.c $(CC) -c $(CFLAGS) -fno-common -o $@ $*.c
...@@ -41,7 +41,7 @@ diff -ruN libpng-1.2.30/scripts/makefile.darwin libpng/scripts/makefile.darwin ...@@ -41,7 +41,7 @@ diff -ruN libpng-1.2.30/scripts/makefile.darwin libpng/scripts/makefile.darwin
libpng.a: $(OBJS) libpng.a: $(OBJS)
$(AR_RC) $@ $(OBJS) $(AR_RC) $@ $(OBJS)
@@ -182,7 +182,7 @@ @@ -185,7 +185,7 @@
chmod 755 $(DB)/$(LIBNAME)-config chmod 755 $(DB)/$(LIBNAME)-config
(cd $(DB); $(LN_SF) $(LIBNAME)-config libpng-config) (cd $(DB); $(LN_SF) $(LIBNAME)-config libpng-config)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment