44 lines · 1.6 KB · Text
RawDownload
# This file is part of MXE. See LICENSE.md for licensing information. PKG             := armadillo$(PKG)_WEBSITE  := https://arma.sourceforge.io/$(PKG)_DESCR    := Armadillo C++ linear algebra library$(PKG)_IGNORE   :=$(PKG)_VERSION  := 12.8.4$(PKG)_CHECKSUM := 558fe526b990a1663678eff3af6ec93f79ee128c81a4c8aef27ad328fae61138$(PKG)_SUBDIR   := $(PKG)-$($(PKG)_VERSION)$(PKG)_FILE     := $(PKG)-$($(PKG)_VERSION).tar.xz$(PKG)_URL      := https://$(SOURCEFORGE_MIRROR)/project/arma/$($(PKG)_FILE)$(PKG)_DEPS     := cc hdf5 openblas lapack define $(PKG)_UPDATE    $(WGET) -q -O- 'https://sourceforge.net/projects/arma/files/' | \    $(SED) -n 's,.*/armadillo-\([0-9.]*\)[.]tar.*".*,\1,p' | \    head -1endef define $(PKG)_BUILD    # build and install the library    cd '$(BUILD_DIR)' && $(TARGET)-cmake '$(SOURCE_DIR)' \        -DARMA_HDF5_INCLUDE_DIR=$(PREFIX)/$(TARGET)/include \        -DDETECT_HDF5=OFF \        -DARMA_USE_WRAPPER=ON \        -DBUILD_SMOKE_TEST=OFF    $(MAKE) -C '$(BUILD_DIR)' -j '$(JOBS)'    $(MAKE) -C '$(BUILD_DIR)' -j 1 install VERBOSE=1     # create pkg-config file    $(INSTALL) -d '$(PREFIX)/$(TARGET)/lib/pkgconfig'    (echo 'Name: $(PKG)'; \     echo 'Version: $($(PKG)_VERSION)'; \     echo 'Description: $($(PKG)_DESCR)'; \     echo 'Requires: hdf5 openblas'; \     echo 'Libs: -larmadillo'; \    ) > '$(PREFIX)/$(TARGET)/lib/pkgconfig/$(PKG).pc'     # compile test    '$(TARGET)-g++' \        -W -Wall -Werror -fopenmp \        '$(TEST_FILE)' -o '$(PREFIX)/$(TARGET)/bin/test-$(PKG).exe' \        `'$(TARGET)-pkg-config' $(PKG) --cflags --libs`endef

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t