diff libpostproc/Makefile @ 3040:6a388c616fa3 libavcodec

Create symbolic links for all library sonames and clean up Makefiles. based on a patch by Luca Barbato < lu_zero -- at -- gentoo -- dot -- org >
author diego
date Sat, 14 Jan 2006 03:39:02 +0000
parents af849198c7c4
children ed98beb48872
line wrap: on
line diff
--- a/libpostproc/Makefile	Sat Jan 14 01:33:17 2006 +0000
+++ b/libpostproc/Makefile	Sat Jan 14 03:39:02 2006 +0000
@@ -5,6 +5,9 @@
 
 LIB = $(LIBPREF)postproc$(LIBSUF)
 ifeq ($(SHARED_PP),yes)
+LIBVERSION=$(SPPVERSION)
+LIBMAJOR=$(SPPMAJOR)
+NAME=postproc
 SLIBNAME = $(SLIBPREF)postproc$(SLIBSUF)
 endif
 
@@ -53,8 +56,12 @@
 	install $(INSTALLSTRIP) -m 755 $(SLIBNAME) "$(prefix)"
 else
 	install -d $(libdir)
-	install $(INSTALLSTRIP) -m 755 $(SLIBNAME) $(libdir)/libpostproc-$(VERSION)$(SLIBSUF)
-	ln -sf $(SLIBPREF)postproc-$(VERSION)$(SLIBSUF) $(libdir)/$(SLIBNAME)
+	install $(INSTALLSTRIP) -m 755 $(SLIBNAME) \
+		$(libdir)/$(SLIBNAME_WITH_VERSION)
+	ln -sf $(SLIBNAME_WITH_VERSION) \
+		$(libdir)/$(SLIBNAME_WITH_MAJOR)
+	ln -sf $(SLIBNAME_WITH_VERSION) \
+		$(libdir)/$(SLIBNAME)
 	$(LDCONFIG) || true
 endif
 endif