# HG changeset patch # User diego # Date 1137209942 0 # Node ID 0e94608e337fbdddfda9411787e9aed496f568ce # Parent af59e84e283d9095f6bf9902837009f97a8e911a Create symbolic links for all library sonames and clean up Makefiles. based on a patch by Luca Barbato < lu_zero -- at -- gentoo -- dot -- org > diff -r af59e84e283d -r 0e94608e337f Makefile --- a/Makefile Thu Jan 12 22:43:26 2006 +0000 +++ b/Makefile Sat Jan 14 03:39:02 2006 +0000 @@ -22,7 +22,9 @@ LIB= $(LIBPREF)avutil$(LIBSUF) ifeq ($(BUILD_SHARED),yes) -LIBVERSION=$(LAVUMAJOR) +LIBVERSION=$(LAVUVERSION) +LIBMAJOR=$(LAVUMAJOR) +NAME=avutil SLIBNAME= $(SLIBPREF)avutil$(SLIBSUF) endif @@ -62,8 +64,12 @@ install $(INSTALLSTRIP) -m 755 $(SLIBNAME) "$(prefix)" else install -d $(libdir) - install $(INSTALLSTRIP) -m 755 $(SLIBNAME) $(libdir)/libavutil-$(VERSION)$(SLIBSUF) - ln -sf libavutil-$(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 else