diff options
author | Diego Biurrun <diego@biurrun.de> | 2006-07-15 23:01:52 +0000 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2006-07-15 23:01:52 +0000 |
commit | 84c22efdfb825370875763622e6a6747b956cab0 (patch) | |
tree | 8faed9204e364313d7d6d68c729b264701f74e86 | |
parent | 2266e085c98bf5cdbff8cb2ae6f18ac9d84d6a0a (diff) | |
download | ffmpeg-84c22efdfb825370875763622e6a6747b956cab0.tar.gz |
Create infrastructure to install shared and static libs into different places.
based on patch by VĂctor Paesa wzrlpy at arsystel com
Originally committed as revision 5755 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | common.mak | 6 | ||||
-rwxr-xr-x | configure | 5 | ||||
-rw-r--r-- | 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) @@ -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) $< |