view src/openal.mk @ 4303:eac52a8a7822

Disable more doc files * Makefile.in: add pkghtml_DATA to MXE_DISABLE_DOCS * src/lame.mk: add MXE_DISABLE_DOCS to install * src/libidn.mk: add MXE_DISABLE_DOCS to install * src/libffi.mk: remove man, info files from install * src/libiconv.mk: remove man, info files from install * src/librsb.mk: html doc files from install
author John D
date Fri, 30 Dec 2016 22:26:22 -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