Revision e4ef5ca5 build_ul.sh

View differences:

build_ul.sh
2 2
SCRIPT=$(readlink -f $0)
3 3
BASE_UL_DIR=`dirname $SCRIPT`
4 4
EXTERN_DIR="external_libs"
5
MAKE="make -j 4"
5 6
cd "$BASE_UL_DIR"
6 7

  
7 8
LIBTOOLIZE_PATH=`whereis -b libtoolize`
......
47 48
	cd x264
48 49
	#make and simulate install in local folder
49 50
	./configure --prefix="$BASE_UL_DIR/$EXTERN_DIR/x264/temp_x264_install"
50
	make; make install
51
	$MAKE; $MAKE install
51 52
fi
52 53

  
53 54
if [ -n "$BUILD_MP3LAME" ]; then
......
59 60
	cd mp3lame
60 61
	#make and simulate install in local folder
61 62
	./configure --disable-gtktest --disable-frontend --prefix="$BASE_UL_DIR/$EXTERN_DIR/mp3lame/temp_mp3lame_install"
62
	make; make install
63
	$MAKE; $MAKE install
63 64
fi
64 65

  
65 66
if [ -n "$BUILD_FFMPEG" ]; then
......
74 75
	#svn -r 21010 checkout svn://svn.ffmpeg.org/ffmpeg/trunk ffmpeg
75 76
	cd ffmpeg
76 77
	./configure --enable-gpl --enable-nonfree --enable-version3 --enable-libmp3lame --enable-libx264 --enable-pthreads --extra-cflags="-I../x264/temp_x264_install/include -I../mp3lame/temp_mp3lame_install/include" --extra-ldflags="-L../x264/temp_x264_install/lib -L../mp3lame/temp_mp3lame_install/lib"
77
	make
78
	$MAKE
78 79
fi
79 80

  
80 81
if [ -n "$BUILD_MHD" ]; then
......
85 86
	cd libmicrohttpd
86 87
	autoreconf -fi
87 88
	./configure --disable-curl --disable-https --enable-messages --disable-client-side --prefix="$BASE_UL_DIR/$EXTERN_DIR/libmicrohttpd/temp_mhd_install"
88
	make; make install
89
	$MAKE; $MAKE install
89 90
fi
90 91

  
91 92
if [ -n "$BUILD_SDL" ]; then
......
97 98
	cd sdl
98 99
	#make and simulate install in local folder
99 100
	./configure --disable-video-directfb --prefix="$BASE_UL_DIR/$EXTERN_DIR/sdl/temp_sdl_install"
100
	make; make install
101
	$MAKE; $MAKE install
101 102
fi
102 103

  
103 104
if [ -n "$BUILD_SDLIMAGE" ]; then
......
109 110
	cd sdlimage
110 111
	#make and simulate install in local folder
111 112
	./configure --prefix="$BASE_UL_DIR/$EXTERN_DIR/sdlimage/temp_sdlimage_install"
112
	make; make install
113
	$MAKE; $MAKE install
113 114
fi
114 115

  
115 116
if [ -n "$BUILD_SDLTTF" ]; then
......
121 122
	cd sdlttf
122 123
	#make and simulate install in local folder
123 124
	./configure --prefix="$BASE_UL_DIR/$EXTERN_DIR/sdlttf/temp_sdlttf_install"
124
	make; make install
125
	$MAKE; $MAKE install
125 126
fi
126 127

  
127 128
# SDL_ttf depends on freetype
......
134 135
	cd freetype
135 136
	#make and simulate install in local folder
136 137
	./configure --prefix="$BASE_UL_DIR/$EXTERN_DIR/freetype/temp_freetype_install"
137
	make; make install
138
	$MAKE; $MAKE install
138 139
fi
139 140

  
140 141
if [ -n "$BUILD_CURL" ]; then
......
146 147
	cd curl
147 148
	#make and simulate install in local folder
148 149
	./configure --disable-ftp --disable-ldap --disable-ldaps --disable-rtsp --disable-dict --disable-telnet --disable-tftp --disable-pop3 --disable-imap --disable-smtp --without-libssh2 --without-ssl --without-krb4 --enable-static --disable-shared --without-zlib --without-libidn --prefix="$BASE_UL_DIR/$EXTERN_DIR/curl/temp_curl_install"
