summaryrefslogtreecommitdiff
path: root/recipes
diff options
context:
space:
mode:
authorL. E. Segovia <amy@centricular.com>2024-04-02 10:45:05 -0300
committerTim-Philipp Müller <tim@centricular.com>2024-04-03 00:35:22 +0100
commit49dd29cc920438e34ad151c09c18b72a41f97a50 (patch)
tree85c35bd070ae8beb6da45d5a660c77b7eaca6c9b /recipes
parent5a2aa0aafbe32ac2956cc138132b005d5bacead8 (diff)
openjpeg: Update to 2.5.2
Fixes #474 Part-of: <https://gitlab.freedesktop.org/gstreamer/cerbero/-/merge_requests/1440>
Diffstat (limited to 'recipes')
-rw-r--r--recipes/openjpeg.recipe17
1 files changed, 7 insertions, 10 deletions
diff --git a/recipes/openjpeg.recipe b/recipes/openjpeg.recipe
index f597ab93..ef5b103f 100644
--- a/recipes/openjpeg.recipe
+++ b/recipes/openjpeg.recipe
@@ -5,33 +5,30 @@ import shutil
from cerbero.tools.libtool import LibtoolLibrary
class Recipe(recipe.Recipe):
- version = '2.3.1'
+ version = '2.5.2'
name = 'openjpeg'
licenses = [{License.BSD: ['LICENSE']}]
stype = SourceType.TARBALL
btype = BuildType.CMAKE
cmake_generator = 'ninja'
can_msvc = True
- url = 'https://github.com/uclouvain/openjpeg/archive/v%(version)s.tar.gz'
- tarball_checksum = '63f5a4713ecafc86de51bfad89cc07bb788e9bba24ebbf0c4ca637621aadb6a9'
- configure_options = ' -DBUILD_CODEC:bool=off -DBUILD_PKGCONFIG_FILES:bool=on '
+ url = 'https://github.com/uclouvain/openjpeg/archive/refs/tags/v%(version)s.tar.gz'
+ tarball_checksum = '90e3896fed910c376aaf79cdd98bdfdaf98c6472efd8e1debf0a854938cbda6a'
+ configure_options = ' -DBUILD_CODEC:bool=off '
files_libs = ['libopenjp2']
- files_devel = ['include/openjpeg-2.3/openjpeg.h',
- 'include/openjpeg-2.3/opj_stdint.h',
- 'include/openjpeg-2.3/opj_config.h',
+ files_devel = ['include/openjpeg-2.5/',
'%(libdir)s/pkgconfig/libopenjp2.pc']
library_type = LibraryType.BOTH
def prepare(self):
- # This project uses OPENJPEG_INSTALL_LIB_DIR instead of CMAKE_INSTALL_LIBDIR
- self.configure_tpl = self.configure_tpl.replace('CMAKE_INSTALL_LIBDIR', 'OPENJPEG_INSTALL_LIB_DIR')
if self.config.target_platform in [Platform.WINDOWS]:
self.library_type = LibraryType.SHARED
def post_install(self):
deps = ['-lm']
- libtool_la = LibtoolLibrary('openjp2', 2, 1, None, self.config.libdir,
+ # https://github.com/uclouvain/openjpeg/blob/v2.5.2/CMakeLists.txt#L56
+ libtool_la = LibtoolLibrary('openjp2', 7, None, None, self.config.libdir,
self.config.target_platform, deps)
libtool_la.save()
super().post_install()