diff Makefile @ 2564:ad15cccd015f libavcodec

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 dd8c4d4b8abc
children 99bcd49a3677
line wrap: on
line diff
--- a/Makefile	Wed Mar 16 13:09:30 2005 +0000
+++ b/Makefile	Wed Mar 16 19:11:58 2005 +0000
@@ -302,9 +302,9 @@
 ifeq ($(CONFIG_WIN32),yes)
 	install $(INSTALLSTRIP) -m 755 $(SLIB) "$(prefix)"
 else
-	install -d $(prefix)/lib
-	install $(INSTALLSTRIP) -m 755 $(SLIB) $(prefix)/lib/libavcodec-$(VERSION).so
-	ln -sf libavcodec-$(VERSION).so $(prefix)/lib/libavcodec.so
+	install -d $(libdir)
+	install $(INSTALLSTRIP) -m 755 $(SLIB) $(libdir)/libavcodec-$(VERSION).so
+	ln -sf libavcodec-$(VERSION).so $(libdir)/libavcodec.so
 	ldconfig || true
 endif
 ifeq ($(CONFIG_PP),yes)
@@ -315,7 +315,7 @@
 endif
 
 installlib: all install-headers
-	install -m 644 $(LIB) "$(prefix)/lib"
+	install -m 644 $(LIB) "$(libdir)"
 
 install-headers:
 	mkdir -p "$(prefix)/include/ffmpeg"