mxe/src/openal.mk

33 lines
1.1 KiB
Makefile
Raw Normal View History

2012-03-28 14:46:58 +01:00
# This file is part of MXE.
2012-03-29 11:14:15 +01:00
# See index.html for further information.
2010-09-30 16:56:08 +01:00
PKG := openal
$(PKG)_IGNORE :=
2014-12-15 00:12:57 +00:00
$(PKG)_VERSION := 1.16.0
$(PKG)_CHECKSUM := 2f3dcd313fe26391284fbf8596863723f99c65d6c6846dccb48e79cadaf40d5f
2010-09-30 16:56:08 +01:00
$(PKG)_SUBDIR := openal-soft-$($(PKG)_VERSION)
$(PKG)_FILE := openal-soft-$($(PKG)_VERSION).tar.bz2
2010-09-30 16:56:08 +01:00
$(PKG)_URL := http://kcat.strangesoft.net/openal-releases/$($(PKG)_FILE)
$(PKG)_DEPS := gcc portaudio
2010-09-30 16:56:08 +01:00
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' | \
2013-05-28 09:41:03 +01:00
$(SORT) -V | \
tail -1
2010-09-30 16:56:08 +01:00
endef
define $(PKG)_BUILD
cd '$(1)/build' && cmake .. \
2011-03-17 00:54:10 +00:00
-DCMAKE_TOOLCHAIN_FILE='$(CMAKE_TOOLCHAIN_FILE)' \
2014-08-20 05:58:19 +01:00
-DLIBTYPE=$(if $(BUILD_SHARED),SHARED,STATIC) \
2014-12-15 00:12:57 +00:00
-DEXAMPLES=FALSE \
-DALSOFT_UTILS=FALSE
2014-08-10 11:53:51 +01:00
$(MAKE) -C '$(1)/build' -j '$(JOBS)' install
'$(TARGET)-gcc' \
-W -Wall -Werror -ansi -pedantic \
'$(2).c' -o '$(PREFIX)/$(TARGET)/bin/test-openal.exe' \
`'$(TARGET)-pkg-config' openal --cflags --libs`
endef