# Tanım: GStreamer için Qt5 bağları.
# URL: http://gstreamer.freedesktop.org/modules/qt-gstreamer.htm
# Paketçi: alihan-ozturk28@hotmail.com
# Gerekler: cmake boost xorg-mesa doxygen gstreamer1-plugins-good qt5
# Grup: kütüphane

isim=qt5-gstreamer
surum=1.2.0
devir=1

kaynak=(http://gstreamer.freedesktop.org/src/qt-gstreamer/qt-gstreamer-$surum.tar.xz
        qt5-gstreamer-1.6.patch)

derle() {
  mkdir build
  cd qt-gstreamer-$surum
  patch -p1 -i ../qt5-gstreamer-1.6.patch

  cd ../build
  cmake ../qt-gstreamer-$surum \
    -DCMAKE_INSTALL_PREFIX=/usr  \
    -DCMAKE_BUILD_TYPE=Release   \
    -DCMAKE_INSTALL_LIBDIR=lib   \
    -DQTGSTREAMER_EXAMPLES=OFF   \
    -DQT_VERSION=5
  make
  make DESTDIR=$PKG install
}
