mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-08 21:00:05 +02:00
74 lines
1.8 KiB
Bash
74 lines
1.8 KiB
Bash
SUMMARY="CLI and C library for processing triangulated solid meshes"
|
||
DESCRIPTION="ADMesh is a program for processing triangulated solid meshes. \
|
||
Currently, ADMesh only reads the STL file format that is used for rapid prototyping \
|
||
applications, although it can write STL, VRML, OFF, and DXF files. Additional \
|
||
information regarding the underlying algorithms of ADMesh can be found in \
|
||
Anthony Martins Masters Thesis."
|
||
HOMEPAGE="https://admesh.readthedocs.io/"
|
||
COPYRIGHT="Anthony D. Martin"
|
||
LICENSE="GNU GPL v2"
|
||
REVISION="2"
|
||
SOURCE_URI="https://github.com/admesh/admesh/releases/download/v$portVersion/admesh-$portVersion.tar.gz"
|
||
CHECKSUM_SHA256="0d7994bfa587c4e958b2ac7c7d2fb90dfb6c5463d32513ada169cf710a438535"
|
||
PATCHES="admesh-$portVersion.patchset"
|
||
|
||
ARCHITECTURES="all !x86_gcc2"
|
||
SECONDARY_ARCHITECTURES="x86"
|
||
|
||
commandBinDir=$binDir
|
||
commandSuffix=$secondaryArchSuffix
|
||
if [ "$targetArchitecture" = x86_gcc2 ]; then
|
||
commandSuffix=
|
||
commandBinDir=$prefix/bin
|
||
fi
|
||
|
||
libVersion="1.0.0"
|
||
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
|
||
|
||
PROVIDES="
|
||
admesh$secondaryArchSuffix = $portVersion
|
||
cmd:admesh$commandSuffix = $portVersion
|
||
lib:libadmesh$secondaryArchSuffix = $libVersionCompat
|
||
"
|
||
REQUIRES="
|
||
haiku$secondaryArchSuffix
|
||
"
|
||
|
||
PROVIDES_devel="
|
||
admesh${secondaryArchSuffix}_devel = $portVersion
|
||
devel:libadmesh$secondaryArchSuffix = $libVersionCompat
|
||
"
|
||
REQUIRES_devel="
|
||
admesh$secondaryArchSuffix == $portVersion base
|
||
"
|
||
|
||
BUILD_REQUIRES="
|
||
haiku${secondaryArchSuffix}_devel
|
||
"
|
||
BUILD_PREREQUIRES="
|
||
cmd:autoconf
|
||
cmd:gcc$secondaryArchSuffix
|
||
cmd:make
|
||
"
|
||
|
||
BUILD()
|
||
{
|
||
autoconf -i
|
||
runConfigure --omit-dirs binDir ./configure \
|
||
--bindir=$commandBinDir
|
||
make $jobArgs
|
||
}
|
||
|
||
INSTALL()
|
||
{
|
||
make install
|
||
|
||
rm $libDir/*.la
|
||
|
||
prepareInstalledDevelLib libadmesh
|
||
fixPkgconfig
|
||
|
||
packageEntries devel \
|
||
$developDir
|
||
}
|