Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=c9ea01d6f50d1f3e1c3d232b5d0b215529a1faa5
commit c9ea01d6f50d1f3e1c3d232b5d0b215529a1faa5 Author: Miklos Vajna <[email protected]> Date: Mon Jun 22 18:09:06 2015 +0200 opencollada-22.git69b844d-1-x86_64 - new package, will be a libreoffice-5.0 dependency diff --git a/source/xlib/opencollada/FrugalBuild b/source/xlib/opencollada/FrugalBuild new file mode 100644 index 0000000..ffdf623 --- /dev/null +++ b/source/xlib/opencollada/FrugalBuild @@ -0,0 +1,77 @@ +# Compiling Time: 3.93 SBU +# Maintainer: Miklos Vajna <[email protected]> + +pkgname=opencollada +commit=69b844dc9eea0a014326149c259e7810ecec4c8c +shortcommit=${commit:0:7} +pkgver=22.git$shortcommit +sover=0.2 +pkgrel=1 +pkgdesc="Collada 3D import and export libraries" +url="https://collada.org/mediawiki/index.php/OpenCOLLADA" +depends=('libxml2' 'pcre' 'xz') +makedepends=('hd2u' 'fftw' 'cmake' 'zlib') +groups=('xlib') +archs=('i686' 'x86_64') +# No idea how to check this automatically, I'll update this when depending packages require doing so. +up2date="$pkgver" +source=(https://github.com/KhronosGroup/OpenCOLLADA/archive/$commit/OpenCOLLADA-$shortcommit.tar.gz \ + OpenCOLLADA-cmake.patch \ + OpenCOLLADA-includes.patch) +sha1sums=('acaf65bf51d007040efec35acf3ad6da930caea8' \ + '5ad3cadad0554b9e18670d93a9a69d49d9ad33c8' \ + '431ce22280ade9fbfa8cef42baebee67885b3310') + +build() +{ + set -ex + + Fcd OpenCOLLADA-$commit + Fpatchall + + # Remove unused bundled libraries + rm -rf Externals/{Cg,expat,lib3ds,LibXML,MayaDataModel,pcre,zlib,zziplib} + + # Add some docs, need to fix eol encoding with dos2unix in some files. + find ./ -name .project -delete + cp -pf COLLADAStreamWriter/README README.COLLADAStreamWriter + cp -pf COLLADAStreamWriter/LICENSE ./ + + iconv -f ISO_8859-1 -t utf-8 COLLADAStreamWriter/AUTHORS > \ + COLLADAStreamWriter/AUTHORS.tmp + touch -r COLLADAStreamWriter/AUTHORS COLLADAStreamWriter/AUTHORS.tmp + mv COLLADAStreamWriter/AUTHORS.tmp COLLADAStreamWriter/AUTHORS + + dos2unix -f README.COLLADAStreamWriter + dos2unix -f LICENSE + dos2unix -f README + find htdocs/ -name *.php -exec dos2unix -f {} \; + find htdocs/ -name *.css -exec dos2unix -f {} \; + + # Build. + rm -rf Build && mkdir -p Build && pushd Build + cmake -DUSE_STATIC=OFF \ + -DUSE_SHARED=ON \ + -Dsoversion=$sover \ + -DLIB_INSTALL_DIR="/usr/lib" \ + -DINCLUDE_INSTALL_DIR="/usr/include" \ + -DCMAKE_SKIP_RPATH=ON \ + -DCMAKE_BUILD_TYPE="RelWithDebInfo" \ + ../ + + make + + make DESTDIR=$Fdestdir install + + # Manually install binary + Fmkdir /usr/bin + install -p -m 0755 bin/* $Fdestdir/usr/bin/ + + popd + + # Install MathMLSolver headers + Fmkdir /usr/include/MathMLSolver + cp -a Externals/MathMLSolver/include/* $Fdestdir/usr/include/MathMLSolver/ + + set +ex +} diff --git a/source/xlib/opencollada/OpenCOLLADA-cmake.patch b/source/xlib/opencollada/OpenCOLLADA-cmake.patch new file mode 100644 index 0000000..3df42aa --- /dev/null +++ b/source/xlib/opencollada/OpenCOLLADA-cmake.patch @@ -0,0 +1,23 @@ +diff -Naur OpenCOLLADA.orig/CMakeLists.txt OpenCOLLADA/CMakeLists.txt +--- OpenCOLLADA.orig/CMakeLists.txt 2013-08-10 02:00:51.000000000 -0500 ++++ OpenCOLLADA/CMakeLists.txt 2013-08-28 10:34:50.122102989 -0500 +@@ -77,7 +77,7 @@ + message(${name} " WARNING: Shared library support implemented for UNIX-like OS only") + endif () + add_library(${name}_shared SHARED ${sources}) +- set_target_properties(${name}_shared PROPERTIES OUTPUT_NAME ${name}) ++ set_target_properties(${name}_shared PROPERTIES OUTPUT_NAME ${name} SOVERSION ${soversion}) + foreach(target_lib ${target_libs}) + if(TARGET ${target_lib}_shared) + target_link_libraries(${name}_shared ${target_lib}_shared) +@@ -178,8 +178,8 @@ + #----------------------------------------------------------------------------- + # Install vars + +-set(OPENCOLLADA_INST_INCLUDE ${CMAKE_INSTALL_PREFIX}/include/opencollada) +-set(OPENCOLLADA_INST_LIBRARY ${CMAKE_INSTALL_PREFIX}/lib/opencollada) ++set(OPENCOLLADA_INST_INCLUDE ${INCLUDE_INSTALL_DIR}) ++set(OPENCOLLADA_INST_LIBRARY ${LIB_INSTALL_DIR}) + set(OPENCOLLADA_INST_CMAKECONFIG ${OPENCOLLADA_INST_LIBRARY}/cmake) + + diff --git a/source/xlib/opencollada/OpenCOLLADA-includes.patch b/source/xlib/opencollada/OpenCOLLADA-includes.patch new file mode 100644 index 0000000..63c59c4 --- /dev/null +++ b/source/xlib/opencollada/OpenCOLLADA-includes.patch @@ -0,0 +1,15 @@ +diff -rupN OpenCOLLADA-69b844d/COLLADAFramework/include/COLLADAFWInstanceBindingBase.h OpenCOLLADA-69b844d-new/COLLADAFramework/include/COLLADAFWInstanceBindingBase.h +--- OpenCOLLADA-69b844d/COLLADAFramework/include/COLLADAFWInstanceBindingBase.h 2014-08-28 05:30:44.000000000 +0200 ++++ OpenCOLLADA-69b844d-new/COLLADAFramework/include/COLLADAFWInstanceBindingBase.h 2014-10-08 23:53:23.152124797 +0200 +@@ -15,6 +15,11 @@ + #include "COLLADAFWInstanceBase.h" + #include "COLLADAFWMaterialBinding.h" + ++#include "COLLADABUURI.h" ++ ++#include <vector> ++ ++ + namespace COLLADAFW + { + _______________________________________________ Frugalware-git mailing list [email protected] http://frugalware.org/mailman/listinfo/frugalware-git
