updated on Sat Jan 14 12:12:45 UTC 2012
[aur-mirror.git] / coin-hg / PKGBUILD
blob73508ce4b74c76573b3f29fb041a7af45d4856c1
1 # Maintainer: mickele
2 pkgname=coin-hg
3 pkgver=11140
4 pkgrel=1
5 pkgdesc="Mercurial version of Coin"
6 arch=('i686' 'x86_64')
7 url="http://www.coin3d.org/"
8 license=('GPL')
9 depends=('libgl')
10 optdepends=('openal' 'fontconfig' 'zlib' 'freetype2' 'bzip2' 'spidermonkey')
11 makedepends=('make' 'gcc' 'doxygen' 'mercurial')
12 provides=('coin=3.1.2' 'coin-doc=3.1.2')
13 conflicts=('coin')
14 replaces=('coin-mercurial')
16 build() {
17   cd "${srcdir}" || return 1
18   (cd default && hg update) || hg clone http://hg.sim.no/Coin/default || return 1
20   mkdir -p build || return 1
21   cd build || return 1
23   ../default/configure --prefix=/usr \
24                        --mandir=/usr/share/man \
25                        --enable-optimization \
26                        --enable-3ds-import \
27                        --enable-javascript-api \
28                        --enable-threadsafe \
29                        --enable-exceptions \
30                        --enable-man \
31                        --with-mesa \
32                        --disable-debug \
33                        --enable-shared \
34                        --disable-maintainer-mode \
35                        --disable-dependency-tracking \
36                        --enable-html \
37                        || return 1
39   make DESTDIR="${pkgdir}" install || return 1
41   # final adjustments
42   rm -rf "${pkgdir}/usr/lib/libCoin.la"
43   for _FILE in threads
44   do
45         mv  "${pkgdir}/usr/share/man/man3/${_FILE}.3"  "${pkgdir}/usr/share/man/man3/coin-${_FILE}.3"
46   done
48   install -d -m 755 "${pkgdir}/usr/share/doc/${pkgname}" || return 1
49   cp -rf "${pkgdir}/usr/share/Coin/html" "${pkgdir}/usr/share/doc/${pkgname}" || return 1
50   rm -rf "${pkgdir}/usr/share/Coin/html" || return 1