Mercurial > mxe-octave
comparison src/openal.mk @ 1234:3c63edcea6db
new package: OpenAL
author | Martin Gerhardy <martin.gerhardy@gmail.com> |
---|---|
date | Fri, 01 Oct 2010 01:56:08 +1000 |
parents | |
children | 7e9f957b3239 |
comparison
equal
deleted
inserted
replaced
1233:cc6c5d009f44 | 1234:3c63edcea6db |
---|---|
1 # This file is part of mingw-cross-env. | |
2 # See doc/index.html for further information. | |
3 | |
4 # openal | |
5 PKG := openal | |
6 $(PKG)_IGNORE := | |
7 $(PKG)_VERSION := 1.12.854 | |
8 $(PKG)_CHECKSUM := 537dc5fad32d227bb5e861506018b46a21e47f26 | |
9 $(PKG)_SUBDIR := openal-soft-$($(PKG)_VERSION) | |
10 $(PKG)_FILE := $($(PKG)_SUBDIR).tar.bz2 | |
11 $(PKG)_WEBSITE := http://kcat.strangesoft.net/openal.html | |
12 $(PKG)_URL := http://kcat.strangesoft.net/openal-releases/$($(PKG)_FILE) | |
13 $(PKG)_DEPS := gcc | |
14 | |
15 define $(PKG)_UPDATE | |
16 wget -q -O- 'http://kcat.strangesoft.net/openal-releases/' | \ | |
17 $(SED) -n 's,.*openal-soft-\([0-9][^<]*\)\.tar.*,\1,p' | \ | |
18 tail -1 | |
19 endef | |
20 | |
21 define $(PKG)_BUILD | |
22 cd '$(1)/build' && cmake .. \ | |
23 -DCMAKE_SYSTEM_NAME=Windows \ | |
24 -DCMAKE_FIND_ROOT_PATH='$(PREFIX)/$(TARGET)' \ | |
25 -DCMAKE_FIND_ROOT_PATH_MODE_PROGRAM=NEVER \ | |
26 -DCMAKE_FIND_ROOT_PATH_MODE_LIBRARY=ONLY \ | |
27 -DCMAKE_FIND_ROOT_PATH_MODE_INCLUDE=ONLY \ | |
28 -DCMAKE_C_COMPILER='$(PREFIX)/bin/$(TARGET)-gcc' \ | |
29 -DCMAKE_CXX_COMPILER='$(PREFIX)/bin/$(TARGET)-gcc' \ | |
30 -DCMAKE_INCLUDE_PATH='$(PREFIX)/$(TARGET)/include' \ | |
31 -DCMAKE_LIB_PATH='$(PREFIX)/$(TARGET)/lib' \ | |
32 -DPKG_CONFIG_EXECUTABLE=$(TARGET)-pkg-config \ | |
33 -DCMAKE_INSTALL_PREFIX='$(PREFIX)/$(TARGET)' \ | |
34 -DCMAKE_BUILD_TYPE=Release \ | |
35 -DLIBTYPE=STATIC | |
36 cd '$(1)/build' && $(MAKE) -j '$(JOBS)' | |
37 cd '$(1)/build' && cp -fv OpenAL32.a $(PREFIX)/$(TARGET)/lib/libOpenAL32.a | |
38 cd '$(1)/build' && cp -rfv openal.pc $(PREFIX)/$(TARGET)/lib/pkgconfig | |
39 $(SED) -i 's,^\(Libs:.*\),\1 -lwinmm,' $(PREFIX)/$(TARGET)/lib/pkgconfig/openal.pc | |
40 cd '$(1)' && cp -rfv include/* $(PREFIX)/$(TARGET)/include | |
41 endef |