diff --git a/packages/other/libIDL-host/build b/packages/other/libIDL-host/build
deleted file mode 100755
index 960d9da4eb..0000000000
--- a/packages/other/libIDL-host/build
+++ /dev/null
@@ -1,38 +0,0 @@
-#!/bin/sh
-
-################################################################################
-# This file is part of OpenELEC - http://www.openelec.tv
-# Copyright (C) 2009-2014 Stephan Raue (stephan@openelec.tv)
-#
-# OpenELEC is free software: you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation, either version 2 of the License, or
-# (at your option) any later version.
-#
-# OpenELEC is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with OpenELEC. If not, see .
-################################################################################
-
-. config/options $1
-
-$SCRIPTS/unpack libIDL
-
-setup_toolchain host
-
-cd $BUILD/libIDL*
-mkdir -p .build-host && cd .build-host
-
-libIDL_cv_long_long_format=ll \
-../configure --host=$HOST_NAME \
- --build=$HOST_NAME \
- --prefix=$ROOT/$TOOLCHAIN
-
-$SED "s:pkg-config :PKG_CONFIG_PATH=$HOST_PKG_CONFIG_PATH $PKG_CONFIG :" libIDL-config-2
-
-make
-make install
diff --git a/packages/other/libIDL-host/meta b/packages/other/libIDL-host/meta
deleted file mode 100644
index 7d48f71c34..0000000000
--- a/packages/other/libIDL-host/meta
+++ /dev/null
@@ -1,34 +0,0 @@
-################################################################################
-# This file is part of OpenELEC - http://www.openelec.tv
-# Copyright (C) 2009-2014 Stephan Raue (stephan@openelec.tv)
-#
-# OpenELEC is free software: you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation, either version 2 of the License, or
-# (at your option) any later version.
-#
-# OpenELEC is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with OpenELEC. If not, see .
-################################################################################
-
-PKG_NAME="libIDL"
-PKG_VERSION=""
-PKG_REV="1"
-PKG_ARCH="any"
-PKG_LICENSE="LGPL"
-PKG_SITE="http://www.gnome.org"
-PKG_URL=""
-PKG_DEPENDS=""
-PKG_BUILD_DEPENDS="toolchain glib:host"
-PKG_PRIORITY="optional"
-PKG_SECTION="other"
-PKG_SHORTDESC="libidl: Library for creating trees of CORBA IDL files"
-PKG_LONGDESC="libIDL is a library for creating trees of CORBA Interface Definition Language (IDL) files."
-PKG_IS_ADDON="no"
-
-PKG_AUTORECONF="yes"
diff --git a/packages/other/libIDL/build b/packages/other/libIDL/build
deleted file mode 100755
index 76467808f3..0000000000
--- a/packages/other/libIDL/build
+++ /dev/null
@@ -1,36 +0,0 @@
-#!/bin/sh
-
-################################################################################
-# This file is part of OpenELEC - http://www.openelec.tv
-# Copyright (C) 2009-2014 Stephan Raue (stephan@openelec.tv)
-#
-# OpenELEC is free software: you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation, either version 2 of the License, or
-# (at your option) any later version.
-#
-# OpenELEC is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with OpenELEC. If not, see .
-################################################################################
-
-. config/options $1
-
-cd $PKG_BUILD
-
-mkdir -p .build-target && cd .build-target
-
-libIDL_cv_long_long_format=ll \
-../configure --host=$TARGET_NAME \
- --build=$HOST_NAME \
- --prefix=/usr \
- --sysconfdir=/etc \
- --disable-static \
- --enable-shared \
-
-make
-$MAKEINSTALL
diff --git a/packages/other/libIDL/install b/packages/other/libIDL/install
deleted file mode 100755
index b4eb59490e..0000000000
--- a/packages/other/libIDL/install
+++ /dev/null
@@ -1,24 +0,0 @@
-#!/bin/sh
-
-################################################################################
-# This file is part of OpenELEC - http://www.openelec.tv
-# Copyright (C) 2009-2014 Stephan Raue (stephan@openelec.tv)
-#
-# OpenELEC is free software: you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation, either version 2 of the License, or
-# (at your option) any later version.
-#
-# OpenELEC is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with OpenELEC. If not, see .
-################################################################################
-
-. config/options $1
-
-mkdir -p $INSTALL/usr/lib
- cp -P $PKG_BUILD/.build-target/.libs/*.so* $INSTALL/usr/lib
diff --git a/packages/other/libIDL/meta b/packages/other/libIDL/package.mk
similarity index 78%
rename from packages/other/libIDL/meta
rename to packages/other/libIDL/package.mk
index aa80ed688a..39fb46810a 100644
--- a/packages/other/libIDL/meta
+++ b/packages/other/libIDL/package.mk
@@ -24,11 +24,23 @@ PKG_LICENSE="LGPL"
PKG_SITE="http://www.gnome.org"
PKG_URL="http://ftp.gnome.org/pub/gnome/sources/libIDL/0.8/$PKG_NAME-$PKG_VERSION.tar.bz2"
PKG_DEPENDS="glib"
-PKG_BUILD_DEPENDS="toolchain glib"
+PKG_BUILD_DEPENDS_HOST="toolchain glib:host"
+PKG_BUILD_DEPENDS_TARGET="toolchain glib"
PKG_PRIORITY="optional"
PKG_SECTION="other"
PKG_SHORTDESC="libidl: Library for creating trees of CORBA IDL files"
PKG_LONGDESC="libIDL is a library for creating trees of CORBA Interface Definition Language (IDL) files."
-PKG_IS_ADDON="no"
+PKG_IS_ADDON="no"
PKG_AUTORECONF="yes"
+
+PKG_CONFIGURE_OPTS_HOST="libIDL_cv_long_long_format=ll"
+PKG_CONFIGURE_OPTS_TARGET="libIDL_cv_long_long_format=ll"
+
+post_makeinstall_host() {
+ sed -e "s:pkg-config :PKG_CONFIG_PATH=$HOST_PKG_CONFIG_PATH $PKG_CONFIG :" -i libIDL-config-2
+}
+
+post_makeinstall_target() {
+ rm -rf $INSTALL/usr/bin
+}