mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-06 06:58:57 +02:00
74 lines
1.8 KiB
Bash
74 lines
1.8 KiB
Bash
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
|
|
}
|