blob: 25f06a46965e3be1c8e31025536161f2e89cc13c (
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
32
|
# This file is part of MXE.
# See index.html for further information.
PKG := oce
$(PKG)_IGNORE :=
$(PKG)_VERSION := 0.16
$(PKG)_CHECKSUM := c3882249e1afc3c6a170e8e31a45e25d4be3e3b2
$(PKG)_SUBDIR := $(PKG)-OCE-$($(PKG)_VERSION)
$(PKG)_FILE := $($(PKG)_SUBDIR).tar.gz
$(PKG)_URL := https://codeload.github.com/tpaviot/$(PKG)/tar.gz/OCE-$($(PKG)_VERSION)
$(PKG)_DEPS := gcc freetype
define $(PKG)_UPDATE
echo 'TODO: write update script for oce' >&2;
echo $(oce_VERSION)
endef
define $(PKG)_BUILD
cd '$(1)' && cmake . \
-DCMAKE_TOOLCHAIN_FILE='$(CMAKE_TOOLCHAIN_FILE)' \
-DOCE_BUILD_SHARED_LIB=$(if $(BUILD_STATIC),FALSE,TRUE) \
-DOCE_INSTALL_PREFIX=$(PREFIX)/$(TARGET) \
-DOCE_INSTALL_BIN_DIR=$(PREFIX)/$(TARGET)/bin \
-DOCE_INSTALL_LIB_DIR=$(PREFIX)/$(TARGET)/lib \
-DOCE_INSTALL_CMAKE_DATA_DIR=$(PREFIX)/$(TARGET)/lib/cmake/OCE \
-DFREETYPE_INCLUDE_DIRS=$(PREFIX)/$(TARGET)/include/freetype2
$(MAKE) -C '$(1)' -j '$(JOBS)' install VERBOSE=1
cd '$(1)/examples/find_package_oce' && cmake . -DCMAKE_TOOLCHAIN_FILE='$(CMAKE_TOOLCHAIN_FILE)'
$(MAKE) -C '$(1)/examples/find_package_oce'
endef
|