mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 03:30:05 +02:00
assimp: new recipe (#1645)
This commit is contained in:
committed by
Jérôme Duval
parent
98152ea4d4
commit
b2d6eadc54
73
media-libs/assimp/assimp-4.0.1.recipe
Normal file
73
media-libs/assimp/assimp-4.0.1.recipe
Normal file
@@ -0,0 +1,73 @@
|
||||
SUMMARY="Importer library to import assets from 3D files"
|
||||
DESCRIPTION="Open Asset Import Library (short name: Assimp) is a portable \
|
||||
Open Source library to import various well-known 3D model formats in a \
|
||||
uniform manner. The most recent version also knows how to export 3d files \
|
||||
and is therefore suitable as a general-purpose 3D model converter."
|
||||
HOMEPAGE="https://github.com/assimp/assimp"
|
||||
COPYRIGHT="2006-2016, assimp team"
|
||||
LICENSE="BSD (3-clause)"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://github.com/assimp/assimp/archive/v$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256='60080d8ab4daaab309f65b3cffd99f19eb1af8d05623fff469b9b652818e286e'
|
||||
|
||||
ARCHITECTURES="!x86_gcc2 x86 x86_64"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
PROVIDES="
|
||||
assimp$secondaryArchSuffix = $portVersion
|
||||
cmd:assimp$secondaryArchSuffix
|
||||
lib:libassimp$secondaryArchSuffix = 4.0.1 compat >= 4
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
lib:libGL$secondaryArchSuffix
|
||||
lib:libglu$secondaryArchSuffix
|
||||
lib:libgomp$secondaryArchSuffix
|
||||
lib:libminizip$secondaryArchSuffix
|
||||
lib:libz$secondaryArchSuffix
|
||||
"
|
||||
|
||||
PROVIDES_devel="
|
||||
assimp${secondaryArchSuffix}_devel = $portVersion
|
||||
devel:libassimp$secondaryArchSuffix = 4.0.1 compat >= 4
|
||||
"
|
||||
REQUIRES_devel="
|
||||
assimp$secondaryArchSuffix == $portVersion base
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
devel:libGL$secondaryArchSuffix
|
||||
devel:libglu$secondaryArchSuffix
|
||||
devel:libminizip$secondaryArchSuffix
|
||||
devel:libz$secondaryArchSuffix
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:cmake
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:make
|
||||
cmd:pkg_config$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
mkdir -p build
|
||||
cd build
|
||||
cmake -DASSIMP_BIN_INSTALL_DIR=$binDir \
|
||||
-DASSIMP_LIB_INSTALL_DIR=$libDir \
|
||||
-DASSIMP_INCLUDE_INSTALL_DIR=$includeDir ..
|
||||
make $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
cd build
|
||||
make install
|
||||
|
||||
prepareInstalledDevelLib libassimp
|
||||
|
||||
fixPkgconfig
|
||||
|
||||
packageEntries devel \
|
||||
$developDir
|
||||
}
|
||||
Reference in New Issue
Block a user