# HG changeset patch # User diego # Date 1137209942 0 # Node ID 6a388c616fa34f52b70590fd596cc5fb58c3c862 # Parent 0d08717a0156ae86b02e51c615d1e74fd8716c27 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 0d08717a0156 -r 6a388c616fa3 Makefile --- a/Makefile Sat Jan 14 01:33:17 2006 +0000 +++ b/Makefile Sat Jan 14 03:39:02 2006 +0000 @@ -399,6 +399,9 @@ LIB= $(LIBPREF)avcodec$(LIBSUF) LIBAVUTIL= $(SRC_PATH)/libavutil/$(LIBPREF)avutil$(LIBSUF) ifeq ($(BUILD_SHARED),yes) +LIBVERSION=$(LAVCVERSION) +LIBMAJOR=$(LAVCMAJOR) +NAME=avcodec SLIBNAME= $(SLIBPREF)avcodec$(SLIBSUF) endif TESTS= imgresample-test dct-test motion-test fft-test @@ -490,14 +493,17 @@ $(CC) -o $@ $^ $(LIBAVUTIL) -lm ifeq ($(BUILD_SHARED),yes) -LIBVERSION=$(LAVCMAJOR) install: all install-headers ifeq ($(CONFIG_WIN32),yes) install $(INSTALLSTRIP) -m 755 $(SLIBNAME) "$(prefix)" else install -d $(libdir) - install $(INSTALLSTRIP) -m 755 $(SLIBNAME) $(libdir)/libavcodec-$(VERSION)$(SLIBSUF) - ln -sf $(SLIBPREF)avcodec-$(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 ifeq ($(CONFIG_PP),yes) diff -r 0d08717a0156 -r 6a388c616fa3 libpostproc/Makefile --- 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