Skip to content

Instantly share code, notes, and snippets.

@YamashitaRen
Created January 25, 2015 01:35
Show Gist options
  • Save YamashitaRen/ba15cf6478344af3d42e to your computer and use it in GitHub Desktop.
Save YamashitaRen/ba15cf6478344af3d42e to your computer and use it in GitHub Desktop.
A library for scientific data visualization, lite build
# Maintainer : zhulik <[email protected]>
pkgname=mathgl-lite
pkgver=2.3.1
pkgrel=1
pkgdesc="A library for scientific data visualization, lite build"
arch=('i686' 'x86_64')
url='http://mathgl.sourceforge.net'
license=('GPL3')
depends=('qt5-base' 'gsl' 'freeglut' 'mesa')
makedepends=('cmake')
provides=('udav')
conflicts=('udav' 'mathgl')
options=('!libtool' '!emptydirs')
source=("http://downloads.sourceforge.net/project/mathgl/mathgl/mathgl%20$pkgver/mathgl-$pkgver.tar.gz")
md5sums=('0ff4653badd077d13391036f50642edb')
build() {
cd "$srcdir/mathgl-$pkgver"
[[ -d bld ]] || mkdir bld && cd bld
cmake .. -DCMAKE_INSTALL_PREFIX=/usr \
-DPYTHON_EXECUTABLE=/usr/bin/python2 \
-Denable-all=OFF \
-Denable-doc=OFF \
-Denable-double=ON \
-Denable-fltk=OFF \
-Denable-gif=OFF \
-Denable-glut=ON \
-Denable-gsl=ON \
-Denable-hdf4=OFF \
-Denable-hdf5=OFF \
-Denable-hdf5_18=OFF \
-Denable-jpeg=OFF \
-Denable-langall=OFF \
-Denable-lgpl=OFF \
-Denable-ltdl=ON \
-Denable-octave=OFF \
-Denable-opengl=ON \
-Denable-pdf=OFF \
-Denable-pthread=ON \
-Denable-python=OFF \
-Denable-qt5=ON \
-Denable-wx=OFF
make
}
package() {
cd "$srcdir/mathgl-$pkgver/bld"
make DESTDIR="$pkgdir/" install
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment