From 84c22efdfb825370875763622e6a6747b956cab0 Mon Sep 17 00:00:00 2001 From: Diego Biurrun Date: Sat, 15 Jul 2006 23:01:52 +0000 Subject: [PATCH] =?UTF-8?q?Create=20infrastructure=20to=20install=20shared?= =?UTF-8?q?=20and=20static=20libs=20into=20different=20places.=20based=20o?= =?UTF-8?q?n=20patch=20by=20V=C3=ADctor=20Paesa=20wzrlpy=20at=20arsystel?= =?UTF-8?q?=20com?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Originally committed as revision 5755 to svn://svn.ffmpeg.org/ffmpeg/trunk --- common.mak | 6 +++--- configure | 5 +++++ vhook/Makefile | 8 ++++---- 3 files changed, 12 insertions(+), 7 deletions(-) diff --git a/common.mak b/common.mak index 75366e8ed9..f06d3268a0 100644 --- a/common.mak +++ b/common.mak @@ -65,11 +65,11 @@ ifeq ($(CONFIG_MINGW),yes) install $(INSTALLSTRIP) -m 755 $(SLIBNAME) "$(prefix)" else install $(INSTALLSTRIP) -m 755 $(SLIBNAME) \ - $(libdir)/$(SLIBNAME_WITH_VERSION) + $(shlibdir)/$(SLIBNAME_WITH_VERSION) ln -sf $(SLIBNAME_WITH_VERSION) \ - $(libdir)/$(SLIBNAME_WITH_MAJOR) + $(shlibdir)/$(SLIBNAME_WITH_MAJOR) ln -sf $(SLIBNAME_WITH_VERSION) \ - $(libdir)/$(SLIBNAME) + $(shlibdir)/$(SLIBNAME) endif install-lib-static: $(LIB) diff --git a/configure b/configure index eff8b7dc50..a8447cf1e3 100755 --- a/configure +++ b/configure @@ -26,6 +26,7 @@ show_help(){ echo " --log[=FILE|yes|no] log tests and output to FILE [config.err]" echo " --prefix=PREFIX install in PREFIX [$PREFIX]" echo " --libdir=DIR install libs in DIR [PREFIX/lib]" + echo " --shlibdir=DIR install shared libs in DIR [PREFIX/lib]" echo " --incdir=DIR install includes in DIR [PREFIX/include/ffmpeg]" echo " --mandir=DIR install man page in DIR [PREFIX/man]" echo " --enable-mp3lame enable MP3 encoding via libmp3lame [default=no]" @@ -324,6 +325,7 @@ logging="yes" logfile="config.err" PREFIX="/usr/local" libdir='${PREFIX}/lib' +shlibdir="$libdir" incdir='${PREFIX}/include/ffmpeg' mandir='${PREFIX}/man' bindir='${PREFIX}/bin' @@ -686,6 +688,8 @@ for opt do ;; --libdir=*) libdir="$optval"; force_libdir=yes ;; + --shlibdir=*) shlibdir="$optval" + ;; --incdir=*) incdir="$optval" ;; --mandir=*) mandir="$optval" @@ -1558,6 +1562,7 @@ echo "#define FFMPEG_CONFIGURATION "'"'"$FFMPEG_CONFIGURATION"'"' >> $TMPH echo "PREFIX=$PREFIX" >> config.mak echo "prefix=\$(DESTDIR)\${PREFIX}" >> config.mak echo "libdir=\$(DESTDIR)$libdir" >> config.mak +echo "shlibdir=\$(DESTDIR)$shlibdir" >> config.mak echo "incdir=\$(DESTDIR)$incdir" >> config.mak echo "bindir=\$(DESTDIR)$bindir" >> config.mak echo "mandir=\$(DESTDIR)$mandir" >> config.mak diff --git a/vhook/Makefile b/vhook/Makefile index dc311b83f3..7e9204c545 100644 --- a/vhook/Makefile +++ b/vhook/Makefile @@ -27,12 +27,12 @@ depend: $(SRCS) $(CC) -MM $(CFLAGS) $^ 1>.depend install: $(HOOKS) - install -d "$(libdir)/vhook" - install -m 755 $(HOOKS) "$(libdir)/vhook" + install -d "$(shlibdir)/vhook" + install -m 755 $(HOOKS) "$(shlibdir)/vhook" uninstall: - rm -f $(addprefix $(libdir)/vhook/,$(ALLHOOKS)) - -rmdir "$(libdir)/vhook/" + rm -f $(addprefix $(shlibdir)/vhook/,$(ALLHOOKS)) + -rmdir "$(shlibdir)/vhook/" %$(SLIBSUF): %.o $(CC) $(LDFLAGS) -g -o $@ $(VHOOKFLAGS) $<