summaryrefslogblamecommitdiff
path: root/user/ode/APKBUILD
blob: 24c1fcc742d90c44f56a2a98ed0ccd1e2502a380 (plain) (tree)
1
2
3
4
5
6
7


                                                  
           

                                                                     
                      






































                                                                      
                                                                                                                                                             
                                                                                                                                                      
# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=ode
pkgver=0.16
pkgrel=0
pkgdesc="High performance library for simulating rigid body dynamics"
url="https://ode.org/"
arch="all"
options="!check"  # Fails 48/52 tests
license="LGPL-2.1+ OR BSD-3-Clause"
depends=""
makedepends="autoconf automake libtool"
subpackages="$pkgname-dev"
source="https://bitbucket.org/odedevs/ode/downloads/ode-$pkgver.tar.gz
	fix-test-link.patch
	"

build() {
	cd "$builddir"

	./bootstrap
	CXXFLAGS="$CXXFLAGS -fpermissive" ./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--enable-shared \
		--disable-static \
		--disable-double-precision \
		--enable-libccd \
		--enable-ou
	make
}

check() {
	cd "$builddir"
	make check
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
}

sha512sums="302e6f689851acb9ba0db23e13ab59ae0acbbd8dbdfa7e277b57d870c0d3435274e64da16134fb4b7053f951489c138e485165d79664d11764a88b3437d703d3  ode-0.16.tar.gz
8630d5d059fd0f623db6af4000666868358002a42ba84817117b1fb5e01c776bb23cbf1c8c43181d7bf40a0d71b640f9d2f9785461d8a77877dcbdadd775792e  fix-test-link.patch"