desert: removed obsolete package.

This commit is contained in:
Ricardo Martins 2015-12-17 12:43:41 +00:00
parent 6e025fac0f
commit 93a5cf5a12
3 changed files with 0 additions and 109 deletions

View File

@ -1,79 +0,0 @@
version=\
(
'1.0'
)
ns_version=\
(
'2.34'
)
url=\
(
"http://www.lsts.pt/glued/desert-$version.tar.gz"
)
md5=\
(
'5b83d1d6e5390a44f1dc0c5a3794581c'
)
requires=\
(
'ns-miracle/default'
)
post_unpack()
{
patches=$(ls "$pkg_dir/patches/"*.patch)
if [ -n "$patches" ]; then
cat $patches | patch -p0
fi
}
configure()
{
find . -name "*.o" -exec rm {} \;
/usr/bin/aclocal -I m4 --force && /usr/bin/libtoolize --force && /usr/bin/automake --foreign --add-missing && /usr/bin/autoconf
prefix="/DESERT_lib"
sed "s#@TCL2CPP@#qemu-arm -L ${cfg_dir_rootfs} ${cfg_dir_rootfs}/lib/ld-linux.so.3 ${cfg_dir_toolchain_sysroot}/usr/bin/tcl2c++#g" "./m4/Makefile.in" -i
sed "s#@TCL2CPP@#qemu-arm -L ${cfg_dir_rootfs} ${cfg_dir_rootfs}/lib/ld-linux.so.3 ${cfg_dir_toolchain_sysroot}/usr/bin/tcl2c++#g" "./Makefile.in" -i
"./configure" \
--target="$cfg_target_canonical" \
--host="$cfg_target_canonical" \
--build="$cfg_host_canonical" \
--with-ns-allinone=${cfg_dir_builds}/ns/ \
--with-nsmiracle=${cfg_dir_builds}/ns-miracle/ns-miracle-1.0/trunk/main/ \
--prefix="$prefix"
}
build()
{
$cmd_make -j1 \
TCL2CPP="qemu-arm -L ${cfg_dir_rootfs} ${cfg_dir_rootfs}/lib/ld-linux.so.3 ${cfg_dir_toolchain_sysroot}/usr/bin/tcl2c++"
}
host_install()
{
$cmd_mkdir \
"$cfg_dir_toolchain_sysroot/ns2/DESERT_lib/lib" &&
$cmd_make \
DESTDIR="$cfg_dir_toolchain_sysroot/ns2/" \
install
}
target_install()
{
cp -r "${cfg_dir_toolchain_sysroot}/ns2/DESERT_lib/lib" "${cfg_dir_rootfs}/usr/ns2/DESERT/"
for f in "$cfg_dir_toolchain_sysroot/ns2/DESERT_lib/lib/"lib*.so.0.0.0; do
$cmd_target_strip "$f" -o ${cfg_dir_rootfs}/usr/ns2/DESERT/"$(basename "$f")"
done
}

View File

@ -1,19 +0,0 @@
--- ./m4/nsallinone.m4 2012-09-21 14:09:26.000000000 +0200
+++ ./m4/nsallinone.m4 2012-09-21 17:08:21.807075643 +0200
@@ -49,12 +49,10 @@
NS_ALLINONE_PATH=$withval
NS_PATH=$NS_ALLINONE_PATH/`cd $NS_ALLINONE_PATH; ls -d ns-* | head -n 1`
- TCL_PATH=$NS_ALLINONE_PATH/`cd $NS_ALLINONE_PATH; ls -d * | grep -e 'tcl[0-9].*' | head -n 1`
- TCLCL_PATH=$NS_ALLINONE_PATH/`cd $NS_ALLINONE_PATH; ls -d tclcl-* | head -n 1`
- OTCL_PATH=$NS_ALLINONE_PATH/`cd $NS_ALLINONE_PATH; ls -d otcl-* | head -n 1`
-
- NS_CPPFLAGS="-I$NS_ALLINONE_PATH/include -I$NS_PATH -I$TCLCL_PATH -I$OTCL_PATH"
-
+ TCL_PATH="${cfg_dir_builds}/tcl/"`cd "${cfg_dir_builds}/tcl/"; ls -d * | grep -e 'tcl[0-9].*' | head -n 1`
+ TCLCL_PATH="${cfg_dir_builds}/tclcl/"`cd "${cfg_dir_builds}/tclcl"; ls -d tclcl-* | head -n 1`
+ OTCL_PATH="${cfg_dir_builds}/otcl/"`cd "${cfg_dir_builds}/otcl/"; ls -d otcl-* | head -n 1`
+ NS_CPPFLAGS="${cfg_dir_toolchain_sysroot}/usr/include -I$NS_PATH -I$TCLCL_PATH -I$OTCL_PATH"
NS_ALLINONE_DISTCHECK_CONFIGURE_FLAGS="--with-ns-allinone=$withval"
AC_SUBST(NS_ALLINONE_DISTCHECK_CONFIGURE_FLAGS)

View File

@ -1,11 +0,0 @@
--- configure.ac 2012-09-27 11:57:58.190424449 +0200
+++ configure.ac 2012-09-27 12:03:02.599357310 +0200
@@ -42,6 +42,8 @@
DESERT_CPPFLAGS="$DESERT_CPPFLAGS "'-I$(top_srcdir)/mobility/uwdriftposition'
DESERT_CPPFLAGS="$DESERT_CPPFLAGS "'-I$(top_srcdir)/mobility/uwgmposition'
+TCL2CPP="qemu-arm -L ${cfg_dir_rootfs} ${cfg_dir_rootfs}/lib/ld-linux.so.3 ${cfg_dir_toolchain_sysroot}/usr/bin/tcl2c++"
+
AC_SUBST(DESERT_CPPFLAGS)
AC_SUBST(DESERT_LDFLAGS)