mxe/src/openal.mk

30 lines
965 B
Makefile
Raw Normal View History

2012-03-28 14:46:58 +01:00
# This file is part of MXE.
2010-09-30 16:56:08 +01:00
# See doc/index.html for further information.
# openal
PKG := openal
$(PKG)_IGNORE :=
2011-03-01 13:32:35 +00:00
$(PKG)_CHECKSUM := 0e2449375a12cee65a9cea354533dcaabf9d5068
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' | \
head -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)' \
2010-09-30 16:56:08 +01:00
-DLIBTYPE=STATIC
$(MAKE) -C '$(1)/build' -j '$(JOBS)' install
2010-11-29 23:03:40 +00:00
'$(TARGET)-gcc' \
-W -Wall -Werror -ansi -pedantic \
'$(2).c' -o '$(PREFIX)/$(TARGET)/bin/test-openal.exe' \
`'$(TARGET)-pkg-config' openal --cflags --libs`
2010-09-30 16:56:08 +01:00
endef