Add recipe for lib3ds 2.0.0

lib3ds patches

lib3ds doesn't build tools

Add
This commit is contained in:
Adrián Arroyo Calle
2015-09-11 12:16:31 +00:00
parent ae085c6b97
commit 879bc7d7dd
2 changed files with 81 additions and 0 deletions

View File

@@ -0,0 +1,62 @@
SUMMARY="A library for managing 3D-Studio Release 3 and 4 .3DS files"
DESCRIPTION="lib3ds is an overall software library for managing 3D-Studio \
Release 3 and 4 .3DS files. It is a free alternative to Autodesk's 3DS File \
Toolkit for managing 3DS files. It started out in 1996 to be released in \
1999 under the GNU General Public License (GPL) as Open-Source software.\
In 2000, the library was completely rewritten in ANSI-C to attain more \
hardware platform independence. To enable commercial application the license \
was changed to GNU Lesser General Public License (LGPL)."
HOMEPAGE="http://lib3ds.org"
COPYRIGHT="2000-2010 Jan Eric Kyprianidis"
LICENSE="GNU LGPL v2"
REVISION="1"
SOURCE_URI="git://github.com/AdrianArroyoCalle/lib3ds#d477b7dc451ec88a739cc28e6d9a7564123569d0"
PATCHES="lib3ds-2.0.0.patchset"
ARCHITECTURES="?x86 x86_gcc2 ?x86_64"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
lib3ds$secondaryArchSuffix = $portVersion compat >= 2.0
lib:lib3ds$secondaryArchSuffix = $portVersion compat >= 2.0
"
REQUIRES="
haiku$secondaryArchSuffix
"
PROVIDES_devel="
lib3ds${secondaryArchSuffix}_devel = $portVersion compat >= 2.0
devel:lib3ds$secondaryArchSuffix = $portVersion compat >= 2.0
"
REQUIRES_devel="
lib3ds$secondaryArchSuffix == $portVersion
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
"
BUILD_PREREQUIRES="
cmd:gcc$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
cmd:make
cmd:cmake
"
BUILD()
{
cmake . $cmakeDirArgs
make
}
INSTALL()
{
mkdir -p $libDir
cp bin/liblib3ds.so.2.0 $libDir/lib3ds.so.2.0
ln -s $libDir/lib3ds.so.2.0 $libDir/lib3ds.so
mkdir -p $includeDir
cp src/*.h $includeDir/
prepareInstalledDevelLibs lib3ds
packageEntries devel $developDir
}

View File

@@ -0,0 +1,19 @@
From cb0a0e266f99aab2da7b4ca1897adc28cf94e1af Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Adri=C3=A1n=20Arroyo=20Calle?=
<adrian.arroyocalle@gmail.com>
Date: Fri, 11 Sep 2015 12:18:29 +0000
Subject: Do not build examples
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 37cafd7..133252e 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -6,4 +6,3 @@ SET(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/bin)
SET(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/lib)
ADD_SUBDIRECTORY(src)
-ADD_SUBDIRECTORY(examples)
--
2.2.2