# Maintainer: Gianluca Montecchi # Contributor: Geoffroy Carrier # Contributor: Dmitriy Morozov # Contributor: Larry Hajali pkgname=libqglviewer-qt4 _pkgname=libQGLViewer pkgver=2.6.4 pkgrel=1 pkgdesc="C++ library based on Qt that eases the creation of OpenGL 3D viewers" url="http://www.libqglviewer.com/" depends=('qt4' 'glu' 'mesa') conflicts=('libqglviewer') arch=('i686' 'x86_64') license=('GPL2' 'GPL3' 'custom') source=("http://www.libqglviewer.com/src/${_pkgname}-${pkgver}.tar.gz") options=(!makeflags) md5sums=('f8b4775955a400f42876e86aafe39a71') build() { cd ${_pkgname}-${pkgver} qmake-qt4 PREFIX=/usr -o Makefile ${_pkgname}-${pkgver}.pro || return 1 make \ CFLAGS="-pipe ${CFLAGS} -D_REENTRANT -Wall -W -fPIC \$(DEFINES)" \ CXXLIBS=" ${CXXLIBS} " \ CXXFLAGS="-pipe ${CXXFLAGS} -I/usr/include/GL -D_REENTRANT -Wall -W -fPIC \$(DEFINES)" || return 1 } package() { cd ${_pkgname}-${pkgver} make install INSTALL_ROOT="$pkgdir" || return 1 # Install license. install -d -m 0755 "${pkgdir}"/usr/share/licenses/$pkgname/ || return 1 install -m 0644 LICENCE GPL_EXCEPTION "${pkgdir}"/usr/share/licenses/$pkgname/ || return 1 }