1 # Maintainer: Loui Chang <louipc dot ist at gmail company>
6 pkgdesc="An extensive 3D solid modeling system."
7 url="http://brlcad.org"
8 license=('LGPL' 'BSD' 'custom:BDL')
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'
21 'fop: for building pdf documentation'
25 # tkhtml3-cvs is needed for manpage browsing in mged.
26 # Older versions won't work properly
30 source=(http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.bz2)
32 _pkgprefix=/opt/$pkgname
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
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')