Mercurial > mxe-octave
comparison src/opencv.mk @ 6478:8c1e72cd80a5
opencv: update to v4.6.0
* src/opencv.mk: update to v4.6.0, use github
* src/opencv-1-fixes.patch: remove file
* dist-files.mk: remove ref to deleted file
author | John Donoghue <john.donoghue@ieee.org> |
---|---|
date | Fri, 28 Oct 2022 15:10:31 -0400 |
parents | b19fb3ed330c |
children | 4b8764444acb |
comparison
equal
deleted
inserted
replaced
6477:d8cda0e30e45 | 6478:8c1e72cd80a5 |
---|---|
1 # This file is part of MXE. See LICENSE.md for licensing information. | 1 # This file is part of MXE. See LICENSE.md for licensing information. |
2 | 2 |
3 PKG := opencv | 3 PKG := opencv |
4 $(PKG)_IGNORE := | 4 $(PKG)_IGNORE := |
5 $(PKG)_VERSION := 3.4.3 | 5 $(PKG)_VERSION := 4.6.0 |
6 $(PKG)_CHECKSUM := d700348b3251552ccf034e4d7dd16080e4086840 | 6 $(PKG)_CHECKSUM := 34394c7e2fc152eee1ce73e326bc19a99879c77c |
7 $(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION) | 7 $(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION) |
8 $(PKG)_FILE := opencv-$($(PKG)_VERSION).zip | 8 $(PKG)_FILE := $($(PKG)_SUBDIR).tar.gz |
9 $(PKG)_URL := https://$(SOURCEFORGE_MIRROR)/project/$(PKG)library/$(PKG)-unix/$($(PKG)_VERSION)/$($(PKG)_FILE) | 9 $(PKG)_URL := https://github.com/opencv/$(PKG)/archive/$($(PKG)_VERSION).tar.gz |
10 $(PKG)_URL_2 := https://distfiles.macports.org/opencv/$($(PKG)_FILE) | |
11 $(PKG)_DEPS := eigen ffmpeg jasper jpeg libpng \ | 10 $(PKG)_DEPS := eigen ffmpeg jasper jpeg libpng \ |
12 openblas openexr tiff xz zlib | 11 openblas openexr tiff xz zlib |
13 | 12 |
14 define $(PKG)_UPDATE | 13 define $(PKG)_UPDATE |
15 $(WGET) -q -O- 'https://sourceforge.net/projects/opencvlibrary/files/opencv-unix/' | \ | 14 $(WGET) -q -O- 'https://github.com/opencv/opencv/tags' | \ |
16 $(SED) -n 's,.*/projects/.*/\([0-9][^"]*\)/".*,\1,p' | \ | 15 $(SED) -n 's|.*releases/tag/\([^"]*\).*|\1|p' | $(SORT) -V | \ |
17 head -1 | 16 tail -1 |
18 endef | 17 endef |
19 | 18 |
20 # -DCMAKE_CXX_STANDARD=98 required for non-posix gcc7 build | 19 # -DCMAKE_CXX_STANDARD=98 required for non-posix gcc7 build |
21 | 20 |
22 define $(PKG)_BUILD | 21 define $(PKG)_BUILD |