3 PACKAGE
=monodevelop_addinauthoring
6 configurations
=" RELEASE DEBUG"
7 common_packages
=" monodevelop;1.9.2 gtk-sharp-2.0;2.8.3 mono-addins-setup;0.3 mono-addins;0.3"
12 echo "Usage : configure [--prefix=PREFIX] [--config=CONFIG]"
14 echo "Configurations available :"
15 for c
in $configurations; do
16 if [ "$c" = "$config" ]; then
26 test -z "$1" && return 0
27 for c
in $configurations; do
28 if [ "$c" = "$1" ]; then
37 name
=`echo $1 | cut -d\; -f1`
38 version
=`echo $1 | cut -d\; -f2`
40 echo -n "Checking for package '$name'.." |
tee -a config.log
41 pkg-config
--atleast-version=$version $name
43 echo " ERROR: Package named '$name' >= $version not found." |
tee -a config.log
44 echo "Try adjusting your PKG_CONFIG_PATH environment variable." |
tee -a config.log
47 echo " found." |
tee -a config.log
50 check_required_packages
()
52 echo "Looking for required packages" |
tee config.log
53 var
=required_packages_
$config
54 for pkg
in $common_packages ${!var}; do
57 [ $retval -ne 0 ] && return $retval
62 while test x
$1 != x
; do
65 prefix
=`echo $1 | sed 's/--prefix=//'`
72 conf
=`echo $1 | sed 's/--config=//'`
73 validate_config
"$conf"
77 echo "Invalid config name - $conf"
87 echo Unknown argument
$1 >&2
95 check_required_packages
96 [ $?
-eq 1 ] && exit 1
98 echo "prefix=$prefix" > config.
make
99 echo "RUNTIME=mono" >> config.
make
100 echo "ASSEMBLY_VERSION=$VERSION.0.0" >> config.
make
101 echo "VERSION=$VERSION" >> config.
make
102 echo "PACKAGE=$PACKAGE" >> config.
make
103 echo "CONFIG=$config" >> config.
make
106 echo "$PACKAGE has been configured with "
107 echo " prefix = $prefix"
108 echo " config = $config"