blob: 7b22098ad1cde2e0c9022f78df49fde708a30f9a (
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 := libical
$(PKG)_VERSION := 1.0.1
$(PKG)_CHECKSUM := 904b2c2b5c2b30f0a508f9d56eaf316dd42fc923
$(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)
$(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.gz
$(PKG)_URL := https://github.com/$(PKG)/$(PKG)/releases/download/v$($(PKG)_VERSION)//$($(PKG)_FILE)
$(PKG)_DEPS := gcc icu4c
define $(PKG)_UPDATE
echo 'TODO: Updates for package libical need to be written.' >&2;
echo $(libical_VERSION)
endef
define $(PKG)_BUILD
cd '$(1)' && mkdir build
cd '$(1)/build' && cmake .. \
-DCMAKE_TOOLCHAIN_FILE='$(CMAKE_TOOLCHAIN_FILE)' \
-DUSE_BUILTIN_TZDATA=true \
-DSTATIC_ONLY=$(if $(BUILD_STATIC),true,false) \
-DSHARED_ONLY=$(if $(BUILD_STATIC),false,true)
$(MAKE) -C '$(1)/build' -j '$(JOBS)'
$(MAKE) -C '$(1)/build' -j 1 install
'$(TARGET)-gcc' \
-W -Wall -Werror -ansi -pedantic \
'$(2).c' -o '$(PREFIX)/$(TARGET)/bin/test-libical.exe' \
`'$(TARGET)-pkg-config' libical --cflags --libs`
endef
|