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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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
837543941a27 new package: devil
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
3
837543941a27 new package: devil
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
4 PKG := devil
837543941a27 new package: devil
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
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
837543941a27 new package: devil
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
7 $(PKG)_CHECKSUM := bc27e3e830ba666a3af03548789700d10561fcb1
837543941a27 new package: devil
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
8 $(PKG)_SUBDIR := devil-$($(PKG)_VERSION)
837543941a27 new package: devil
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
9 $(PKG)_FILE := DevIL-$($(PKG)_VERSION).tar.gz
837543941a27 new package: devil
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
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
837543941a27 new package: devil
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
12
837543941a27 new package: devil
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
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
837543941a27 new package: devil
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
18 endef
837543941a27 new package: devil
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
19
837543941a27 new package: devil
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
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
837543941a27 new package: devil
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
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
837543941a27 new package: devil
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
26 --enable-ILU \
837543941a27 new package: devil
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
27 --enable-ILUT \
837543941a27 new package: devil
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
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
837543941a27 new package: devil
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
30 --enable-directx9 \
837543941a27 new package: devil
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
31 --enable-opengl \
837543941a27 new package: devil
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
32 --enable-sdl \
837543941a27 new package: devil
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
33 --disable-sdltest \
837543941a27 new package: devil
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
34 --disable-wdp \
837543941a27 new package: devil
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
35 --with-zlib \
837543941a27 new package: devil
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
36 --without-squish \
837543941a27 new package: devil
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
37 --without-nvtt \
837543941a27 new package: devil
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
38 --without-x \
837543941a27 new package: devil
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
39 --without-examples
837543941a27 new package: devil
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
40 $(MAKE) -C '$(1)' -j '$(JOBS)' install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS= INFO_DEPS=
837543941a27 new package: devil
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
41 endef