2015-12-17 23:18:18 +01:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# assimp
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2020-04-07 23:12:38 +02:00
|
|
|
ASSIMP_VERSION = 5.0.1
|
package: remove 'v' prefix from github-fetched packages
On Github, a large number of projects name their tag vXYZ (i.e v3.0,
v0.1, etc.). In some packages we do:
<pkg>_VERSION = v0.3
<pkg>_SITE = $(call github foo,bar,$(<pkg>_VERSION))
And in some other packages we do:
<pkg>_VERSION = 0.3
<pkg>_SITE = $(call github foo,bar,v$(<pkg>_VERSION))
I.e in one case we consider the version to be v0.3, in the other case
we consider 0.3 to be the version.
The problem with v0.3 is that when used in conjunction with
release-monitoring.org, it doesn't work very well, because
release-monitoring.org has the concept of "version prefix" and using
that they drop the "v" prefix for the version.
Therefore, a number of packages in Buildroot have a version that
doesn't match with release-monitoring.org because Buildroot has 'v0.3'
and release-monitoring.org has '0.3'.
Since really the version number of 0.3, is makes sense to update our
packages to drop this 'v'.
This commit only addresses the (common) case of github packages where
the prefix is simply 'v'. Other cases will be handled by separate
commits. Also, there are a few cases that couldn't be handled
mechanically that aren't covered by this commit.
Signed-off-by: Victor Huesca <victor.huesca@bootlin.com>
[Arnout: don't change flatbuffers, json-for-modern-cpp, libpagekite,
python-scapy3k, softether]
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
2019-06-12 08:42:06 +02:00
|
|
|
ASSIMP_SITE = $(call github,assimp,assimp,v$(ASSIMP_VERSION))
|
2017-03-30 15:43:38 +02:00
|
|
|
ASSIMP_LICENSE = BSD-3-Clause
|
2015-12-17 23:18:18 +01:00
|
|
|
ASSIMP_LICENSE_FILES = LICENSE
|
2021-01-28 21:04:33 +01:00
|
|
|
ASSIMP_DEPENDENCIES = zlib
|
2015-12-17 23:18:18 +01:00
|
|
|
ASSIMP_INSTALL_STAGING = YES
|
|
|
|
|
2020-08-25 23:01:41 +02:00
|
|
|
# relocation truncated to fit: R_68K_GOT16O. We also need to disable
|
|
|
|
# optimizations to not run into "Error: value -43420 out of range"
|
|
|
|
# assembler issues.
|
2016-07-31 20:07:43 +02:00
|
|
|
ifeq ($(BR2_m68k),y)
|
2020-08-25 23:01:41 +02:00
|
|
|
ASSIMP_CXXFLAGS += -mxgot -O0
|
2016-07-31 20:07:43 +02:00
|
|
|
endif
|
|
|
|
|
2020-08-25 23:01:42 +02:00
|
|
|
# just like m68k coldfire, mips64 also has some limitations on the GOT
|
|
|
|
# size for large libraries, which can be overcome by passing
|
|
|
|
# -mxgot. Solves "relocation truncated to fit: R_MIPS_CALL16" issues.
|
|
|
|
ifeq ($(BR2_mips64)$(BR2_mips64el),y)
|
|
|
|
ASSIMP_CXXFLAGS += -mxgot
|
|
|
|
endif
|
|
|
|
|
2017-02-26 23:38:26 +01:00
|
|
|
# workaround SuperH compiler failure when static linking (i.e -fPIC is
|
|
|
|
# not passed) in gcc versions 5.x or older. The -Os optimization level
|
|
|
|
# causes a "unable to find a register to spill in class
|
2019-05-07 22:35:21 +02:00
|
|
|
# 'GENERAL_REGS'" error. -O2 works fine.
|
2017-02-27 22:53:24 +01:00
|
|
|
ifeq ($(BR2_sh):$(BR2_STATIC_LIBS):$(BR2_TOOLCHAIN_GCC_AT_LEAST_6),y:y:)
|
2017-02-26 23:38:26 +01:00
|
|
|
ASSIMP_CXXFLAGS += -O2
|
|
|
|
endif
|
|
|
|
|
2019-05-22 15:59:02 +02:00
|
|
|
ifeq ($(BR2_TOOLCHAIN_HAS_GCC_BUG_85180),y)
|
|
|
|
ASSIMP_CXXFLAGS += -O0
|
|
|
|
endif
|
|
|
|
|
2021-01-28 21:04:33 +01:00
|
|
|
ASSIMP_CONF_OPTS += -DASSIMP_BUILD_TESTS=OFF \
|
2016-10-15 11:44:31 +02:00
|
|
|
-DCMAKE_CXX_FLAGS="$(TARGET_CXXFLAGS) $(ASSIMP_CXXFLAGS)"
|
2015-12-17 23:18:18 +01:00
|
|
|
|
|
|
|
$(eval $(cmake-package))
|