Mercurial > mxe-octave
changeset 6082:480f60641fc2
Add openlibm
* src/openlibm.mk: new file
* index.html, dist-files.mk: add ref to new file
author | John Donoghue <john.donoghue@ieee.org> |
---|---|
date | Wed, 09 Feb 2022 09:56:44 -0500 |
parents | af7f56fcf348 |
children | 49f199fba615 |
files | dist-files.mk index.html src/openlibm.mk |
diffstat | 3 files changed, 40 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/dist-files.mk Sun Feb 06 10:06:07 2022 -0500 +++ b/dist-files.mk Wed Feb 09 09:56:44 2022 -0500 @@ -571,6 +571,7 @@ opencv.mk \ openexr.mk \ openjpeg.mk \ + openlibm.mk \ openscenegraph-1-fixes.patch \ openscenegraph.mk \ openssl-1-fixes.patch \
--- a/index.html Sun Feb 06 10:06:07 2022 -0500 +++ b/index.html Wed Feb 09 09:56:44 2022 -0500 @@ -2494,6 +2494,10 @@ <td class="website"><a href="https://www.openjpeg.org/">OpenJPEG</a></td> </tr> <tr> + <td class="package">openlibm</td> + <td class="website"><a href="https://openlibm.org/">OpenLibm</a></td> + </tr> + <tr> <td class="package">openscenegraph</td> <td class="website"><a href="http://www.openscenegraph.org/">OpenSceneGraph</a></td> </tr>
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/openlibm.mk Wed Feb 09 09:56:44 2022 -0500 @@ -0,0 +1,35 @@ +# This file is part of MXE. +# See index.html for further information. + +PKG := openlibm +$(PKG)_IGNORE := +$(PKG)_VERSION := 0.8.1 +$(PKG)_CHECKSUM := 4b1dffada65215942a31f3266b65b27eadd363cc +$(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION) +$(PKG)_FILE := $($(PKG)_SUBDIR).tar.gz +$(PKG)_URL := https://github.com/JuliaMath/$(PKG)/archive/v$($(PKG)_VERSION).tar.gz +$(PKG)_DEPS := + +$(PKG)_TARGET_OPTS := + +ifeq ($(MXE_NATIVE_BUILD),no) + ifeq ($(ENABLE_WINDOWS_64),yes) + $(PKG)_TARGET_OPTS := ARCH=x86_64 + else + $(PKG)_TARGET_OPTS := ARCH=i686 + endif + $(PKG)_TARGET_OPTS += OS=WINNT TOOLPREFIX=$(MXE_TOOL_PREFIX) + $(PKG)_TARGET_OPTS += CC=$(MXE_CC) AR=$(MXE_AR) + $(PKG)_TARGET_OPTS += prefix=$(HOST_PREFIX) +endif + +define $(PKG)_UPDATE + $(WGET) -q -O- 'https://github.com/JuliaMath/openlibm/tags' | \ + $(SED) -n 's|.*releases/tag/v\([^"]*\).*|\1|p' | $(SORT) -V | \ + tail -1 +endef + +define $(PKG)_BUILD + $(MAKE) -C '$(1)' -j '$(JOBS)' $($(PKG)_TARGET_OPTS) + $(MAKE) -C '$(1)' -j '1' $($(PKG)_TARGET_OPTS) DESTDIR='$(3)' install +endef