# HG changeset patch # User diego # Date 1137209942 0 # Node ID f957dbf08fcfdcfad88d1837bd044d244c648a39 # Parent edbe5c3717f95c703ba8c0bd2066d6a56f72f4a2 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 edbe5c3717f9 -r f957dbf08fcf Makefile --- a/Makefile Thu Jan 12 22:43:26 2006 +0000 +++ b/Makefile Sat Jan 14 03:39:02 2006 +0000 @@ -80,7 +80,9 @@ LIB= $(LIBPREF)avformat$(LIBSUF) ifeq ($(BUILD_SHARED),yes) -LIBVERSION=$(LAVFMAJOR) +LIBVERSION=$(LAVFVERSION) +LIBMAJOR=$(LAVFMAJOR) +NAME=avformat SLIBNAME= $(SLIBPREF)avformat$(SLIBSUF) AVCLIBS+=-lavcodec$(BUILDSUF) -L../libavcodec -lavutil$(BUILDSUF) -L../libavutil endif @@ -111,8 +113,12 @@ install $(INSTALLSTRIP) -m 755 $(SLIBNAME) "$(prefix)" else install -d $(libdir) - install $(INSTALLSTRIP) -m 755 $(SLIBNAME) $(libdir)/$(SLIBPREF)avformat-$(VERSION)$(SLIBSUF) - ln -sf $(SLIBPREF)avformat-$(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