1SUMMARY="A stream based reader and writer library for COLLADA files" 2DESCRIPTION="COLLADA defines an open standard XML schema for exchanging \ 3digital assets among various graphics software applications that might \ 4otherwise store their assets in incompatible file formats. COLLADA documents \ 5that describe digital assets are XML files, usually identified with a .dae \ 6(digital asset exchange) filename extension." 7HOMEPAGE="http://www.opencollada.org/" 8COPYRIGHT="2013 The Khronos Group Inc." 9LICENSE="MIT" 10REVISION="1" 11SOURCE_URI="https://github.com/KhronosGroup/OpenCOLLADA/archive/v$portVersion.tar.gz" 12CHECKSUM_SHA256="3a0e25f38262d872c393bbf14ff0ce2ef6a7d66bb0d57e080cfd9e37be7ee076" 13SOURCE_FILENAME="opencollada-$portVersion.tar.gz" 14SOURCE_DIR="OpenCOLLADA-$portVersion" 15PATCHES="opencollada-$portVersion.patchset" 16 17ARCHITECTURES="all !x86_gcc2" 18SECONDARY_ARCHITECTURES="x86" 19 20PROVIDES=" 21 opencollada$secondaryArchSuffix = $portVersion 22 lib:libbuffer$secondaryArchSuffix = $portVersion 23 lib:libftoa$secondaryArchSuffix = $portVersion 24 lib:libGeneratedSaxParser$secondaryArchSuffix = $portVersion 25 lib:libMathMLSolver$secondaryArchSuffix = $portVersion 26 lib:libOpenCOLLADABaseUtils$secondaryArchSuffix = $portVersion 27 lib:libOpenCOLLADAFramework$secondaryArchSuffix = $portVersion 28 lib:libOpenCOLLADASaxFrameworkLoader$secondaryArchSuffix = $portVersion 29 lib:libOpenCOLLADAStreamWriter$secondaryArchSuffix = $portVersion 30 lib:libUTF$secondaryArchSuffix = $portVersion 31 lib:libzlib$secondaryArchSuffix = $portVersion 32 " 33REQUIRES=" 34 haiku$secondaryArchSuffix 35 lib:libpcre$secondaryArchSuffix 36 lib:libpcreposix$secondaryArchSuffix 37 lib:libxml2$secondaryArchSuffix 38 " 39 40PROVIDES_devel=" 41 opencollada${secondaryArchSuffix}_devel = $portVersion 42 devel:libbuffer$secondaryArchSuffix = $portVersion 43 devel:libftoa$secondaryArchSuffix = $portVersion 44 devel:libGeneratedSaxParser$secondaryArchSuffix = $portVersion 45 devel:libMathMLSolver$secondaryArchSuffix = $portVersion 46 devel:libOpenCOLLADABaseUtils$secondaryArchSuffix = $portVersion 47 devel:libOpenCOLLADAFramework$secondaryArchSuffix = $portVersion 48 devel:libOpenCOLLADASaxFrameworkLoader$secondaryArchSuffix = $portVersion 49 devel:libOpenCOLLADAStreamWriter$secondaryArchSuffix = $portVersion 50 devel:libUTF$secondaryArchSuffix = $portVersion 51 devel:libzlib$secondaryArchSuffix = $portVersion 52 " 53REQUIRES_devel=" 54 opencollada$secondaryArchSuffix == $portVersion base 55 " 56 57BUILD_REQUIRES=" 58 haiku${secondaryArchSuffix}_devel 59 devel:libpcre$secondaryArchSuffix 60 devel:libpcreposix$secondaryArchSuffix 61 devel:libxml2$secondaryArchSuffix 62 " 63BUILD_PREREQUIRES=" 64 cmd:cmake 65 cmd:gcc$secondaryArchSuffix 66 cmd:make 67 cmd:pkg_config$secondaryArchSuffix 68 " 69 70defineDebugInfoPackage opencollada$secondaryArchSuffix \ 71 $libDir/libbuffer.so \ 72 $libDir/libftoa.so \ 73 $libDir/libGeneratedSaxParser.so \ 74 $libDir/libMathMLSolver.so \ 75 $libDir/libOpenCOLLADABaseUtils.so \ 76 $libDir/libOpenCOLLADAFramework.so \ 77 $libDir/libOpenCOLLADASaxFrameworkLoader.so \ 78 $libDir/libOpenCOLLADAStreamWriter.so \ 79 $libDir/libUTF.so \ 80 $libDir/libzlib.so 81 82PATCH() 83{ 84 sed -i 's,${CMAKE_INSTALL_PREFIX}/include',$includeDir, CMakeLists.txt 85 sed -i 's,${CMAKE_INSTALL_PREFIX}/lib/opencollada',$libDir, CMakeLists.txt 86} 87 88BUILD() 89{ 90 mkdir -p build 91 cd build 92 cmake .. \ 93 -DCMAKE_CXX_FLAGS="-D_BSD_SOURCE" \ 94 -DUSE_SHARED=ON \ 95 $cmakeDirArgs 96 97 make $jobArgs 98} 99 100INSTALL() 101{ 102 cd build 103 make install $jobArgs 104 105 prepareInstalledDevelLibs \ 106 libbuffer \ 107 libftoa \ 108 libGeneratedSaxParser \ 109 libMathMLSolver \ 110 libOpenCOLLADABaseUtils \ 111 libOpenCOLLADAFramework \ 112 libOpenCOLLADASaxFrameworkLoader \ 113 libOpenCOLLADAStreamWriter \ 114 libUTF \ 115 libzlib 116 117 packageEntries devel \ 118 $developDir \ 119 $libDir/cmake 120} 121