Commit de37944f authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Contribs: update openjpeg to 2.3.0

And switch to CMake
parent aacce0f6
25e31ae377626cc3e28f1faad5a5762d031af47a598f571c96dc29635a69026d299ff9c299a44cdfce3d1c94f4a301559bc485847f932748b77c99c314d07a3e openjpeg-version.1.5.2.tar.gz
0a9d427be4a820b1d759fca4b50e293721b45fe4885aa61ca1ae09e099f75ed93520448090c780d62f51076d575cc03618cd6d5181bdb6b34e4fc07b4cfdd568 openjpeg-v2.3.0.tar.gz
# jpeg
OPENJPEG_VERSION := version.1.5.2
OPENJPEG_URL := https://github.com/uclouvain/openjpeg/archive/$(OPENJPEG_VERSION).tar.gz
OPENJPEG_VERSION := 2.3.0
OPENJPEG_URL := https://github.com/uclouvain/openjpeg/archive/v$(OPENJPEG_VERSION).tar.gz
$(TARBALLS)/openjpeg-$(OPENJPEG_VERSION).tar.gz:
$(call download_pkg,$(OPENJPEG_URL),openjpeg)
$(TARBALLS)/openjpeg-v$(OPENJPEG_VERSION).tar.gz:
$(call download_pkg,v$(OPENJPEG_URL),openjpeg)
.sum-openjpeg: openjpeg-$(OPENJPEG_VERSION).tar.gz
.sum-openjpeg: openjpeg-v$(OPENJPEG_VERSION).tar.gz
openjpeg: openjpeg-$(OPENJPEG_VERSION).tar.gz .sum-openjpeg
openjpeg: openjpeg-v$(OPENJPEG_VERSION).tar.gz .sum-openjpeg
$(UNPACK)
mv openjpeg-$(OPENJPEG_VERSION) openjpeg-v$(OPENJPEG_VERSION)
ifdef HAVE_VISUALSTUDIO
$(APPLY) $(SRC)/openjpeg/msvc.patch
# $(APPLY) $(SRC)/openjpeg/msvc.patch
endif
$(APPLY) $(SRC)/openjpeg/restrict.patch
$(UPDATE_AUTOCONFIG)
# $(APPLY) $(SRC)/openjpeg/restrict.patch
$(call pkg_static,"./src/lib/openjp2/libopenjp2.pc.cmake.in")
$(MOVE)
.openjpeg: openjpeg
$(RECONF)
cd $< && $(HOSTVARS) CFLAGS="$(CFLAGS) -DOPJ_STATIC" ./configure --enable-png=no --enable-tiff=no $(HOSTCONF)
cd $< && $(MAKE) -C libopenjpeg -j1 install
cd $< && ../../../contrib/src/pkg-static.sh libopenjpeg1.pc
cd $< && $(MAKE) install-data
cd $< && $(HOSTVARS) $(CMAKE) \
-DBUILD_SHARED_LIBS=OFF -DBUILD_PKGCONFIG_FILES=ON \
.
cd $< && $(MAKE) install
touch $@
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment