blob: 36c4fb6d9a51d19570b605561914ca9e731f1d4b (
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
33
|
# This file is part of MXE. See LICENSE.md for licensing information.
PKG := itpp
$(PKG)_WEBSITE := https://itpp.sourceforge.io/
$(PKG)_IGNORE :=
$(PKG)_VERSION := 4.3.1
$(PKG)_CHECKSUM := 50717621c5dfb5ed22f8492f8af32b17776e6e06641dfe3a3a8f82c8d353b877
$(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)
$(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.bz2
$(PKG)_URL := https://$(SOURCEFORGE_MIRROR)/project/$(PKG)/$(PKG)/$($(PKG)_VERSION)/$($(PKG)_FILE)
$(PKG)_DEPS := cc fftw openblas
define $(PKG)_UPDATE
$(WGET) -q -O- 'https://sourceforge.net/projects/itpp/files/itpp/' | \
$(SED) -n 's,.*/\([0-9][^"]*\)/".*,\1,p' | \
head -1
endef
define $(PKG)_BUILD
cd '$(BUILD_DIR)' && '$(TARGET)-cmake' '$(SOURCE_DIR)' \
-DITPP_SHARED_LIB=$(CMAKE_SHARED_BOOL) \
-DHTML_DOCS=OFF \
-DBLAS_LIBRARIES="`'$(TARGET)-pkg-config' --libs openblas`" \
-DLAPACK_LIBRARIES="`'$(TARGET)-pkg-config' --libs openblas`"
$(MAKE) -C '$(BUILD_DIR)' -j $(JOBS)
$(MAKE) -C '$(BUILD_DIR)' -j 1 install
# compile test
'$(TARGET)-g++' \
-W -Wall -pedantic \
'$(SOURCE_DIR)/tests/array_test.cpp' -o '$(PREFIX)/$(TARGET)/bin/test-$(PKG).exe' \
`'$(TARGET)-pkg-config' $(PKG) --cflags --libs`
endef
|