diff --git a/common/shlibs b/common/shlibs index 5de3c1f4cc7..741b0b1c0cd 100644 --- a/common/shlibs +++ b/common/shlibs @@ -2799,3 +2799,4 @@ libomxvideosched.so.0 libomxil-bellagio-0.9.3_1 libnss_libvirt_guest.so.2 libvirt-3.1.0_1 libvirt-admin.so.0 libvirt-3.1.0_1 libnss_libvirt.so.2 libvirt-3.1.0_1 +libassimp.so.3 libassimp-3.3.1_1 diff --git a/srcpkgs/assimp/template b/srcpkgs/assimp/template new file mode 100644 index 00000000000..e2c00c63ed4 --- /dev/null +++ b/srcpkgs/assimp/template @@ -0,0 +1,52 @@ +# 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 " +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/ + } +} diff --git a/srcpkgs/libassimp b/srcpkgs/libassimp new file mode 120000 index 00000000000..04302370c5b --- /dev/null +++ b/srcpkgs/libassimp @@ -0,0 +1 @@ +assimp \ No newline at end of file diff --git a/srcpkgs/libassimp-devel b/srcpkgs/libassimp-devel new file mode 120000 index 00000000000..04302370c5b --- /dev/null +++ b/srcpkgs/libassimp-devel @@ -0,0 +1 @@ +assimp \ No newline at end of file