changeset 912:c50c4713ac43

Support for --prefix option
author lgb
date Wed, 30 May 2001 20:23:20 +0000
parents 37f326340650
children 18c43d261c35
files Makefile configure
diffstat 2 files changed, 12 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/Makefile	Wed May 30 05:56:05 2001 +0000
+++ b/Makefile	Wed May 30 20:23:20 2001 +0000
@@ -17,7 +17,7 @@
 PRG_TV = tvision
 PRG_CFG = codec-cfg
 
-prefix = /usr/local
+#prefix = /usr/local
 BINDIR = ${prefix}/bin
 # BINDIR = /usr/local/bin
 SRCS = find_sub.c aviprint.c dll_init.c dec_audio.c aviwrite.c aviheader.c asfheader.c demux_avi.c demux_asf.c demux_mpg.c demuxer.c stream.c codec-cfg.c subreader.c linux/getch2.c linux/timer-lx.c linux/shmem.c xa/xa_gsm.c lirc_mp.c cfgparser.c mixer.c dvdauth.c spudec.c
--- a/configure	Wed May 30 05:56:05 2001 +0000
+++ b/configure	Wed May 30 20:23:20 2001 +0000
@@ -6,6 +6,9 @@
 #
 # Changes in reversed order:
 #
+# 2001/05/40 by LGB
+#  - added --prefix support
+#
 # 2001/05/22 by Nick Kurshev
 #  - added definition of CPU clone
 #
@@ -79,6 +82,7 @@
 
 params:
         --cc                    use this C compiler to build MPlayer [gcc]
+	--prefix=DIR		use this prefix for installing mplayer [/usr/local]
 	--enable-debug[=1-3]	compile debugging information into mplayer [disable]
 	--enable-profile	compile profiling information into mplayer [disable]
         --enable-mmx            build with mmx support [autodetect]
@@ -531,6 +535,8 @@
 
 # check for the parameters.
 
+_prefix="/usr/local"
+
 for ac_option
 do
  case "$ac_option" in
@@ -715,6 +721,9 @@
 	_y=`echo $ac_option | cut -d '=' -f 2`
 	;;
   --with-x11libdir=*)
+	;;
+  --prefix=*)
+	_prefix=`echo $ac_option | cut -d '=' -f 2`
         ;;
   --cc=*)
 	;;
@@ -731,6 +740,7 @@
 echo -n "Kernel: "
 uname -a
 echo "Using C compiler: $_cc"
+echo "Install prefix: $_prefix"
 $_cc -v
 as --version | head -n 1
 echo "Checking for cpu vendor ... $pvendor ( $pfamily:$pmodel:$pstepping )"
@@ -883,6 +893,7 @@
 WIN32_PATH=-DWIN32_PATH=\"$_win32libdir\"
 DS_DEP = $_dshowdep
 DS_LIB = $_dshowlib
+prefix = $_prefix
 
 EOF
 # echo 'CFLAGS=$(OPTFLAGS) -Wall -DMPG12PLAY' >> config.mak