All pastes #341510 Raw Edit

Mono, OE

public text v1 · immutable
·published 2007-02-05 18:20 UTC
rendered paste body
#!/bin/sh -e
export localstatedir="/home/loki/work/openembedded/build/tmp/staging/var"

export prefix="/home/loki/work/openembedded/build/tmp/staging"

export CPP="gcc -E"

export mandir="/home/loki/work/openembedded/build/tmp/staging/i686-linux/share/man"

export STRIP="strip"

export STAGING_SIPDIR="/home/loki/work/openembedded/build/tmp/staging/i686-linux/share/sip"

export AS="as"

export CONFIG_SITE="/home/loki/work/openembedded/org.openembedded.dev/site/endian-little /home/loki/work/openembedded/org.openembedded.dev/site/common-glibc /home/loki/work/openembedded/org.openembedded.dev/site/ix86-common /home/loki/work/openembedded/org.openembedded.dev/site/common /home/loki/work/openembedded/org.openembedded.dev/site/common"

export BUILD_CXXFLAGS="-isystem/home/loki/work/openembedded/build/tmp/staging/i686-linux/include -O2 -fpermissive"

export OBJCOPY="objcopy"

export libexecdir="/home/loki/work/openembedded/build/tmp/staging/i686-linux/libexec"

export QTDIR="/home/loki/work/openembedded/build/tmp/staging/i686-linux/qt2"

export datadir="/home/loki/work/openembedded/build/tmp/staging/i686-linux/share"

export BUILD_CXX="g++"

export LD="ld"

export bindir="/home/loki/work/openembedded/build/tmp/staging/i686-linux/bin"

export TARGET_CXXFLAGS="-isystem/home/loki/work/openembedded/build/tmp/staging/i686-linux/include -fexpensive-optimizations -fomit-frame-pointer -frename-registers -O2 -fpermissive"

export MAKE="make"

export includedir="/home/loki/work/openembedded/build/tmp/staging/i686-linux/include"

export TARGET_CPPFLAGS="-isystem/home/loki/work/openembedded/build/tmp/staging/i686-linux/include"

export exec_prefix="/home/loki/work/openembedded/build/tmp/staging/i686-linux"

export OPIEDIR="/home/loki/work/openembedded/build/tmp/staging/i686-linux"

export LDFLAGS="-L/home/loki/work/openembedded/build/tmp/staging/i686-linux/lib -Wl,-rpath-link,/home/loki/work/openembedded/build/tmp/staging/i686-linux/lib -Wl,-rpath,/home/loki/work/openembedded/build/tmp/staging/i686-linux/lib -Wl,-O1"

export BUILD_CC="gcc"

export OBJDUMP="objdump"

export BUILD_LD="ld"

export oldincludedir="/home/loki/work/openembedded/build/tmp/staging/i686-linux/include"

export sysconfdir="/home/loki/work/openembedded/build/tmp/staging/etc"

export CCLD="gcc"

export BUILD_CCLD="gcc"

export QPEDIR="/home/loki/work/openembedded/build/tmp/staging/i686-linux"

export BBPATH="/home/loki/work/openembedded/org.openembedded.dev/packages/mono:/home/loki/work/openembedded/org.openembedded.dev/packages/mono:/home/loki/work/openembedded/org.openembedded.dev/conf/distro/include:/home/loki/work/openembedded/org.openembedded.dev/conf/distro/include:/home/loki/work/openembedded/org.openembedded.dev/conf/distro/include:/home/loki/work/openembedded/org.openembedded.dev/conf/distro/include:/home/loki/work/openembedded/org.openembedded.dev/conf/distro/include:/home/loki/work/openembedded/build:/home/loki/work/openembedded/org.openembedded.dev"

export base_libdir="/home/loki/work/openembedded/build/tmp/staging/i686-linux/lib"

export PATH="/home/loki/work/openembedded/build/tmp/staging/i686-linux/bin:/home/loki/work/openembedded/build/tmp/staging/i686-linux/bin:/home/loki/work/openembedded/build/tmp/cross/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11:/usr/games"

