Mercurial > mxe-octave
view src/ilmbase.mk @ 6366:0b25b70852a0
* src/freetds.mk: update to v1.3.13
author | John Donoghue <john.donoghue@ieee.org> |
---|---|
date | Thu, 18 Aug 2022 20:44:21 -0400 |
parents | 9855517e4522 |
children |
line wrap: on
line source
# This file is part of MXE. # See index.html for further information. PKG := ilmbase $(PKG)_IGNORE := $(PKG)_VERSION := 2.4.0 $(PKG)_CHECKSUM := 0b9a24b8fa6b3f7f1d8813e91234308d3e43d10f $(PKG)_SUBDIR := ilmbase-$($(PKG)_VERSION) $(PKG)_FILE := ilmbase-$($(PKG)_VERSION).tar.gz $(PKG)_URL := https://github.com/openexr/openexr/archive/v$($(PKG)_VERSION).tar.gz $(PKG)_DEPS := define $(PKG)_UPDATE $(WGET) -q -O- 'https://github.com/openexr/openexr/tags' | \ $(SED) -n 's|.*releases/tag/v\([^"]*\).*|\1|p' | \ head -1 endef define $(PKG)_BUILD # build the win32 thread sources instead of the posix thread sources $(SED) -i 's,IlmThreadPosix\.,IlmThreadWin32.,' '$(1)/IlmThread/Makefile.in' $(SED) -i 's,IlmThreadSemaphorePosix\.,IlmThreadSemaphoreWin32.,' '$(1)/IlmThread/Makefile.in' $(SED) -i 's,IlmThreadMutexPosix\.,IlmThreadMutexWin32.,' '$(1)/IlmThread/Makefile.in' echo '/* disabled */' > '$(1)/IlmThread/IlmThreadSemaphorePosixCompat.cpp' # Because of the previous changes, '--disable-threading' will not disable # threading. It will just disable the unwanted check for pthread. cd '$(1)' && $(SHELL) ./configure \ $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \ $(ENABLE_SHARED_OR_STATIC) \ --prefix='$(HOST_PREFIX)' \ --disable-threading \ CONFIG_SHELL=$(SHELL) \ SHELL=$(SHELL) # do the first build step by hand, because programs are built that # generate source files cd '$(1)/Half' && g++ eLut.cpp -o eLut '$(1)/Half/eLut' > '$(1)/eLut.h' cd '$(1)/Half' && g++ toFloat.cpp -o toFloat '$(1)/Half/toFloat' > '$(1)/toFloat.h' $(MAKE) -C '$(1)' -j '$(JOBS)' install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS= endef