blob: d47057fa8c2a45cb423e0852d025acf691d72c04 (
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
|
# This file is part of MXE. See LICENSE.md for licensing information.
PKG := librosco
$(PKG)_WEBSITE := https://github.com/colinbourassa/librosco/
$(PKG)_IGNORE :=
$(PKG)_VERSION := 0.1.11
$(PKG)_CHECKSUM := 48bb2d07c2575f39bdb6cf022889f20bd855eb9100bb19d4e2536a771198e3a4
$(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)
$(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.gz
$(PKG)_URL := https://github.com/colinbourassa/librosco/archive/$($(PKG)_VERSION).tar.gz
$(PKG)_DEPS := gcc
define $(PKG)_UPDATE
$(call MXE_GET_GITHUB_TAGS, colinbourassa/librosco)
endef
define $(PKG)_BUILD
mkdir '$(1)/build'
cd '$(1)/build' && '$(TARGET)-cmake' .. \
-DENABLE_DOC_INSTALL=off \
-DENABLE_TESTAPP_INSTALL=off
$(MAKE) -C '$(1)/build' -j '$(JOBS)'
$(MAKE) -C '$(1)/build' -j 1 install
'$(TARGET)-gcc' $(1)/src/readmems.c \
-o '$(PREFIX)/$(TARGET)/bin/test-librosco.exe' \
`'$(TARGET)-pkg-config' --libs librosco`
endef
|