export TARGET_CFLAGS="-isystem/home/loki/work/openembedded/build/tmp/staging/i686-linux/include -fexpensive-optimizations -fomit-frame-pointer -frename-registers -O2"

export base_bindir="/home/loki/work/openembedded/build/tmp/staging/i686-linux/bin"

export STAGING_IDLDIR="/home/loki/work/openembedded/build/tmp/staging/i686-linux/share/idl"

export servicedir="/home/loki/work/openembedded/build/tmp/staging/srv"

export BUILD_CPP="cpp"

export sbindir="/home/loki/work/openembedded/build/tmp/staging/i686-linux/bin"

export CFLAGS="-isystem/home/loki/work/openembedded/build/tmp/staging/i686-linux/include -O2"

export BUILD_AR="ar"

export CPPFLAGS="-isystem/home/loki/work/openembedded/build/tmp/staging/i686-linux/include"

export sharedstatedir="/home/loki/work/openembedded/build/tmp/staging/com"

export F77="g77"

export BUILD_CFLAGS="-isystem/home/loki/work/openembedded/build/tmp/staging/i686-linux/include -O2"

export QMAKE_MKSPEC_PATH="/home/loki/work/openembedded/build/tmp/staging/i686-linux/share/qmake"

export TARGET_LDFLAGS="-L/home/loki/work/openembedded/build/tmp/staging/i686-linux/lib -Wl,-rpath-link,/home/loki/work/openembedded/build/tmp/staging/i686-linux/lib -Wl,-O1"

export palmtopdir="/opt/QtPalmtop"

export PKG_CONFIG_DISABLE_UNINSTALLED="yes"

export infodir="/home/loki/work/openembedded/build/tmp/staging/i686-linux/share/info"

export libdir="/home/loki/work/openembedded/build/tmp/staging/i686-linux/lib"

export base_prefix="/home/loki/work/openembedded/build/tmp/staging/i686-linux"

export CC="gcc"

export palmqtdir="/opt/QtPalmtop"

export BUILD_LDFLAGS="-L/home/loki/work/openembedded/build/tmp/staging/i686-linux/lib -Wl,-rpath-link,/home/loki/work/openembedded/build/tmp/staging/i686-linux/lib -Wl,-rpath,/home/loki/work/openembedded/build/tmp/staging/i686-linux/lib -Wl,-O1"

export BUILD_F77="g77"

export RANLIB="ranlib"

export docdir="/home/loki/work/openembedded/build/tmp/staging/i686-linux/share/doc"

export base_sbindir="/home/loki/work/openembedded/build/tmp/staging/i686-linux/bin"

export CXX="g++"

export PKG_CONFIG_PATH="/home/loki/work/openembedded/build/tmp/staging/i686-linux/share/pkgconfig"

export AR="ar"

export PATCH_GET="0"

export CXXFLAGS="-isystem/home/loki/work/openembedded/build/tmp/staging/i686-linux/include -O2"

export MANIFEST="/home/loki/work/openembedded/org.openembedded.dev/packages/mono/./manifest"

export BUILD_STRIP="strip"

export BUILD_RANLIB="ranlib"

export BUILD_CPPFLAGS="-isystem/home/loki/work/openembedded/build/tmp/staging/i686-linux/include"

do_fetchall() {
	base_do_fetchall

}

die() {
	oefatal "$*"

}

base_do_install() {
	:

}

do_compile() {
	base_do_compile

}

do_stage() {
	if [ "${INHIBIT_NATIVE_STAGE_INSTALL}" != "1" ]
	then
		oe_runmake install
	fi

}

