]> git.sesse.net Git - vlc/commitdiff
* Disable building of shared lib of libpng on OSX. it's broken
authorDerk-Jan Hartman <hartman@videolan.org>
Wed, 6 Apr 2005 23:04:23 +0000 (23:04 +0000)
committerDerk-Jan Hartman <hartman@videolan.org>
Wed, 6 Apr 2005 23:04:23 +0000 (23:04 +0000)
extras/contrib/src/Makefile
extras/contrib/src/Patches/libpng.patch

index 8f333fc5072d27913b7754f5cd0faffc35f7193d..73c34b36398b2205fca4352fa2f483f2807f21c1 100644 (file)
@@ -1023,7 +1023,7 @@ libpng: libpng-$(PNG_VERSION).tar.bz2
        cat Patches/libpng.patch | sed s,PREFIX,$(PREFIX), | patch -p0
 
 .png: libpng
-       (cd $<; cp scripts/makefile.macosx Makefile && make shared && make install)
+       (cd $<; cp scripts/makefile.macosx Makefile && make && make install)
        touch $@
 
 CLEAN_FILE += .png
index 965d48dcefe915d39951820c40ed1bb055718390..3e5291fdb1b721b531294480cb450cd44a81ccc7 100644 (file)
@@ -1,11 +1,39 @@
---- libpng/scripts/makefile.macosx     Sun Sep 26 18:18:04 2004
-+++ libpng/scripts/makefile.macosx.orig        Thu Oct  3 13:32:34 2002
+diff -ruN libpng.orig/scripts/makefile.macosx libpng/scripts/makefile.macosx
+--- libpng.orig/scripts/makefile.macosx        Thu Oct  3 13:32:34 2002
++++ libpng/scripts/makefile.macosx     Thu Apr  7 01:00:51 2005
 @@ -6,7 +6,7 @@
  # For conditions of distribution and use, see copyright notice in png.h
  
  # where make install puts libpng.a and png.h
 -prefix=/usr/local
 +prefix=PREFIX
-
  # Where the zlib library and include files are located
  #ZLIBLIB=/usr/local/lib
+@@ -21,7 +21,7 @@
+ PNGVER = $(PNGMAJ).$(PNGMIN)
+ CFLAGS=-fno-common -I$(ZLIBINC) -O # -g -DPNG_DEBUG=5
+-LDFLAGS=-L. -L$(ZLIBLIB) -lpng -lz -current_version $(PNGVER)
++LDFLAGS=-L. -L$(ZLIBLIB) -lpng -lz
+ LIBNAME=libpng12
+ SHAREDLIB_POSTFIX=dylib
+@@ -52,7 +52,7 @@
+       pngread.o pngrio.o pngwio.o pngwrite.o pngrtran.o \
+       pngwtran.o pngmem.o pngerror.o pngpread.o
+-all: libpng.a pngtest shared libpng.pc libpng-config
++all: libpng.a pngtest libpng.pc libpng-config
+ shared: $(LIBNAME).$(PNGVER).$(SHAREDLIB_POSTFIX)
+@@ -153,7 +153,7 @@
+       chmod 755 $(DB)/$(LIBNAME)-config
+       (cd $(DB); ln -sf $(LIBNAME)-config libpng-config)
+-install: install-static install-shared install-man install-config
++install: install-static install-man install-config
+ # If you installed in $(DESTDIR), test-installed won't work until you
+ # move the library to its final location.