# HG changeset patch # User diego # Date 1198838002 0 # Node ID a5dd78186fdc46830b17fc3a1dae460e5eaaec8e # Parent 8d329f7bbc3cdeb9417a4898dadb7cb09ad81081 Make windres binary name configurable, useful for cross-compiling. patch by sheba, sheba469 yahoo com diff -r 8d329f7bbc3c -r a5dd78186fdc configure --- a/configure Fri Dec 28 03:45:01 2007 +0000 +++ b/configure Fri Dec 28 10:33:22 2007 +0000 @@ -400,6 +400,7 @@ --as=ASSEMBLER assembler to build MPlayer [as] --ar=AR librarian to build MPlayer [ar] --ranlib=RANLIB ranlib to build MPlayer [ranlib] + --windres=WINDRES windres to build MPlayer [windres] --target=PLATFORM target platform (i386-linux, arm-linux, etc) --enable-static build a statically linked binary --charset=charset convert the console messages to this character set @@ -478,6 +479,7 @@ _altivec=auto _install=install _ranlib=ranlib +_windres=windres _ldconfig=ldconfig _cc=cc _ar=ar @@ -770,6 +772,9 @@ --ranlib=*) _ranlib=`echo $ac_option | cut -d '=' -f 2` ;; + --windres=*) + _windres=`echo $ac_option | cut -d '=' -f 2` + ;; --charset=*) _charset=`echo $ac_option | cut -d '=' -f 2` ;; @@ -7597,6 +7602,7 @@ CXX = $_cc HOST_CC = $_host_cc RANLIB = $_ranlib +WINDRES = $_windres LDCONFIG = $_ldconfig INSTALL = $_install EXTRA_INC = $_inc_extra diff -r 8d329f7bbc3c -r a5dd78186fdc osdep/Makefile --- a/osdep/Makefile Fri Dec 28 03:45:01 2007 +0000 +++ b/osdep/Makefile Fri Dec 28 10:33:22 2007 +0000 @@ -30,4 +30,4 @@ include ../mpcommon.mak mplayer-rc.o: mplayer.rc - windres -o $@ $< + $(WINDRES) -o $@ $< diff -r 8d329f7bbc3c -r a5dd78186fdc vidix/dhahelperwin/Makefile --- a/vidix/dhahelperwin/Makefile Fri Dec 28 03:45:01 2007 +0000 +++ b/vidix/dhahelperwin/Makefile Fri Dec 28 10:33:22 2007 +0000 @@ -9,7 +9,7 @@ $(CC) -Wall -Os -c $< -o $@ dhahelper-rc.o: dhahelper.rc common.ver ntverp.h - windres -I. $< $@ + $(WINDRES) -I. $< $@ base.tmp: dhahelper.o dhahelper-rc.o $(CC) -Wl,--base-file,$@ \