Mercurial > mxe-octave
annotate src/devil.mk @ 759:bf4bcb3370fa
changed coding style: make "-i" always the first argument of $(SED) (by Mark Brand)
author | Volker Grabsch <vog@notjusthosting.com> |
---|---|
date | Tue, 16 Feb 2010 04:12:53 +0100 |
parents | 29f1ba4559ae |
children | 772f74fbd0d7 |
rev | line source |
---|---|
641
dab071eac9c0
simplified file markers
Volker Grabsch <vog@notjusthosting.com>
parents:
618
diff
changeset
|
1 # This file is part of mingw-cross-env. |
714
29f1ba4559ae
point consequently to "doc/index.html" instead of "doc/index.html or doc/README"
Volker Grabsch <vog@notjusthosting.com>
parents:
641
diff
changeset
|
2 # See doc/index.html for further information. |
618 | 3 |
4 # DevIL | |
5 PKG := devil | |
6 $(PKG)_IGNORE := | |
7 $(PKG)_VERSION := 1.7.8 | |
8 $(PKG)_CHECKSUM := bc27e3e830ba666a3af03548789700d10561fcb1 | |
9 $(PKG)_SUBDIR := devil-$($(PKG)_VERSION) | |
10 $(PKG)_FILE := DevIL-$($(PKG)_VERSION).tar.gz | |
11 $(PKG)_WEBSITE := http://openil.sourceforge.net/ | |
12 $(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/project/openil/DevIL/$($(PKG)_VERSION)/$($(PKG)_FILE) | |
13 $(PKG)_DEPS := gcc zlib openexr jpeg jasper lcms libmng libpng tiff sdl | |
14 | |
15 define $(PKG)_UPDATE | |
16 wget -q -O- 'http://openil.svn.sourceforge.net/viewvc/openil/tags/?sortby=date' | \ | |
17 grep '<a name="' | \ | |
18 $(SED) -n 's,.*<a name="release-\([0-9][^"]*\)".*,\1,p' | \ | |
19 head -1 | |
20 endef | |
21 | |
22 define $(PKG)_BUILD | |
759
bf4bcb3370fa
changed coding style: make "-i" always the first argument of $(SED) (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
714
diff
changeset
|
23 $(SED) -i 's,__declspec(dllimport),,' '$(1)/include/IL/il.h' |
618 | 24 # wine confuses the cross-compiling detection, so set it explicitly |
759
bf4bcb3370fa
changed coding style: make "-i" always the first argument of $(SED) (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
714
diff
changeset
|
25 $(SED) -i 's,cross_compiling=no,cross_compiling=yes,' '$(1)/configure' |
618 | 26 cd '$(1)' && ./configure \ |
27 --host='$(TARGET)' \ | |
28 --disable-shared \ | |
29 --prefix='$(PREFIX)/$(TARGET)' \ | |
30 --enable-ILU \ | |
31 --enable-ILUT \ | |
32 --disable-allegro \ | |
33 --enable-directx8 \ | |
34 --enable-directx9 \ | |
35 --enable-opengl \ | |
36 --enable-sdl \ | |
37 --disable-sdltest \ | |
38 --disable-wdp \ | |
39 --with-zlib \ | |
40 --without-squish \ | |
41 --without-nvtt \ | |
42 --without-x \ | |
43 --without-examples | |
44 $(MAKE) -C '$(1)' -j '$(JOBS)' install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS= INFO_DEPS= | |
45 endef |