Mercurial > libavformat.hg
changeset 897:f957dbf08fcf libavformat
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 | edbe5c3717f9 |
children | 51a83f9981f2 |
files | Makefile |
diffstat | 1 files changed, 9 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- 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