From 793fedcf57d331109bf2307976f70cbd02f0a441 Mon Sep 17 00:00:00 2001 From: Glenn Randers-Pehrson Date: Thu, 7 Jan 2010 11:00:07 -0600 Subject: [PATCH] [master] Revise makefile.linux to build libpng.so.14.1 --- scripts/makefile.linux | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/scripts/makefile.linux b/scripts/makefile.linux index 0029f8f86..08712c79f 100644 --- a/scripts/makefile.linux +++ b/scripts/makefile.linux @@ -10,10 +10,12 @@ # Library name: LIBNAME = libpng14 PNGMAJ = 14 +RELEASE = 1 # Shared library names: LIBSO=$(LIBNAME).so LIBSOMAJ=$(LIBNAME).so.$(PNGMAJ) +LIBSOREL=$(LIBSOMAJ).$(RELEASE) OLDSO=libpng.so # Utilities: @@ -147,12 +149,12 @@ install-static: install-headers libpng.a install-shared: install-headers $(LIBSOMAJ) libpng.pc -@if [ ! -d $(DL) ]; then $(MKDIR_P) $(DL); fi -@$(RM_F) $(DL)/$(LIBSO) - -@$(RM_F) $(DL)/$(LIBSOMAJ) + -@$(RM_F) $(DL)/$(LIBSOREL) -@$(RM_F) $(DL)/$(OLDSO) - cp $(LIBSOMAJ) $(DL) - chmod 755 $(DL)/$(LIBSOMAJ) + cp $(LIBSOMAJ) $(DL)/$(LIBSOREL) + chmod 755 $(DL)/$(LIBSOREL) (cd $(DL); \ - $(LN_SF) $(LIBSOMAJ) $(LIBSO); \ + $(LN_SF) $(LIBSOREL) $(LIBSO); \ $(LN_SF) $(LIBSO) $(OLDSO)) -@if [ ! -d $(DL)/pkgconfig ]; then $(MKDIR_P) $(DL)/pkgconfig; fi