annotate src/devil.mk @ 3012:100e618349f7

Improve handling of prefix directories by defining HOST_PREFIX and BUILD_TOOLS_PREFIX variables in top-level Makefile.
author John W. Eaton <jwe@octave.org>
date Sun, 02 Jun 2013 10:31:04 -0400
parents 47558e958113
children bcc26ffe9a0f
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 :=
837543941a27 new package: devil
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
6 $(PKG)_CHECKSUM := bc27e3e830ba666a3af03548789700d10561fcb1
837543941a27 new package: devil
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
7 $(PKG)_SUBDIR := devil-$($(PKG)_VERSION)
837543941a27 new package: devil
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
8 $(PKG)_FILE := DevIL-$($(PKG)_VERSION).tar.gz
837543941a27 new package: devil
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
9 $(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/project/openil/DevIL/$($(PKG)_VERSION)/$($(PKG)_FILE)
862
6172bc2fc0fd add missing dependency of package devil
Volker Grabsch <vog@notjusthosting.com>
parents: 858
diff changeset
10 $(PKG)_DEPS := gcc freeglut zlib openexr jpeg jasper lcms libmng libpng tiff sdl
618
837543941a27 new package: devil
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
11
837543941a27 new package: devil
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
12 define $(PKG)_UPDATE
2525
4d0f3a9da57e all packages: use $(WGET) portability variable
Tony Theodore <tonyt@logyst.com>
parents: 2365
diff changeset
13 $(WGET) -q -O- 'http://openil.svn.sourceforge.net/viewvc/openil/tags/?sortby=date' | \
618
837543941a27 new package: devil
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
14 grep '<a name="' | \
837543941a27 new package: devil
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
15 $(SED) -n 's,.*<a name="release-\([0-9][^"]*\)".*,\1,p' | \
837543941a27 new package: devil
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
16 head -1
837543941a27 new package: devil
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
17 endef
837543941a27 new package: devil
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
18
837543941a27 new package: devil
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
19 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
20 $(SED) -i 's,__declspec(dllimport),,' '$(1)/include/IL/il.h'
618
837543941a27 new package: devil
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
21 cd '$(1)' && ./configure \
837543941a27 new package: devil
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
22 --host='$(TARGET)' \
2153
e4c83fa61a5b replaced $(BUILD) with a more direct and less brittle construct
Volker Grabsch <vog@notjusthosting.com>
parents: 2148
diff changeset
23 --build="`config.guess`" \
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