618
|
1 # Copyright (C) 2009 Volker Grabsch |
|
2 # |
|
3 # Permission is hereby granted, free of charge, to any person obtaining |
|
4 # a copy of this software and associated documentation files (the |
|
5 # "Software"), to deal in the Software without restriction, including |
|
6 # without limitation the rights to use, copy, modify, merge, publish, |
|
7 # distribute, sublicense, and/or sell copies of the Software, and to |
|
8 # permit persons to whom the Software is furnished to do so, subject |
|
9 # to the following conditions: |
|
10 # |
|
11 # The above copyright notice and this permission notice shall be |
|
12 # included in all copies or substantial portions of the Software. |
|
13 # |
|
14 # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, |
|
15 # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF |
|
16 # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. |
|
17 # IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY |
|
18 # CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, |
|
19 # TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE |
|
20 # SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
|
21 |
|
22 # DevIL |
|
23 PKG := devil |
|
24 $(PKG)_IGNORE := |
|
25 $(PKG)_VERSION := 1.7.8 |
|
26 $(PKG)_CHECKSUM := bc27e3e830ba666a3af03548789700d10561fcb1 |
|
27 $(PKG)_SUBDIR := devil-$($(PKG)_VERSION) |
|
28 $(PKG)_FILE := DevIL-$($(PKG)_VERSION).tar.gz |
|
29 $(PKG)_WEBSITE := http://openil.sourceforge.net/ |
|
30 $(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/project/openil/DevIL/$($(PKG)_VERSION)/$($(PKG)_FILE) |
|
31 $(PKG)_DEPS := gcc zlib openexr jpeg jasper lcms libmng libpng tiff sdl |
|
32 |
|
33 define $(PKG)_UPDATE |
|
34 wget -q -O- 'http://openil.svn.sourceforge.net/viewvc/openil/tags/?sortby=date' | \ |
|
35 grep '<a name="' | \ |
|
36 $(SED) -n 's,.*<a name="release-\([0-9][^"]*\)".*,\1,p' | \ |
|
37 head -1 |
|
38 endef |
|
39 |
|
40 define $(PKG)_BUILD |
|
41 $(SED) 's,__declspec(dllimport),,' -i '$(1)/include/IL/il.h' |
|
42 # wine confuses the cross-compiling detection, so set it explicitly |
|
43 $(SED) 's,cross_compiling=no,cross_compiling=yes,' -i '$(1)/configure' |
|
44 cd '$(1)' && ./configure \ |
|
45 --host='$(TARGET)' \ |
|
46 --disable-shared \ |
|
47 --prefix='$(PREFIX)/$(TARGET)' \ |
|
48 --enable-ILU \ |
|
49 --enable-ILUT \ |
|
50 --disable-allegro \ |
|
51 --enable-directx8 \ |
|
52 --enable-directx9 \ |
|
53 --enable-opengl \ |
|
54 --enable-sdl \ |
|
55 --disable-sdltest \ |
|
56 --disable-wdp \ |
|
57 --with-zlib \ |
|
58 --without-squish \ |
|
59 --without-nvtt \ |
|
60 --without-x \ |
|
61 --without-examples |
|
62 $(MAKE) -C '$(1)' -j '$(JOBS)' install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS= INFO_DEPS= |
|
63 endef |