blob: 83a549a1e731ee5fb229b49746e2c325f05d6cc4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
# This file is part of MXE.
# See index.html for further information.
PKG := vidstab
$(PKG)_IGNORE :=
$(PKG)_VERSION := 0.98b
$(PKG)_CHECKSUM := 1030a1baa9b2cba844758a6cd8dd5d5fc23f9cd9
$(PKG)_SUBDIR := vid.stab-release-$($(PKG)_VERSION)
$(PKG)_FILE := vid.stab-$($(PKG)_VERSION).tar.gz
$(PKG)_URL := https://github.com/georgmartius/vid.stab/archive/release-$($(PKG)_VERSION).tar.gz
$(PKG)_DEPS := gcc
define $(PKG)_UPDATE
$(WGET) -q -O- 'https://github.com/georgmartius/vid.stab/tags' | \
grep '<a href="/georgmartius/vid.stab/archive/' | \
$(SED) -n 's,.*href="/georgmartius/vid.stab/archive/release-\([0-9][^"]*\)\.tar.*,\1,p' | \
head -1
endef
define $(PKG)_BUILD
mkdir '$(1)/build'
cd '$(1)/build' && cmake .. \
-DCMAKE_TOOLCHAIN_FILE='$(CMAKE_TOOLCHAIN_FILE)'
$(MAKE) -C '$(1)/build' -j $(JOBS)
$(MAKE) -C '$(1)/build' -j 1 install
'$(TARGET)-gcc' \
-W -Wall -Werror -pedantic \
'$(2).c' -o '$(PREFIX)/$(TARGET)/bin/test-vidstab.exe' \
`'$(TARGET)-pkg-config' --static --cflags --libs vidstab`
endef
|