Create symbolic links for all library sonames and clean up Makefiles.
[libav.git] / libavcodec / libpostproc / Makefile
index f497d6a..3026b96 100644 (file)
@@ -5,6 +5,9 @@ VPATH=$(SRC_PATH)/libavcodec/libpostproc
 
 LIB = $(LIBPREF)postproc$(LIBSUF)
 ifeq ($(SHARED_PP),yes)
+LIBVERSION=$(SPPVERSION)
+LIBMAJOR=$(SPPMAJOR)
+NAME=postproc
 SLIBNAME = $(SLIBPREF)postproc$(SLIBSUF)
 endif
 
@@ -53,8 +56,12 @@ ifeq ($(CONFIG_WIN32),yes)
        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