oe_runconf() {
	if [ -x /home/loki/work/openembedded/build/tmp/work/i686-linux/mono-native-1.2.2.1-r0/mono-1.2.2.1/configure ] ; then
		cfgcmd="/home/loki/work/openembedded/build/tmp/work/i686-linux/mono-native-1.2.2.1-r0/mono-1.2.2.1/configure \
		    --build=i686-linux \
		    --host=i686-linux \
		    --target=i686-linux \
		    --prefix=/home/loki/work/openembedded/build/tmp/staging \
		    --exec_prefix=/home/loki/work/openembedded/build/tmp/staging/i686-linux \
		    --bindir=/home/loki/work/openembedded/build/tmp/staging/i686-linux/bin \
		    --sbindir=/home/loki/work/openembedded/build/tmp/staging/i686-linux/bin \
		    --libexecdir=/home/loki/work/openembedded/build/tmp/staging/i686-linux/libexec \
		    --datadir=/home/loki/work/openembedded/build/tmp/staging/i686-linux/share \
		    --sysconfdir=/home/loki/work/openembedded/build/tmp/staging/etc \
		    --sharedstatedir=/home/loki/work/openembedded/build/tmp/staging/com \
		    --localstatedir=/home/loki/work/openembedded/build/tmp/staging/var \
		    --libdir=/home/loki/work/openembedded/build/tmp/staging/i686-linux/lib \
		    --includedir=/home/loki/work/openembedded/build/tmp/staging/i686-linux/include \
		    --oldincludedir=/home/loki/work/openembedded/build/tmp/staging/i686-linux/include \
		    --infodir=/home/loki/work/openembedded/build/tmp/staging/i686-linux/share/info \
		    --mandir=/home/loki/work/openembedded/build/tmp/staging/i686-linux/share/man \
			--disable-mcs-build \
		    $@"
		oenote "Running $cfgcmd..."
		$cfgcmd || oefatal "oe_runconf failed"
	else
		oefatal "no configure script found"
	fi

}

autotools_stage_includes() {
	if [ "${INHIBIT_AUTO_STAGE_INCLUDES}" != "1" ]
	then
		rm -rf /home/loki/work/openembedded/build/tmp/work/i686-linux/mono-native-1.2.2.1-r0/temp-staging
		mkdir -p /home/loki/work/openembedded/build/tmp/work/i686-linux/mono-native-1.2.2.1-r0/temp-staging
		make DESTDIR="/home/loki/work/openembedded/build/tmp/work/i686-linux/mono-native-1.2.2.1-r0/temp-staging" install
		cp -pPR /home/loki/work/openembedded/build/tmp/work/i686-linux/mono-native-1.2.2.1-r0/temp-staging//home/loki/work/openembedded/build/tmp/staging/i686-linux/include/* /home/loki/work/openembedded/build/tmp/staging/i686-linux/include
		rm -rf /home/loki/work/openembedded/build/tmp/work/i686-linux/mono-native-1.2.2.1-r0/temp-staging
	fi

}

base_do_compile() {
	if [ -e Makefile -o -e makefile ]; then
		oe_runmake || die "make failed"
	else
		oenote "nothing to compile"
	fi

}

base_do_package() {
	:

}

do_configure() {
	rm -f libgc/libtool.m4
	autotools_do_configure

}

oewarn() {
	echo "WARNING:" "$*"

}

oe_soinstall() {
	# Purpose: Install shared library file and
	#          create the necessary links
	# Example:
	#
	# oe_
	#
	#oenote installing shared library $1 to $2
	#
	libname=`basename $1`
	install -m 755 $1 $2/$libname
	sonamelink=`readelf -d $1 |grep 'Library soname:' |sed -e 's/.*\[\(.*\)\].*/\1/'`
	solink=`echo $libname | sed -e 's/\.so\..*/.so/'`
	ln -sf $libname $2/$sonamelink
	ln -sf $libname $2/$solink

}

