view src/openal.mk @ 3960:bd51e2f81020

mingw: add perl msys module for devel tools * index.html: add msys-perl, msys-libcrypt * src/msys-perl.mk: new file * src/src-msys-perl.mk: new file * src/msys-libcrypt.mk: new file * src/src-msys-libcrypt.mk: new file * Makefile.in: add msys-perl, msys-libcrypt to installer in cross mingw * dist-files.mk: add libcrypy and perl files
author John Donoghue <john.donoghue@ieee.org>
date Mon, 08 Jun 2015 19:21:00 -0400
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