1#!/bin/csh
2#The scripts and instructions in this package are free to use and
3#redistribute AT YOUR OWN RISK!!  Standard disclaimers apply.
4#NO WARRANTY!
5
6echo Starting $0 script.
7
8if ( ! -d src ) then
9	echo src dir not found.  Exiting.
10	exit
11endif
12
13cd src
14
15if ( -f xport.c ) then
16	if ( ! -f xport.c.orig ) then
17		cp xport.c xport.c.orig
18	endif
19	uname -i | grep x86_64  > /dev/null && sed 's/if.*(pts_aligned.*!=.*0xffffffffffffffff).*{/if\ (pts_aligned\ !=\ 0\ )\ {/' xport.c.orig   > xport.c.patch1
20	uname -i | grep x86_64  > /dev/null && sed 's/if.*(current_pts.*>=.*pts_aligned).*{/if\ (current_pts\ >=\ 0\ )\ {/'        xport.c.patch1 > xport.c.patch2
21	uname -i | grep x86_64  > /dev/null && mv xport.c.patch2 xport.c
22	uname -i | grep x86_64  > /dev/null && rm -f xport.c.patch1
23endif
24
25chmod 755 JM/unixprep.sh
26cd JM && ./unixprep.sh
27cd ..
28
29if ( -d apr-1.2.8 ) then
30	echo apr-1.2.8
31	cd apr-1.2.8
32	./configure
33	cd ..
34	echo apr-1.2.8 done
35	echo " "
36endif
37
38if ( -d apr-util-1.2.8 ) then
39	echo apr-util-1.2.8
40	cd apr-util-1.2.8
41	./configure --with-apr=../apr-1.2.8
42	cd ..
43	echo apr-util-1.2.8 done
44	echo " "
45endif
46
47if ( -d subversion-1.4.3 ) then
48	echo subversion-1.4.3
49	cd subversion-1.4.3
50	./configure --with-apr=../apr-1.2.8 --with-apr-util=../apr-util-1.2.8
51	cd ..
52	echo subversion-1.4.3 done
53	echo " "
54endif
55
56if ( -d x264-snapshot-20091102-2245 ) then
57	echo x264
58	cd x264-snapshot-20091102-2245
59	./configure --enable-shared --enable-pic
60	cd ..
61	echo x264 done
62	echo " "
63endif
64
65if ( -d a52dec-0.7.4 ) then
66	echo a52dec-0.7.4
67	cd a52dec-0.7.4
68	./configure
69	cd ..
70	echo a52dec-0.7.4 done
71	echo " "
72endif
73
74echo " "
75echo "Run the compile script to compile the software."
76echo " "
77echo The $0 script has ended.
78