source: gs2-extensions/video/trunk/build-srcpack/packages/CASCADE-MAKE/FAAC.sh@ 22260

Last change on this file since 22260 was 22260, checked in by davidb, 14 years ago

Modifications necessary to compile under MinGW

File size: 1.3 KB
Line 
1#!/bin/bash
2
3package=faac
4version=-1.26-mingw
5
6progname=$0
7
8source ../../cascade-make/lib/cascade-lib.bash
9
10prefix=$GEXTVIDEO_INSTALLED
11
12
13if [ $force_configure ] ; then
14 echo "*****"
15 echo "Assuming you have untarred faac-1.25.tar.gz and run 'dos2unix' on *.in"
16 echo "*****"
17 sleep 3
18fi
19
20opt_run_untar $force_untar $auto_untar $package $version
21if [ -d $package ] ; then
22 echo "Moving $package -> $package$version"
23 /bin/mv $package $package$version
24fi
25
26
27# Need own customized configure
28if [ $force_config = "1" ] ; then
29 echo "[pushd $package$version]"
30 ( cd $package$version ;
31# ./bootstrap
32 echo ./configure --prefix=$prefix --with-mp4v2 ;
33 ./configure --prefix=$prefix --with-mp4v2 )
34 if [ $? != 0 ] ; then
35 echo " Error encountered running *configure* stage of $progname"
36 exit 1
37 fi
38 echo "[popd]"
39else
40 if [ $auto_config = "1" ] ; then
41 echo "Found top-level for ${progname%.*} => no need to run ./configure"
42 fi
43fi
44
45
46#opt_run_configure $force_config $auto_config $package $version "$prefix" \
47# --with-mp4v2
48
49opt_run_make $compile $package $version
50opt_run_make $install $package $version "install"
51opt_run_make $clean $package $version "clean"
52opt_run_make $distclean $package $version "distclean"
53
54opt_run_tarclean $tarclean $package $version
55
56
57
Note: See TracBrowser for help on using the repository browser.