mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-23 20:20:06 +02:00
admesh: add recipe
This commit is contained in:
64
media-gfx/admesh/admesh-0.98.4.recipe
Normal file
64
media-gfx/admesh/admesh-0.98.4.recipe
Normal file
@@ -0,0 +1,64 @@
|
||||
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="1"
|
||||
SOURCE_URI="https://github.com/admesh/admesh/releases/download/v$portVersion/admesh-$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="1c441591f2223034fed2fe536cf73e996062cac840423c3abe5342f898a819bb"
|
||||
PATCHES="admesh-$portVersion.patchset"
|
||||
|
||||
ARCHITECTURES="x86_gcc2 x86_64"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
PROVIDES="
|
||||
admesh$secondaryArchSuffix = $portVersion
|
||||
cmd:admesh$secondaryArchSuffix = $portVersion
|
||||
lib:libadmesh$secondaryArchSuffix = $portVersion
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
"
|
||||
|
||||
PROVIDES_devel="
|
||||
admesh${secondaryArchSuffix}_devel = $portVersion
|
||||
devel:libadmesh$secondaryArchSuffix = $portVersion
|
||||
"
|
||||
REQUIRES_devel="
|
||||
admesh$secondaryArchSuffix == $portVersion base
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:autoconf
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:make
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
autoconf -i
|
||||
runConfigure ./configure
|
||||
make $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
make install
|
||||
|
||||
rm $libDir/*.la
|
||||
|
||||
fixPkgconfig
|
||||
|
||||
prepareInstalledDevelLibs \
|
||||
libadmesh
|
||||
packageEntries devel \
|
||||
$developDir
|
||||
}
|
||||
22
media-gfx/admesh/patches/admesh-0.98.4.patchset
Normal file
22
media-gfx/admesh/patches/admesh-0.98.4.patchset
Normal file
@@ -0,0 +1,22 @@
|
||||
From ada71f99335924239fa8e9216ca6525bda543852 Mon Sep 17 00:00:00 2001
|
||||
From: Gerasim Troeglazov <3dEyes@gmail.com>
|
||||
Date: Wed, 28 Oct 2020 15:07:20 +1000
|
||||
Subject: Fix for Haiku
|
||||
|
||||
|
||||
diff --git a/src/portable_endian.h b/src/portable_endian.h
|
||||
index f980de8..6c1869d 100644
|
||||
--- a/src/portable_endian.h
|
||||
+++ b/src/portable_endian.h
|
||||
@@ -18,7 +18,7 @@
|
||||
|
||||
#endif
|
||||
|
||||
-#if defined(__linux__) || defined(__CYGWIN__)
|
||||
+#if defined(__linux__) || defined(__CYGWIN__) || defined(__HAIKU__)
|
||||
|
||||
# include <endian.h>
|
||||
|
||||
--
|
||||
2.28.0
|
||||
|
||||
Reference in New Issue
Block a user