149
	make; make install
150
	$MAKE; $MAKE install
150 151
fi
151 152

  
152 153
#set needed paths to external libraries
......
196 197
	LOCAL_CONFUSE=`dirname $LOCAL_CONFUSE_A`/..
197 198
    fi
198 199
fi
199
make clean
200
LOCAL_X264=$LOCAL_X264 LOCAL_MP3LAME=$LOCAL_MP3LAME LOCAL_FFMPEG=$LOCAL_FFMPEG LOCAL_BZ2=$LOCAL_BZ2 LOCAL_CURL=$LOCAL_CURL LOCAL_CONFUSE=$LOCAL_CONFUSE make
200
$MAKE clean
201
LOCAL_X264=$LOCAL_X264 LOCAL_MP3LAME=$LOCAL_MP3LAME LOCAL_FFMPEG=$LOCAL_FFMPEG LOCAL_BZ2=$LOCAL_BZ2 LOCAL_CURL=$LOCAL_CURL LOCAL_CONFUSE=$LOCAL_CONFUSE $MAKE
201 202
echo "----------------FINISHED COMPILING CHUNKER STREAMER"
202 203
#CHUNKER_PLAYER
203 204
echo "----------------COMPILING CHUNKER PLAYER"
204 205
cd "$BASE_UL_DIR"
205 206
cd chunker_player
206
make clean
207
LOCAL_X264=$LOCAL_X264 LOCAL_MP3LAME=$LOCAL_MP3LAME LOCAL_FFMPEG=$LOCAL_FFMPEG LOCAL_BZ2=$LOCAL_BZ2 LOCAL_MHD=$LOCAL_MHD LOCAL_ABS_SDL=$LOCAL_ABS_SDL LOCAL_SDLIMAGE=$LOCAL_SDLIMAGE LOCAL_FREETYPE=$LOCAL_FREETYPE LOCAL_SDLTTF=$LOCAL_SDLTTF LOCAL_CONFUSE=$LOCAL_CONFUSE make
207
$MAKE clean
208
LOCAL_X264=$LOCAL_X264 LOCAL_MP3LAME=$LOCAL_MP3LAME LOCAL_FFMPEG=$LOCAL_FFMPEG LOCAL_BZ2=$LOCAL_BZ2 LOCAL_MHD=$LOCAL_MHD LOCAL_ABS_SDL=$LOCAL_ABS_SDL LOCAL_SDLIMAGE=$LOCAL_SDLIMAGE LOCAL_FREETYPE=$LOCAL_FREETYPE LOCAL_SDLTTF=$LOCAL_SDLTTF LOCAL_CONFUSE=$LOCAL_CONFUSE $MAKE
208 209
echo "----------------FINISHED COMPILING CHUNKER PLAYER"
209 210

  
210 211
#compile a version of offerstreamer with UL enabled
211 212
#static needs fix??
212 213
cd "$BASE_UL_DIR/../OfferStreamer"
213
make clean
214
$MAKE clean
214 215
if [ -d "$BASE_UL_DIR/../../3RDPARTY-LIBS/libevent" ]; then
215 216
    LOCAL_EVENT="$BASE_UL_DIR/../../3RDPARTY-LIBS/libevent"
216 217
    echo "found LIBEVENT in $LOCAL_EVENT"
......
229 230
	LOCAL_EVENT=`dirname $LOCAL_EVENT_A`/..
230 231
    fi
231 232
fi
232
ULPLAYER=$BASE_UL_DIR ULPLAYER_EXTERNAL_LIBS=$EXTERN_DIR LIBEVENT_DIR=$LOCAL_EVENT ML=1 STATIC= MONL=1 HTTPIO=1 DEBUG=1 make
233
ULPLAYER=$BASE_UL_DIR ULPLAYER_EXTERNAL_LIBS=$EXTERN_DIR LIBEVENT_DIR=$LOCAL_EVENT ML=1 STATIC= MONL=1 HTTPIO=1 DEBUG=1 $MAKE

Also available in: Unified diff