oe_machinstall() {
	# Purpose: Install machine dependent files, if available
	#          If not available, check if there is a default
	#          If no default, just touch the destination
	# Example:
	#                $1  $2   $3         $4
	# oe_machinstall -m 0644 fstab /home/loki/work/openembedded/build/tmp/work/i686-linux/mono-native-1.2.2.1-r0/image/etc/fstab
	#
	# TODO: Check argument number?
	#
	filename=`basename $3`
	dirname=`dirname $3`

	for o in `echo task_do_compile:local:ep93xx:generic:linux:i686:build-linux:fail-fast:pn-mono-native | tr ':' ' '`; do
		if [ -e $dirname/$o/$filename ]; then
			oenote $dirname/$o/$filename present, installing to $4
			install $1 $2 $dirname/$o/$filename $4
			return
		fi
	done
#	oenote overrides specific file NOT present, trying default=$3...
	if [ -e $3 ]; then
		oenote $3 present, installing to $4
		install $1 $2 $3 $4
	else
		oenote $3 NOT present, touching empty $4
		touch $4
	fi

}

oefatal() {
	echo "FATAL:" "$*"
	exit 1

}

oedebug() {
	test $# -ge 2 || {
		echo "Usage: oedebug level \"message\""
		exit 1
	}

	test ${OEDEBUG:-0} -ge $1 && {
		shift
		echo "DEBUG:" $*
	}

}

