changeset 707:cc612862d461 libavformat

add libdir support to configure patch by (Luca Barbato )lu_zero gentoo org)
author michael
date Wed, 16 Mar 2005 19:11:58 +0000
parents fc254f396f15
children d79164865a7c
files Makefile
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/Makefile	Wed Mar 16 19:06:34 2005 +0000
+++ b/Makefile	Wed Mar 16 19:11:58 2005 +0000
@@ -108,9 +108,9 @@
 ifeq ($(CONFIG_WIN32),yes)
 	install $(INSTALLSTRIP) -m 755 $(SLIB) "$(prefix)"
 else
-	install -d $(prefix)/lib
-	install $(INSTALLSTRIP) -m 755 $(SLIB) $(prefix)/lib/libavformat-$(VERSION).so
-	ln -sf libavformat-$(VERSION).so $(prefix)/lib/libavformat.so
+	install -d $(libdir)
+	install $(INSTALLSTRIP) -m 755 $(SLIB) $(libdir)/libavformat-$(VERSION).so
+	ln -sf libavformat-$(VERSION).so $(libdir)/libavformat.so
 	ldconfig || true
 endif
 else
@@ -118,7 +118,7 @@
 endif
 
 installlib: all install-headers
-	install -m 644 $(LIB) "$(prefix)/lib"
+	install -m 644 $(LIB) "$(libdir)"
 
 install-headers:
 	mkdir -p "$(prefix)/include/ffmpeg"