diff mbox

[v1] assimp: new package

Message ID 1449272047-15249-1-git-send-email-ps.report@gmx.net
State Superseded
Headers show

Commit Message

Peter Seiderer Dec. 4, 2015, 11:34 p.m. UTC
Signed-off-by: Peter Seiderer <ps.report@gmx.net>
----
Any nicer way to define _SOURCE and _SITE to get assimp-3.2.tar.gz
instead of v3.2.tar.gz file in the local download diretory?
---
 package/Config.in        |  1 +
 package/assimp/Config.in |  9 +++++++++
 package/assimp/assimp.mk | 16 ++++++++++++++++
 3 files changed, 26 insertions(+)
 create mode 100644 package/assimp/Config.in
 create mode 100644 package/assimp/assimp.mk

Comments

Jörg Krause Dec. 5, 2015, 12:45 a.m. UTC | #1
Dear Peter Seiderer,

On Sa, 2015-12-05 at 00:34 +0100, Peter Seiderer wrote:
> Signed-off-by: Peter Seiderer <ps.report@gmx.net>
> ----
> Any nicer way to define _SOURCE and _SITE to get assimp-3.2.tar.gz
> instead of v3.2.tar.gz file in the local download diretory?

Why not use the github helper?

ASSIMP_VERSION = v3.2
ASSIMP_SITE = $(call github,assimp,assimp,$(ASSIMP_VERSION))

Best regards
Jörg Krause
Peter Seiderer Dec. 6, 2015, 8:49 a.m. UTC | #2
Hello Jörg,

On Sat, 05 Dec 2015 01:45:15 +0100, Jörg Krause <joerg.krause@embedded.rocks> wrote:

> Dear Peter Seiderer,
> 
> On Sa, 2015-12-05 at 00:34 +0100, Peter Seiderer wrote:
> > Signed-off-by: Peter Seiderer <ps.report@gmx.net>
> > ----
> > Any nicer way to define _SOURCE and _SITE to get assimp-3.2.tar.gz
> > instead of v3.2.tar.gz file in the local download diretory?
> 
> Why not use the github helper?
> 
> ASSIMP_VERSION = v3.2
> ASSIMP_SITE = $(call github,assimp,assimp,$(ASSIMP_VERSION))

Yes, your are right (seems I messed it up when I tried it first...),
updated patch following soon...

Regards,
Peter

> 
> Best regards
> Jörg Krause
diff mbox

Patch

diff --git a/package/Config.in b/package/Config.in
index bdc3063..b8e13e0 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -796,6 +796,7 @@  menu "Filesystem"
 endmenu
 
 menu "Graphics"
+	source "package/assimp/Config.in"
 	source "package/atk/Config.in"
 	source "package/bullet/Config.in"
 	source "package/cairo/Config.in"
diff --git a/package/assimp/Config.in b/package/assimp/Config.in
new file mode 100644
index 0000000..183e73e
--- /dev/null
+++ b/package/assimp/Config.in
@@ -0,0 +1,9 @@ 
+config BR2_PACKAGE_ASSIMP
+	bool "assimp"
+	help
+	  Open Asset Import Library (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.
+
+	  http://www.assimp.org
diff --git a/package/assimp/assimp.mk b/package/assimp/assimp.mk
new file mode 100644
index 0000000..9562327
--- /dev/null
+++ b/package/assimp/assimp.mk
@@ -0,0 +1,16 @@ 
+################################################################################
+#
+# assimp
+#
+################################################################################
+
+ASSIMP_VERSION = 3.2
+ASSIMP_SOURCE = v$(ASSIMP_VERSION).tar.gz
+ASSIMP_SITE = https://github.com/assimp/assimp/archive
+ASSIMP_LICENSE = BSD-3c
+ASSIMP_LICENSE_FILES = LICENSE
+ASSIMP_INSTALL_STAGING = YES
+
+ASSIMP_CONF_OPTS += -DASSIMP_BUILD_TESTS=OFF
+
+$(eval $(cmake-package))