File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44#
55# ###############################################################################
66
7- OPENJPEG_VERSION = 2.1.2
7+ OPENJPEG_VER_MAJOR = 2
8+ OPENJPEG_VER_MINOR = 1
9+ OPENJPEG_VER_PATCH = 2
10+ OPENJPEG_VERSION = $(OPENJPEG_VER_MAJOR ) .$(OPENJPEG_VER_MINOR ) .$(OPENJPEG_VER_PATCH )
811OPENJPEG_SITE = $(call github,uclouvain,openjpeg,v$(OPENJPEG_VERSION ) )
912OPENJPEG_LICENSE = BSD-2c
1013OPENJPEG_LICENSE_FILES = LICENSE
@@ -15,4 +18,12 @@ OPENJPEG_DEPENDENCIES += $(if $(BR2_PACKAGE_LIBPNG),libpng)
1518OPENJPEG_DEPENDENCIES += $(if $(BR2_PACKAGE_TIFF ) ,tiff)
1619OPENJPEG_DEPENDENCIES += $(if $(BR2_PACKAGE_LCMS2 ) ,lcms2)
1720
21+ # This is done here only because NF 5.2.2 expects this to be in openjpeg-$(VERSION_MAJOR)
22+ # (where by default it lands in openjpeg-$(VERSION_MAJOR).$(VERSION_MINOR))
23+ define OPENJPEG_MAKE_LINK_FOR_NF
24+ ln -s $(STAGING_DIR ) /usr/include/openjpeg-$(OPENJPEG_VER_MAJOR ) .$(OPENJPEG_VER_MINOR ) $(STAGING_DIR ) /usr/include/openjpeg-$(OPENJPEG_VER_MAJOR )
25+ endef
26+
27+ OPENJPEG_POST_INSTALL_STAGING_HOOKS += OPENJPEG_MAKE_LINK_FOR_NF
28+
1829$(eval $(cmake-package))
You can’t perform that action at this time.
0 commit comments