2014-01-13 09:20:36 +01:00
|
|
|
################################################################################
|
2014-01-12 18:53:15 +01:00
|
|
|
#
|
|
|
|
# jasper
|
|
|
|
#
|
2014-01-13 09:20:36 +01:00
|
|
|
################################################################################
|
2014-01-12 18:53:15 +01:00
|
|
|
|
2019-11-27 10:40:55 +01:00
|
|
|
JASPER_VERSION = 2.0.16
|
package: remove non-conventional prefix/suffix from github-fetched packages
On Github, a large number of projects name their tag
<some-prefix>-0.3-<some-suffix> (i.e release-3.0, poco-0.1-release,
etc.). In fact majority of the cased adressed in this commit concerns
prefixes.
In most packages, we encode those prefix/suffix in the <pkg>_VERSION
variable.
The problem with this approach 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/suffix" and
using that they drop the prefix/suffix to really get the version. For
example on https://release-monitoring.org/project/5418/ the latest
release of "poco" is "1.8.1", not "poco-1.8.1-release".
Therefore, a number of packages in Buildroot have a version that
doesn't match with release-monitoring.org.
Since really the version number of 1.8.1, is makes sense to update our
packages to drop these prefixes/suffixes.
This commit addreses the case of github-fetched packages with
non-conventional prefixes/suffixes.
Note that these changes modify the name of the files stored in DL_DIR,
which means that this will force a re-download of those package source
code for all users, and requires a change to their .hash file.
Signed-off-by: Victor Huesca <victor.huesca@bootlin.com>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
2019-06-12 08:42:08 +02:00
|
|
|
JASPER_SITE = $(call github,mdadams,jasper,version-$(JASPER_VERSION))
|
2014-01-12 18:53:15 +01:00
|
|
|
JASPER_INSTALL_STAGING = YES
|
2018-10-09 22:16:51 +02:00
|
|
|
JASPER_LICENSE = JasPer-2.0
|
2014-01-30 09:48:11 +01:00
|
|
|
JASPER_LICENSE_FILES = LICENSE
|
2017-01-12 21:47:44 +01:00
|
|
|
JASPER_SUPPORTS_IN_SOURCE_BUILD = NO
|
2017-01-14 19:08:29 +01:00
|
|
|
JASPER_CONF_OPTS = \
|
|
|
|
-DCMAKE_DISABLE_FIND_PACKAGE_DOXYGEN=TRUE \
|
|
|
|
-DCMAKE_DISABLE_FIND_PACKAGE_LATEX=TRUE
|
2016-11-29 12:23:03 +01:00
|
|
|
|
2017-01-12 21:47:44 +01:00
|
|
|
ifeq ($(BR2_STATIC_LIBS),y)
|
|
|
|
JASPER_CONF_OPTS += -DJAS_ENABLE_SHARED=OFF
|
|
|
|
endif
|
2016-11-29 12:23:03 +01:00
|
|
|
|
2017-01-12 21:47:44 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_JPEG),y)
|
|
|
|
JASPER_CONF_OPTS += -DJAS_ENABLE_LIBJPEG=ON
|
|
|
|
JASPER_DEPENDENCIES += jpeg
|
|
|
|
else
|
|
|
|
JASPER_CONF_OPTS += -DJAS_ENABLE_LIBJPEG=OFF
|
|
|
|
endif
|
2014-01-12 18:53:15 +01:00
|
|
|
|
2019-05-21 15:39:28 +02:00
|
|
|
JASPER_CFLAGS = $(TARGET_CFLAGS)
|
|
|
|
|
|
|
|
ifeq ($(BR2_TOOLCHAIN_HAS_GCC_BUG_85180),y)
|
|
|
|
JASPER_CFLAGS += -O0
|
|
|
|
endif
|
|
|
|
|
|
|
|
JASPER_CONF_OPTS += -DCMAKE_C_FLAGS="$(JASPER_CFLAGS)"
|
|
|
|
|
2017-01-12 21:47:44 +01:00
|
|
|
$(eval $(cmake-package))
|