autotools_stage_all() {
	if [ "${INHIBIT_AUTO_STAGE}" = "1" ]
	then
		return
	fi
	rm -rf /home/loki/work/openembedded/build/tmp/work/i686-linux/mono-native-1.2.2.1-r0/temp-staging
	mkdir -p /home/loki/work/openembedded/build/tmp/work/i686-linux/mono-native-1.2.2.1-r0/temp-staging
	oe_runmake DESTDIR="/home/loki/work/openembedded/build/tmp/work/i686-linux/mono-native-1.2.2.1-r0/temp-staging" install
	if [ -d /home/loki/work/openembedded/build/tmp/work/i686-linux/mono-native-1.2.2.1-r0/temp-staging//home/loki/work/openembedded/build/tmp/staging/i686-linux/include ]; then
		cp -fpPR /home/loki/work/openembedded/build/tmp/work/i686-linux/mono-native-1.2.2.1-r0/temp-staging//home/loki/work/openembedded/build/tmp/staging/i686-linux/include/* /home/loki/work/openembedded/build/tmp/staging/i686-linux/include
	fi
	if [ -d /home/loki/work/openembedded/build/tmp/work/i686-linux/mono-native-1.2.2.1-r0/temp-staging//home/loki/work/openembedded/build/tmp/staging/i686-linux/lib ]
	then
		for i in /home/loki/work/openembedded/build/tmp/work/i686-linux/mono-native-1.2.2.1-r0/temp-staging//home/loki/work/openembedded/build/tmp/staging/i686-linux/lib/*.la
		do
			if [ ! -f "$i" ]; then
				cp -fpPR /home/loki/work/openembedded/build/tmp/work/i686-linux/mono-native-1.2.2.1-r0/temp-staging//home/loki/work/openembedded/build/tmp/staging/i686-linux/lib/* /home/loki/work/openembedded/build/tmp/staging/i686-linux/lib
				break
			fi
			oe_libinstall -so $(basename $i .la) /home/loki/work/openembedded/build/tmp/staging/i686-linux/lib
		done
	fi
	if [ -d /home/loki/work/openembedded/build/tmp/work/i686-linux/mono-native-1.2.2.1-r0/temp-staging//home/loki/work/openembedded/build/tmp/staging/i686-linux/share/aclocal ]; then
		install -d /home/loki/work/openembedded/build/tmp/staging/i686-linux/share/aclocal
		cp -fpPR /home/loki/work/openembedded/build/tmp/work/i686-linux/mono-native-1.2.2.1-r0/temp-staging//home/loki/work/openembedded/build/tmp/staging/i686-linux/share/aclocal/* /home/loki/work/openembedded/build/tmp/staging/i686-linux/share/aclocal
	fi
	rm -rf /home/loki/work/openembedded/build/tmp/work/i686-linux/mono-native-1.2.2.1-r0/temp-staging

}

base_do_fetchall() {
	:

}

oenote() {
	echo "NOTE:" "$*"

}

oe_libinstall() {
	# Purpose: Install a library, in all its forms
	# Example
	#
	# oe_libinstall libltdl /home/loki/work/openembedded/build/tmp/staging/i686-linux/lib/
	# oe_libinstall -C src/libblah libblah /home/loki/work/openembedded/build/tmp/work/i686-linux/mono-native-1.2.2.1-r0/image//home/loki/work/openembedded/build/tmp/staging/i686-linux/lib/
	dir=""
	libtool=""
	silent=""
	require_static=""
	require_shared=""
	staging_install=""
	while [ "$#" -gt 0 ]; do
		case "$1" in
		-C)
			shift
			dir="$1"
			;;
		-s)
			silent=1
			;;
		-a)
			require_static=1
			;;
		-so)
			require_shared=1
			;;
		-*)
			oefatal "oe_libinstall: unknown option: $1"
			;;
		*)
			break;
			;;
		esac
		shift
	done

	libname="$1"
	shift
	destpath="$1"
	if [ -z "$destpath" ]; then
		oefatal "oe_libinstall: no destination path specified"
	fi
	if echo "$destpath/" | egrep '^/home/loki/work/openembedded/build/tmp/staging/i686-linux/lib/' >/dev/null
	then
		staging_install=1
	fi

	__runcmd () {
		if [ -z "$silent" ]; then
			echo >&2 "oe_libinstall: $*"
		fi
		$*
	}

	if [ -z "$dir" ]; then
		dir=`pwd`
	fi
	dotlai=$libname.lai
	dir=$dir`(cd $dir;find . -name "$dotlai") | sed "s/^\.//;s/\/$dotlai\$//;q"`
	olddir=`pwd`
	__runcmd cd $dir

	lafile=$libname.la

	# If such file doesn't exist, try to cut version suffix
	if [ ! -f "$lafile" ]; then
		libname=`echo "$libname" | sed 's/-[0-9.]*$//'`
		lafile=$libname.la
	fi

	if [ -f "$lafile" ]; then
		# libtool archive
		eval `cat $lafile|grep "^library_names="`
		libtool=1
	else
		library_names="$libname.so* $libname.dll.a"
	fi

	__runcmd install -d $destpath/
	dota=$libname.a
	if [ -f "$dota" -o -n "$require_static" ]; then
		__runcmd install -m 0644 $dota $destpath/
	fi
	if [ -f "$dotlai" -a -n "$libtool" ]; then
		if test -n "$staging_install"
		then
			# stop libtool using the final directory name for libraries
			# in staging:
			__runcmd rm -f $destpath/$libname.la
			__runcmd sed -e 's/^installed=yes$/installed=no/' -e '/^dependency_libs=/s,/home/loki/work/openembedded/build/tmp/work/i686-linux/mono-native-1.2.2.1-r0[[:alnum:]/\._+-]*/\([[:alnum:]\._+-]*\),/home/loki/work/openembedded/build/tmp/staging/i686-linux/lib/\1,g' $dotlai >$destpath/$libname.la
		else
			__runcmd install -m 0644 $dotlai $destpath/$libname.la
		fi
	fi

	for name in $library_names; do
		files=`eval echo $name`
		for f in $files; do
			if [ ! -e "$f" ]; then
				if [ -n "$libtool" ]; then
					oefatal "oe_libinstall: $dir/$f not found."
				fi
			elif [ -L "$f" ]; then
				__runcmd cp -P "$f" $destpath/
			elif [ ! -L "$f" ]; then
				libfile="$f"
				__runcmd install -m 0755 $libfile $destpath/
			fi
		done
	done

	if [ -z "$libfile" ]; then
		if  [ -n "$require_shared" ]; then
			oefatal "oe_libinstall: unable to locate shared library"
		fi
	elif [ -z "$libtool" ]; then
		# special case hack for non-libtool .so.#.#.# links
		baselibfile=`basename "$libfile"`
		if (echo $baselibfile | grep -qE '^lib.*\.so\.[0-9.]*$'); then
			sonamelink=`readelf -d $libfile |grep 'Library soname:' |sed -e 's/.*\[\(.*\)\].*/\1/'`
			solink=`echo $baselibfile | sed -e 's/\.so\..*/.so/'`
			if [ -n "$sonamelink" -a x"$baselibfile" != x"$sonamelink" ]; then
				__runcmd ln -sf $baselibfile $destpath/$sonamelink
			fi
			__runcmd ln -sf $baselibfile $destpath/$solink
		fi
	fi

	__runcmd cd "$olddir"

}

