diff --git a/packages/multimedia/libmpeg2/build b/packages/multimedia/libmpeg2/build
deleted file mode 100755
index 2a893f51d6..0000000000
--- a/packages/multimedia/libmpeg2/build
+++ /dev/null
@@ -1,34 +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
-./configure --host=$TARGET_NAME \
- --build=$HOST_NAME \
- --prefix=/usr \
- --disable-static \
- --enable-shared \
- --disable-sdl \
- --without-x
-
-make
-
-$MAKEINSTALL
diff --git a/packages/multimedia/libmpeg2/install b/packages/multimedia/libmpeg2/install
deleted file mode 100755
index 3c4bd61291..0000000000
--- a/packages/multimedia/libmpeg2/install
+++ /dev/null
@@ -1,25 +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/libmpeg2/.libs/*.so* $INSTALL/usr/lib
- cp -P $PKG_BUILD/libmpeg2/convert/.libs/*.so* $INSTALL/usr/lib
diff --git a/packages/multimedia/libmpeg2/meta b/packages/multimedia/libmpeg2/package.mk
similarity index 89%
rename from packages/multimedia/libmpeg2/meta
rename to packages/multimedia/libmpeg2/package.mk
index f0f2b44a92..82faa9c4c5 100644
--- a/packages/multimedia/libmpeg2/meta
+++ b/packages/multimedia/libmpeg2/package.mk
@@ -23,8 +23,8 @@ PKG_ARCH="any"
PKG_LICENSE="GPL"
PKG_SITE="http://libmpeg2.sourceforge.net/"
PKG_URL="http://libmpeg2.sourceforge.net/files/$PKG_NAME-$PKG_VERSION.tar.gz"
-PKG_DEPENDS=""
-PKG_BUILD_DEPENDS="toolchain"
+PKG_DEPENDS_TARGET=""
+PKG_BUILD_DEPENDS_TARGET="toolchain"
PKG_PRIORITY="optional"
PKG_SECTION="multimedia"
PKG_SHORTDESC="libmpeg2: The MPEG Library - version 2"
@@ -32,3 +32,10 @@ PKG_LONGDESC="The MPEG Library is a collection of C routines to decode MPEG-1 an
PKG_IS_ADDON="no"
PKG_AUTORECONF="yes"
+
+PKG_CONFIGURE_OPTS_TARGET="--disable-sdl --without-x"
+
+post_makeinstall_target() {
+ rm -rf $INSTALL/usr/bin
+}
+