Commit debf910e authored by Derk-Jan Hartman's avatar Derk-Jan Hartman

* Disable building of shared lib of libpng on OSX. it's broken

parent acda4ecb
......@@ -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
......
--- 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
......@@ -9,3 +10,30 @@
# 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.
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