base_do_configure() {
	:

}

runstrip() {
	# Function to strip a single file, called from RUNSTRIP in populate_packages below
	# A working 'file' (one which works on the target architecture)
	# is necessary for this stuff to work, hence the addition to PACKAGES_DEPENDS

	local ro st

	st=0
	if {	file "$1" || {
			oewarn "file $1: failed (forced strip)" >&2
			echo 'not stripped'
		}
	   } | grep -q 'not stripped'
	then
		oenote "strip $1"
		ro=
		test -w "$1" || {
			ro=1
			chmod +w "$1"
		}
		mkdir -p $(dirname "$1")/.debug
		debugfile="$(dirname "$1")/.debug/$(basename "$1")"
		'objcopy' --only-keep-debug "$1" "$debugfile"
		'strip' "$1"
		st=$?
		'objcopy' --add-gnu-debuglink="$debugfile" "$1"
		test -n "$ro" && chmod -w "$1"
		if test $st -ne 0
		then
			oewarn "runstrip: strip $1: strip failed" >&2
			if [ x1 == x1 ]
			then
				#FIXME: remove this, it's for error detection
				if file "$1" 2>/dev/null >&2
				then
					(oefatal "strip $1: command failed" >/dev/tty)
				else
					(oefatal "file $1: command failed" >/dev/tty)
				fi
				st=0
			fi
		fi
	else
		oenote "runstrip: skip $1"
	fi
	return $st

}

do_install() {
	true

}

autotools_do_configure() {
	case mono-native in
	autoconf*)
	;;
	automake*)
	;;
	*)
		# WARNING: gross hack follows:
		# An autotools built package generally needs these scripts, however only
		# automake or libtoolize actually install the current versions of them.
		# This is a problem in builds that do not use libtool or automake, in the case
		# where we -need- the latest version of these scripts.  e.g. running a build
		# for a package whose autotools are old, on an x86_64 machine, which the old
		# config.sub does not support.  Work around this by installing them manually
		# regardless.
		( for ac in `find /home/loki/work/openembedded/build/tmp/work/i686-linux/mono-native-1.2.2.1-r0/mono-1.2.2.1 -name configure.in -o -name configure.ac`; do
			rm -f `dirname $ac`/configure
			done )
		if [ -e /home/loki/work/openembedded/build/tmp/work/i686-linux/mono-native-1.2.2.1-r0/mono-1.2.2.1/configure.in -o -e /home/loki/work/openembedded/build/tmp/work/i686-linux/mono-native-1.2.2.1-r0/mono-1.2.2.1/configure.ac ]; then
			olddir=`pwd`
			cd /home/loki/work/openembedded/build/tmp/work/i686-linux/mono-native-1.2.2.1-r0/mono-1.2.2.1
			if [ x"default" = xdefault ]; then
				acpaths=
				for i in `find /home/loki/work/openembedded/build/tmp/work/i686-linux/mono-native-1.2.2.1-r0/mono-1.2.2.1 -maxdepth 2 -name \*.m4|grep -v 'aclocal.m4'| \
					grep -v 'acinclude.m4' | sed -e 's,\(.*/\).*$,\1,'|sort -u`; do
					acpaths="$acpaths -I $i"
				done
			else
				acpaths="default"
			fi
			AUTOV=`automake --version |head -n 1 |sed "s/.* //;s/\.[0-9]\+$//"`
			automake --version
			echo "AUTOV is $AUTOV"
			install -d /home/loki/work/openembedded/build/tmp/staging/i686-linux/share/aclocal
			install -d /home/loki/work/openembedded/build/tmp/staging/i686-linux/share/aclocal-$AUTOV
			acpaths="$acpaths -I /home/loki/work/openembedded/build/tmp/staging/i686-linux/share/aclocal-$AUTOV -I /home/loki/work/openembedded/build/tmp/staging/i686-linux/share/aclocal"
			# autoreconf is too shy to overwrite aclocal.m4 if it doesn't look
			# like it was auto-generated.  Work around this by blowing it away
			# by hand, unless the package specifically asked not to run aclocal.
			if ! echo --exclude=autopoint | grep -q "aclocal"; then
				rm -f aclocal.m4
			fi
			if [ -e configure.in ]; then
			  CONFIGURE_AC=configure.in
			else
			  CONFIGURE_AC=configure.ac
			fi
			if grep "^AM_GLIB_GNU_GETTEXT" $CONFIGURE_AC >/dev/null; then
			  if grep "sed.*POTFILES" $CONFIGURE_AC >/dev/null; then
			    : do nothing -- we still have an old unmodified configure.ac
			  else
			    oenote Executing glib-gettextize --force --copy
			    echo "no" | glib-gettextize --force --copy
			  fi
			fi
			if grep "^AC_PROG_INTLTOOL" $CONFIGURE_AC >/dev/null; then
			  oenote Executing intltoolize --copy --force --automake
			  intltoolize --copy --force --automake
			fi
			oenote Executing autoreconf --verbose --install --force --exclude=autopoint $acpaths
			mkdir -p m4
			autoreconf -Wcross --verbose --install --force --exclude=autopoint $acpaths || oefatal "autoreconf execution failed."
			cd $olddir
		fi
	;;
	esac
	if [ -e /home/loki/work/openembedded/build/tmp/work/i686-linux/mono-native-1.2.2.1-r0/mono-1.2.2.1/configure ]; then
		oe_runconf
	else
		oenote "nothing to configure"
	fi

}

