Mercurial > mxe-octave
annotate src/devil.mk @ 3561:ae4193aad5fe
revise and enable more $(PKG)_UPDATE rules
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Sat, 08 Mar 2014 17:40:00 -0500 |
parents | 13be64f9f16d |
children | d5a5b8e659de |
rev | line source |
---|---|
2333
f653602a0500
Rebrand to new project name MXE
Volker Grabsch <vog@notjusthosting.com>
parents:
2153
diff
changeset
|
1 # This file is part of MXE. |
2353
99516e73b368
Move doc/index.html -> index.html
Volker Grabsch <vog@notjusthosting.com>
parents:
2349
diff
changeset
|
2 # See index.html for further information. |
618 | 3 |
4 PKG := devil | |
5 $(PKG)_IGNORE := | |
3480
13be64f9f16d
move version info from index.html to src/*.mk files
John W. Eaton <jwe@octave.org>
parents:
3048
diff
changeset
|
6 $(PKG)_VERSION := 1.7.8 |
618 | 7 $(PKG)_CHECKSUM := bc27e3e830ba666a3af03548789700d10561fcb1 |
8 $(PKG)_SUBDIR := devil-$($(PKG)_VERSION) | |
9 $(PKG)_FILE := DevIL-$($(PKG)_VERSION).tar.gz | |
10 $(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/project/openil/DevIL/$($(PKG)_VERSION)/$($(PKG)_FILE) | |
3048
5ef49fb3299d
treat gcc and binutils as build tools
John W. Eaton <jwe@octave.org>
parents:
3013
diff
changeset
|
11 $(PKG)_DEPS := freeglut zlib openexr jpeg jasper lcms libmng libpng tiff sdl |
618 | 12 |
13 define $(PKG)_UPDATE | |
3561
ae4193aad5fe
revise and enable more $(PKG)_UPDATE rules
John W. Eaton <jwe@octave.org>
parents:
3480
diff
changeset
|
14 $(WGET) -q -O- 'http://sourceforge.net/p/openil/svn/HEAD/tree/tags/' | \ |
ae4193aad5fe
revise and enable more $(PKG)_UPDATE rules
John W. Eaton <jwe@octave.org>
parents:
3480
diff
changeset
|
15 grep '<a href="' | \ |
ae4193aad5fe
revise and enable more $(PKG)_UPDATE rules
John W. Eaton <jwe@octave.org>
parents:
3480
diff
changeset
|
16 $(SED) -n 's,.*<a href="release-\([0-9][^"]*\)".*,\1,p' | \ |
ae4193aad5fe
revise and enable more $(PKG)_UPDATE rules
John W. Eaton <jwe@octave.org>
parents:
3480
diff
changeset
|
17 tail -1 |
618 | 18 endef |
19 | |
20 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
|
21 $(SED) -i 's,__declspec(dllimport),,' '$(1)/include/IL/il.h' |
618 | 22 cd '$(1)' && ./configure \ |
3013
bcc26ffe9a0f
use variable for --host and --build configure arguments
John W. Eaton <jwe@octave.org>
parents:
3012
diff
changeset
|
23 $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \ |
2855
47558e958113
Allow static/shared libraries to be configured in top-level Makefile.
John W. Eaton <jwe@octave.org>
parents:
2525
diff
changeset
|
24 $(ENABLE_SHARED_OR_STATIC) \ |
3012
100e618349f7
Improve handling of prefix directories by defining HOST_PREFIX and
John W. Eaton <jwe@octave.org>
parents:
2855
diff
changeset
|
25 --prefix='$(HOST_PREFIX)' \ |
618 | 26 --enable-ILU \ |
27 --enable-ILUT \ | |
28 --disable-allegro \ | |
863
492e0c8570d8
bugfix: really disable directx8 in package devil
Volker Grabsch <vog@notjusthosting.com>
parents:
862
diff
changeset
|
29 --disable-directx8 \ |
618 | 30 --enable-directx9 \ |
31 --enable-opengl \ | |
32 --enable-sdl \ | |
33 --disable-sdltest \ | |
34 --disable-wdp \ | |
35 --with-zlib \ | |
36 --without-squish \ | |
37 --without-nvtt \ | |
38 --without-x \ | |
39 --without-examples | |
40 $(MAKE) -C '$(1)' -j '$(JOBS)' install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS= INFO_DEPS= | |
41 endef |