annotate src/devil.mk @ 714:29f1ba4559ae

point consequently to "doc/index.html" instead of "doc/index.html or doc/README"
author Volker Grabsch <vog@notjusthosting.com>
date Mon, 08 Feb 2010 00:58:06 +0100
parents dab071eac9c0
children bf4bcb3370fa
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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
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 # DevIL
837543941a27 new package: devil
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
5 PKG := devil
837543941a27 new package: devil
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
6 $(PKG)_IGNORE :=
837543941a27 new package: devil
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
7 $(PKG)_VERSION := 1.7.8
837543941a27 new package: devil
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
8 $(PKG)_CHECKSUM := bc27e3e830ba666a3af03548789700d10561fcb1
837543941a27 new package: devil
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
9 $(PKG)_SUBDIR := devil-$($(PKG)_VERSION)
837543941a27 new package: devil
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
10 $(PKG)_FILE := DevIL-$($(PKG)_VERSION).tar.gz
837543941a27 new package: devil
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
11 $(PKG)_WEBSITE := http://openil.sourceforge.net/
837543941a27 new package: devil
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
12 $(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/project/openil/DevIL/$($(PKG)_VERSION)/$($(PKG)_FILE)
837543941a27 new package: devil
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
13 $(PKG)_DEPS := gcc zlib openexr jpeg jasper lcms libmng libpng tiff sdl
837543941a27 new package: devil
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
14
837543941a27 new package: devil
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
15 define $(PKG)_UPDATE
837543941a27 new package: devil
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
16 wget -q -O- 'http://openil.svn.sourceforge.net/viewvc/openil/tags/?sortby=date' | \
837543941a27 new package: devil
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
17 grep '<a name="' | \
837543941a27 new package: devil
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
18 $(SED) -n 's,.*<a name="release-\([0-9][^"]*\)".*,\1,p' | \
837543941a27 new package: devil
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
19 head -1
837543941a27 new package: devil
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
20 endef
837543941a27 new package: devil
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
21
837543941a27 new package: devil
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
22 define $(PKG)_BUILD
837543941a27 new package: devil
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
23 $(SED) 's,__declspec(dllimport),,' -i '$(1)/include/IL/il.h'
837543941a27 new package: devil
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
24 # wine confuses the cross-compiling detection, so set it explicitly
837543941a27 new package: devil
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
25 $(SED) 's,cross_compiling=no,cross_compiling=yes,' -i '$(1)/configure'
837543941a27 new package: devil
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
26 cd '$(1)' && ./configure \
837543941a27 new package: devil
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
27 --host='$(TARGET)' \
837543941a27 new package: devil
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
28 --disable-shared \
837543941a27 new package: devil
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
29 --prefix='$(PREFIX)/$(TARGET)' \
837543941a27 new package: devil
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
30 --enable-ILU \
837543941a27 new package: devil
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
31 --enable-ILUT \
837543941a27 new package: devil
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
32 --disable-allegro \
837543941a27 new package: devil
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
33 --enable-directx8 \
837543941a27 new package: devil
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
34 --enable-directx9 \
837543941a27 new package: devil
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
35 --enable-opengl \
837543941a27 new package: devil
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
36 --enable-sdl \
837543941a27 new package: devil
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
37 --disable-sdltest \
837543941a27 new package: devil
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
38 --disable-wdp \
837543941a27 new package: devil
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
39 --with-zlib \
837543941a27 new package: devil
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
40 --without-squish \
837543941a27 new package: devil
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
41 --without-nvtt \
837543941a27 new package: devil
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
42 --without-x \
837543941a27 new package: devil
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
43 --without-examples
837543941a27 new package: devil
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
44 $(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
45 endef