Mercurial > mxe-octave
view src/openal.mk @ 4541:23a905c6f5d3
adapt to wget's new --compression option
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Tue, 21 Nov 2017 22:24:47 -0500 |
parents | 5e169963644e |
children | 5ab457504494 |
line wrap: on
line source
# This file is part of MXE. # See index.html for further information. PKG := openal $(PKG)_IGNORE := $(PKG)_VERSION := 1.15.1 $(PKG)_CHECKSUM := a0e73a46740c52ccbde38a3912c5b0fd72679ec8 $(PKG)_SUBDIR := openal-soft-$($(PKG)_VERSION) $(PKG)_FILE := openal-soft-$($(PKG)_VERSION).tar.bz2 $(PKG)_URL := http://kcat.strangesoft.net/openal-releases/$($(PKG)_FILE) $(PKG)_DEPS := portaudio define $(PKG)_UPDATE $(WGET) -q -O- 'http://kcat.strangesoft.net/openal-releases/?C=M;O=D' | \ $(SED) -n 's,.*"openal-soft-\([0-9][^"]*\)\.tar.*,\1,p' | \ $(SORT) -V | \ tail -1 endef define $(PKG)_BUILD cd '$(1)/build' && cmake .. \ -DCMAKE_TOOLCHAIN_FILE='$(CMAKE_TOOLCHAIN_FILE)' \ -DEXAMPLES=FALSE $(MAKE) -C '$(1)/build' -j '$(JOBS)' install '$(MXE_CC)' \ -W -Wall -Werror -ansi -pedantic \ '$(2).c' -o '$(1)/test-openal.exe' \ `'$(MXE_PKG_CONFIG)' openal --cflags --libs` endef