mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-05 14:38:51 +02:00
OpenCollada: bump (#3759)
This commit is contained in:
120
media-libs/opencollada/opencollada-1.6.68.recipe
Normal file
120
media-libs/opencollada/opencollada-1.6.68.recipe
Normal file
@@ -0,0 +1,120 @@
|
||||
SUMMARY="A stream based reader and writer library for COLLADA files"
|
||||
DESCRIPTION="COLLADA defines an open standard XML schema for exchanging \
|
||||
digital assets among various graphics software applications that might \
|
||||
otherwise store their assets in incompatible file formats. COLLADA documents \
|
||||
that describe digital assets are XML files, usually identified with a .dae \
|
||||
(digital asset exchange) filename extension."
|
||||
HOMEPAGE="http://www.opencollada.org/"
|
||||
COPYRIGHT="2013 The Khronos Group Inc."
|
||||
LICENSE="MIT"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://github.com/KhronosGroup/OpenCOLLADA/archive/v$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="d9db0c0a518aa6ac0359626f222707c6ca1b63a83cbf229d97a5999c9cde347b"
|
||||
SOURCE_FILENAME="opencollada-$portVersion.tar.gz"
|
||||
SOURCE_DIR="OpenCOLLADA-$portVersion"
|
||||
PATCHES="opencollada-$portVersion.patchset"
|
||||
|
||||
ARCHITECTURES="!x86_gcc2 x86 x86_64"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
PROVIDES="
|
||||
opencollada$secondaryArchSuffix = $portVersion
|
||||
lib:libbuffer$secondaryArchSuffix = $portVersion
|
||||
lib:libftoa$secondaryArchSuffix = $portVersion
|
||||
lib:libGeneratedSaxParser$secondaryArchSuffix = $portVersion
|
||||
lib:libMathMLSolver$secondaryArchSuffix = $portVersion
|
||||
lib:libOpenCOLLADABaseUtils$secondaryArchSuffix = $portVersion
|
||||
lib:libOpenCOLLADAFramework$secondaryArchSuffix = $portVersion
|
||||
lib:libOpenCOLLADASaxFrameworkLoader$secondaryArchSuffix = $portVersion
|
||||
lib:libOpenCOLLADAStreamWriter$secondaryArchSuffix = $portVersion
|
||||
lib:libUTF$secondaryArchSuffix = $portVersion
|
||||
lib:libzlib$secondaryArchSuffix = $portVersion
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
lib:libpcre$secondaryArchSuffix
|
||||
lib:libpcreposix$secondaryArchSuffix
|
||||
lib:libxml2$secondaryArchSuffix
|
||||
"
|
||||
|
||||
PROVIDES_devel="
|
||||
opencollada${secondaryArchSuffix}_devel = $portVersion
|
||||
devel:libbuffer$secondaryArchSuffix = $portVersion
|
||||
devel:libftoa$secondaryArchSuffix = $portVersion
|
||||
devel:libGeneratedSaxParser$secondaryArchSuffix = $portVersion
|
||||
devel:libMathMLSolver$secondaryArchSuffix = $portVersion
|
||||
devel:libOpenCOLLADABaseUtils$secondaryArchSuffix = $portVersion
|
||||
devel:libOpenCOLLADAFramework$secondaryArchSuffix = $portVersion
|
||||
devel:libOpenCOLLADASaxFrameworkLoader$secondaryArchSuffix = $portVersion
|
||||
devel:libOpenCOLLADAStreamWriter$secondaryArchSuffix = $portVersion
|
||||
devel:libUTF$secondaryArchSuffix = $portVersion
|
||||
devel:libzlib$secondaryArchSuffix = $portVersion
|
||||
"
|
||||
REQUIRES_devel="
|
||||
opencollada$secondaryArchSuffix == $portVersion base
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
devel:libpcre$secondaryArchSuffix
|
||||
devel:libpcreposix$secondaryArchSuffix
|
||||
devel:libxml2$secondaryArchSuffix
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:cmake
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:make
|
||||
cmd:pkg_config$secondaryArchSuffix
|
||||
"
|
||||
|
||||
defineDebugInfoPackage opencollada$secondaryArchSuffix \
|
||||
$libDir/libbuffer.so \
|
||||
$libDir/libftoa.so \
|
||||
$libDir/libGeneratedSaxParser.so \
|
||||
$libDir/libMathMLSolver.so \
|
||||
$libDir/libOpenCOLLADABaseUtils.so \
|
||||
$libDir/libOpenCOLLADAFramework.so \
|
||||
$libDir/libOpenCOLLADASaxFrameworkLoader.so \
|
||||
$libDir/libOpenCOLLADAStreamWriter.so \
|
||||
$libDir/libUTF.so \
|
||||
$libDir/libzlib.so
|
||||
|
||||
PATCH()
|
||||
{
|
||||
sed -i 's,${CMAKE_INSTALL_PREFIX}/include',$includeDir, CMakeLists.txt
|
||||
sed -i 's,${CMAKE_INSTALL_PREFIX}/lib/opencollada',$libDir, CMakeLists.txt
|
||||
}
|
||||
|
||||
BUILD()
|
||||
{
|
||||
mkdir -p build
|
||||
cd build
|
||||
cmake .. \
|
||||
-DCMAKE_CXX_FLAGS="-D_BSD_SOURCE" \
|
||||
-DUSE_SHARED=ON \
|
||||
$cmakeDirArgs
|
||||
|
||||
make $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
cd build
|
||||
make install $jobArgs
|
||||
|
||||
prepareInstalledDevelLibs \
|
||||
libbuffer \
|
||||
libftoa \
|
||||
libGeneratedSaxParser \
|
||||
libMathMLSolver \
|
||||
libOpenCOLLADABaseUtils \
|
||||
libOpenCOLLADAFramework \
|
||||
libOpenCOLLADASaxFrameworkLoader \
|
||||
libOpenCOLLADAStreamWriter \
|
||||
libUTF \
|
||||
libzlib
|
||||
|
||||
packageEntries devel \
|
||||
$developDir \
|
||||
$libDir/cmake
|
||||
}
|
||||
Reference in New Issue
Block a user