ldconfig_postinst_fragment() {
if [ x"$D" = "x" ]; then
	ldconfig
fi

}

MIRRORS() {
ftp://ftp.debian.org/debian/pool/main	http://snapshot.debian.net/archive/pool
ftp://ftp.debian.org/debian/pool	ftp://ftp.de.debian.org/debian/pool
ftp://ftp.debian.org/debian/pool	ftp://ftp.au.debian.org/debian/pool
ftp://ftp.debian.org/debian/pool	ftp://ftp.cl.debian.org/debian/pool
ftp://ftp.debian.org/debian/pool	ftp://ftp.hr.debian.org/debian/pool
ftp://ftp.debian.org/debian/pool	ftp://ftp.fi.debian.org/debian/pool
ftp://ftp.debian.org/debian/pool	ftp://ftp.hk.debian.org/debian/pool
ftp://ftp.debian.org/debian/pool	ftp://ftp.hu.debian.org/debian/pool
ftp://ftp.debian.org/debian/pool	ftp://ftp.ie.debian.org/debian/pool
ftp://ftp.debian.org/debian/pool	ftp://ftp.it.debian.org/debian/pool
ftp://ftp.debian.org/debian/pool	ftp://ftp.jp.debian.org/debian/pool
ftp://ftp.debian.org/debian/pool	ftp://ftp.no.debian.org/debian/pool
ftp://ftp.debian.org/debian/pool	ftp://ftp.pl.debian.org/debian/pool
ftp://ftp.debian.org/debian/pool	ftp://ftp.ro.debian.org/debian/pool
ftp://ftp.debian.org/debian/pool	ftp://ftp.si.debian.org/debian/pool
ftp://ftp.debian.org/debian/pool	ftp://ftp.es.debian.org/debian/pool
ftp://ftp.debian.org/debian/pool	ftp://ftp.se.debian.org/debian/pool
ftp://ftp.debian.org/debian/pool	ftp://ftp.tr.debian.org/debian/pool
ftp://ftp.gnu.org/gnu	ftp://mirrors.kernel.org/gnu
ftp://ftp.gnu.org/gnu	ftp://ftp.matrix.com.br/pub/gnu
ftp://ftp.gnu.org/gnu	ftp://ftp.cs.ubc.ca/mirror2/gnu
ftp://ftp.gnu.org/gnu	ftp://sunsite.ust.hk/pub/gnu
ftp://ftp.gnu.org/gnu	ftp://ftp.ayamura.org/pub/gnu
http://kernel.org/	http://www.kernel.org/pub
http://kernel.org/	ftp://ftp.us.kernel.org/pub
http://kernel.org/	ftp://ftp.uk.kernel.org/pub
http://kernel.org/	ftp://ftp.hk.kernel.org/pub
http://kernel.org/	ftp://ftp.au.kernel.org/pub
http://kernel.org/	ftp://ftp.jp.kernel.org/pub
ftp://ftp.gnupg.org/gcrypt/     ftp://ftp.franken.de/pub/crypt/mirror/ftp.gnupg.org/gcrypt/
ftp://ftp.gnupg.org/gcrypt/     ftp://ftp.surfnet.nl/pub/security/gnupg/
ftp://ftp.gnupg.org/gcrypt/     http://gulus.USherbrooke.ca/pub/appl/GnuPG/
ftp://dante.ctan.org/tex-archive ftp://ftp.fu-berlin.de/tex/CTAN
ftp://dante.ctan.org/tex-archive http://sunsite.sut.ac.jp/pub/archives/ctan/
ftp://dante.ctan.org/tex-archive http://ctan.unsw.edu.au/
ftp://ftp.gnutls.org/pub/gnutls ftp://ftp.gnutls.org/pub/gnutls/
ftp://ftp.gnutls.org/pub/gnutls ftp://ftp.gnupg.org/gcrypt/gnutls/
ftp://ftp.gnutls.org/pub/gnutls http://www.mirrors.wiretapped.net/security/network-security/gnutls/
ftp://ftp.gnutls.org/pub/gnutls ftp://ftp.mirrors.wiretapped.net/pub/security/network-security/gnutls/
ftp://ftp.gnutls.org/pub/gnutls http://josefsson.org/gnutls/releases/
http://ftp.info-zip.org/pub/infozip/src/ http://mirror.switch.ch/ftp/mirror/infozip/src/
http://ftp.info-zip.org/pub/infozip/src/ ftp://sunsite.icm.edu.pl/pub/unix/archiving/info-zip/src/
ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/  ftp://ftp.cerias.purdue.edu/pub/tools/unix/sysutils/lsof/
ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/  ftp://ftp.tau.ac.il/pub/unix/admin/
ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/  ftp://ftp.cert.dfn.de/pub/tools/admin/lsof/
ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/  ftp://ftp.fu-berlin.de/pub/unix/tools/lsof/
ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/  ftp://ftp.kaizo.org/pub/lsof/
ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/  ftp://ftp.tu-darmstadt.de/pub/sysadmin/lsof/
ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/  ftp://ftp.tux.org/pub/sites/vic.cc.purdue.edu/tools/unix/lsof/
ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/  ftp://gd.tuwien.ac.at/utils/admin-tools/lsof/
ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/  ftp://sunsite.ualberta.ca/pub/Mirror/lsof/
ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/  ftp://the.wiretapped.net/pub/security/host-security/lsof/


}

autotools_do_install() {
	oe_runmake 'DESTDIR=/home/loki/work/openembedded/build/tmp/work/i686-linux/mono-native-1.2.2.1-r0/image' install

}

oe_runmake() {
	if [ x"$MAKE" = x ]; then MAKE=make; fi
	oenote make ${PARALLEL_MAKE}  "$@"
	make ${PARALLEL_MAKE}  "$@" || die "oe_runmake failed"

}

base_do_stage() {
	:

}

cd /home/loki/work/openembedded/build/tmp/work/i686-linux/mono-native-1.2.2.1-r0/mono-1.2.2.1
do_compile