updated on Thu Jan 19 12:17:07 UTC 2012
[aur-mirror.git] / brlcad / PKGBUILD
blobc3dd970e2faecfce552e4015f7fcfd4b22b4831b
1 #  Maintainer: Loui Chang <louipc dot ist at gmail company>
3 pkgname=brlcad
4 pkgver=7.20.4
5 pkgrel=1
6 pkgdesc="An extensive 3D solid modeling system."
7 url="http://brlcad.org"
8 license=('LGPL' 'BSD' 'custom:BDL')
9 arch=('i686' 'x86_64')
10 install=$pkgname.install
11 makedepends=('bc' 'cmake' 'libxslt')
12 depends=('boost' 'flex' 'libgl' 'libpng' 'mesa' 'tk' 'zlib')
14 # Maybe we could build brlcad with these externally some time.
15 #       'itcl:        libs included, but package can build with external libs'
16 #       'itk:         libs included, but package can build with external libs'
17 #       'opennurbs:   libs included, but package can build with external libs'
18 #       'tkhtml3-cvs: for man page browsing in mged. CVS repo dead'
19 #       'urt:         Utah Raster Toolkit'
20 optdepends=(
21     'fop:   for building pdf documentation'
22     'tkpng: for archer'
25 # tkhtml3-cvs is needed for manpage browsing in mged.
26 # Older versions won't work properly
28 options=('!libtool')
30 source=(http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.bz2)
32 _pkgprefix=/opt/$pkgname
34 build() {
35     mkdir $srcdir/$pkgname-build
36     cd $srcdir/$pkgname-build
38     cmake $srcdir/$pkgname-$pkgver \
39     -DCMAKE_INSTALL_PREFIX=${_pkgprefix} \
40     -DBRLCAD-ENABLE_OPTIMIZED=ON \
41     -DCMAKE_BUILD_TYPE=Release \
42     -DBRLCAD-ENABLE_STRICT=OFF
44     make
47 package() {
48     cd $srcdir/$pkgname-build
50     make DESTDIR=$pkgdir install
52     mkdir -p $pkgdir/etc/profile.d
53     echo "export PATH=\$PATH:$_pkgprefix/bin" > $pkgdir/etc/profile.d/$pkgname.sh
54     chmod 755 $pkgdir/etc/profile.d/$pkgname.sh
56     mkdir -p $pkgdir/usr/share/licenses/$pkgname
57     cp $srcdir/$pkgname-$pkgver/doc/legal/bdl.txt \
58         $pkgdir/usr/share/licenses/$pkgname
59     cp $srcdir/$pkgname-$pkgver/doc/legal/bsd.txt \
60         $pkgdir/usr/share/licenses/$pkgname
61     mkdir -p $pkgdir/etc/ld.so.conf.d
62     echo ${_pkgprefix}/lib > $pkgdir/etc/ld.so.conf.d/$pkgname.conf
65 md5sums=('6e500f477e21a539a04e37001c350472')