Initial Commit
- initial default booting image
This commit is contained in:
6
package/jasper/Config.in
Normal file
6
package/jasper/Config.in
Normal file
@@ -0,0 +1,6 @@
|
||||
config BR2_PACKAGE_JASPER
|
||||
bool "jasper"
|
||||
help
|
||||
JPEG-2000 decoder
|
||||
|
||||
http://www.ece.uvic.ca/~mdadams/jasper/
|
||||
4
package/jasper/jasper.hash
Normal file
4
package/jasper/jasper.hash
Normal file
@@ -0,0 +1,4 @@
|
||||
# From https://github.com/jasper-software/jasper/releases/tag/version-4.2.9
|
||||
sha256 f71cf643937a5fcaedcfeb30a22ba406912948ad4413148214df280afc425454 jasper-4.2.9.tar.gz
|
||||
# Locally calculated
|
||||
sha256 4ad1bb42aff888c4403d792e6e2c5f1716d6c279fea70b296333c9d577d30b81 LICENSE.txt
|
||||
56
package/jasper/jasper.mk
Normal file
56
package/jasper/jasper.mk
Normal file
@@ -0,0 +1,56 @@
|
||||
################################################################################
|
||||
#
|
||||
# jasper
|
||||
#
|
||||
################################################################################
|
||||
|
||||
JASPER_VERSION = 4.2.9
|
||||
JASPER_SITE = https://github.com/jasper-software/jasper/releases/download/version-$(JASPER_VERSION)
|
||||
JASPER_INSTALL_STAGING = YES
|
||||
JASPER_LICENSE = JasPer-2.0
|
||||
JASPER_LICENSE_FILES = LICENSE.txt
|
||||
JASPER_CPE_ID_VALID = YES
|
||||
JASPER_SUPPORTS_IN_SOURCE_BUILD = NO
|
||||
JASPER_CONF_OPTS = \
|
||||
-DJAS_ENABLE_DOC=OFF \
|
||||
-DJAS_ENABLE_PROGRAMS=OFF
|
||||
|
||||
# Despite using JASPER_SUPPORTS_IN_SOURCE_BUILD = NO jasper detects an
|
||||
# in-source-build because a subdirectory inside the source directory
|
||||
# is used so we need to force the build.
|
||||
JASPER_CONF_OPTS += \
|
||||
-DALLOW_IN_SOURCE_BUILD=ON
|
||||
|
||||
# When cross-compiling, we have to feed in the C++ standard to use,
|
||||
# upstream doesn't want to auto-detect it:
|
||||
# https://github.com/jasper-software/jasper/issues/358
|
||||
JASPER_STDC_VERSION="`echo __STDC_VERSION__ | $(TARGET_CROSS)cpp -E -P -`"
|
||||
JASPER_CONF_OPTS += \
|
||||
-DJAS_STDC_VERSION=$(JASPER_STDC_VERSION)
|
||||
|
||||
ifeq ($(BR2_STATIC_LIBS),y)
|
||||
JASPER_CONF_OPTS += -DJAS_ENABLE_SHARED=OFF
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_TOOLCHAIN_HAS_THREADS),y)
|
||||
JASPER_CONF_OPTS += -DJAS_ENABLE_MULTITHREADING_SUPPORT=ON
|
||||
else
|
||||
JASPER_CONF_OPTS += -DJAS_ENABLE_MULTITHREADING_SUPPORT=OFF
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_JPEG),y)
|
||||
JASPER_CONF_OPTS += -DJAS_ENABLE_LIBJPEG=ON
|
||||
JASPER_DEPENDENCIES += jpeg
|
||||
else
|
||||
JASPER_CONF_OPTS += -DJAS_ENABLE_LIBJPEG=OFF
|
||||
endif
|
||||
|
||||
JASPER_CFLAGS = $(TARGET_CFLAGS)
|
||||
|
||||
ifeq ($(BR2_TOOLCHAIN_HAS_GCC_BUG_85180),y)
|
||||
JASPER_CFLAGS += -O0
|
||||
endif
|
||||
|
||||
JASPER_CONF_OPTS += -DCMAKE_C_FLAGS="$(JASPER_CFLAGS)"
|
||||
|
||||
$(eval $(cmake-package))
|
||||
Reference in New Issue
Block a user