#!/bin/sh

. config/options

pkg_uses $1 opengl && USE_GL="-config glviewport"

cd $BUILD/$1*
do_qmake $USE_GL
make

rm -rf .install
mkdir -p .install/usr/share/qtmediahub
for i in plugins qmh qtmediahub resources skins; do
  cp -PR hub/$i .install/usr/share/qtmediahub
done
