53 lines
1.4 KiB
Bash
53 lines
1.4 KiB
Bash
|
# Template file for 'assimp'
|
||
|
pkgname=assimp
|
||
|
version=3.3.1
|
||
|
revision=1
|
||
|
build_style=cmake
|
||
|
hostmakedepends="cmake pkg-config doxygen"
|
||
|
makedepends="boost-devel zlib-devel"
|
||
|
short_desc="Import library for various well-known 3D model formats"
|
||
|
maintainer="Jürgen Buchmüller <pullmoll@t-online.de>"
|
||
|
license="3-clause-BSD"
|
||
|
homepage="http://assimp.sourceforge.net/"
|
||
|
distfiles="https://github.com/assimp/assimp/archive/v${version}.tar.gz>${pkgname}-${version}.tar.gz"
|
||
|
checksum=d385c3f90876241343f09e45f4e5033a6a05861b971c63d1f6d512371ffdc7bf
|
||
|
depends="libassimp>=${version}_${revision}"
|
||
|
|
||
|
post_install() {
|
||
|
cd doc
|
||
|
# Create command documentation
|
||
|
rm -rf AssimpCmdDoc_Html
|
||
|
doxygen Doxyfile_Cmd
|
||
|
vmkdir usr/share/doc/${pkgname}
|
||
|
vcopy AssimpCmdDoc_Html/* usr/share/doc/${pkgname}
|
||
|
# Create library documentation
|
||
|
rm -rf AssimpDoc_Html
|
||
|
doxygen Doxyfile
|
||
|
vmkdir usr/share/doc/${pkgname}/lib
|
||
|
vcopy AssimpDoc_Html/* usr/share/doc/${pkgname}/lib
|
||
|
cd ..
|
||
|
vlicense LICENSE
|
||
|
}
|
||
|
|
||
|
libassimp_package() {
|
||
|
short_desc+=" - libraries"
|
||
|
depends="${makedepends}"
|
||
|
pkg_install() {
|
||
|
vmove usr/lib/*.so.*
|
||
|
vlicense LICENSE
|
||
|
}
|
||
|
}
|
||
|
libassimp-devel_package() {
|
||
|
short_desc+=" - development files"
|
||
|
depends="libassimp>${version}_${revision}"
|
||
|
pkg_install() {
|
||
|
vmove usr/include
|
||
|
vmove usr/lib/*.so
|
||
|
vmove usr/lib/cmake
|
||
|
vmove usr/lib/pkgconfig
|
||
|
vmkdir usr/share/doc/libassimp
|
||
|
mv ${DESTDIR}/usr/share/doc/${sourcepkg}/lib/* \
|
||
|
${PKGDESTDIR}/usr/share/doc/libassimp/
|
||
|
}
|
||
|
}
|