summaryrefslogtreecommitdiff
path: root/recipes/openjpeg.recipe
diff options
context:
space:
mode:
authorEdward Hervey <edward@centricular.com>2018-02-21 16:10:08 +0100
committerEdward Hervey <bilboed@bilboed.com>2018-02-21 16:10:08 +0100
commit2c16963ce3cad633a97de58ccbf0434c261ded80 (patch)
tree023f8c81e870db3065b0c8e0624ba5180437ea76 /recipes/openjpeg.recipe
parent59f5427f8cec84f0505b8e05a86b6a6bc74f8e40 (diff)
recipes: Upgrade openjpeg to 2.3.0
Diffstat (limited to 'recipes/openjpeg.recipe')
-rw-r--r--recipes/openjpeg.recipe21
1 files changed, 8 insertions, 13 deletions
diff --git a/recipes/openjpeg.recipe b/recipes/openjpeg.recipe
index adf53a02..3e80fa68 100644
--- a/recipes/openjpeg.recipe
+++ b/recipes/openjpeg.recipe
@@ -1,30 +1,25 @@
+ # -*- Mode: Python -*- vi:si:et:sw=4:sts=4:ts=4:syntax=python
+
import shutil
from cerbero.tools.libtool import LibtoolLibrary
class Recipe(recipe.Recipe):
- version = '2.1.0'
+ version = '2.3.0'
name = 'openjpeg'
licenses = [License.BSD]
stype = SourceType.TARBALL
btype = BuildType.CMAKE
- url = 'http://downloads.sourceforge.net/project/openjpeg.mirror/2.1.0/openjpeg-2.1.0.tar.gz'
+ url = 'https://github.com/uclouvain/openjpeg/archive/v%(version)s.tar.gz'
configure_options = ' -DBUILD_CODEC:bool=off -DBUILD_PKGCONFIG_FILES:bool=on '
- patches = ['openjpeg/0001-Build-shared-and-static-library.patch',
- 'openjpeg/0002-Set-INSTALL_NAME_DIR.patch']
+ patches = ['openjpeg/0002-Set-INSTALL_NAME_DIR.patch']
files_libs = ['libopenjp2']
- files_devel = ['include/openjpeg-2.1/openjpeg.h',
- 'include/openjpeg-2.1/opj_stdint.h',
- 'include/openjpeg-2.1/opj_config.h',
+ files_devel = ['include/openjpeg-2.3/openjpeg.h',
+ 'include/openjpeg-2.3/opj_stdint.h',
+ 'include/openjpeg-2.3/opj_config.h',
'lib/pkgconfig/libopenjp2.pc']
- def install(self):
- super(recipe.Recipe, self).install()
- shutil.move(
- os.path.join(self.config.prefix, 'lib', 'libopenjp2_static.a'),
- os.path.join(self.config.prefix, 'lib', 'libopenjp2.a'))
-
def post_install(self):
deps = ['-lm']
libtool_la = LibtoolLibrary('openjp2', 2, 1, None, self.config.libdir,