annotate src/devil.mk @ 618:837543941a27

new package: devil
author Volker Grabsch <vog@notjusthosting.com>
date Tue, 22 Dec 2009 04:07:03 +0100
parents
children dab071eac9c0
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
618
837543941a27 new package: devil
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
1 # Copyright (C) 2009 Volker Grabsch
837543941a27 new package: devil
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
2 #
837543941a27 new package: devil
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
3 # Permission is hereby granted, free of charge, to any person obtaining
837543941a27 new package: devil
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
4 # a copy of this software and associated documentation files (the
837543941a27 new package: devil
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
5 # "Software"), to deal in the Software without restriction, including
837543941a27 new package: devil
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
6 # without limitation the rights to use, copy, modify, merge, publish,
837543941a27 new package: devil
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
7 # distribute, sublicense, and/or sell copies of the Software, and to
837543941a27 new package: devil
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
8 # permit persons to whom the Software is furnished to do so, subject
837543941a27 new package: devil
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
9 # to the following conditions:
837543941a27 new package: devil
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
10 #
837543941a27 new package: devil
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
11 # The above copyright notice and this permission notice shall be
837543941a27 new package: devil
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
12 # included in all copies or substantial portions of the Software.
837543941a27 new package: devil
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
13 #
837543941a27 new package: devil
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
14 # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
837543941a27 new package: devil
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
15 # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
837543941a27 new package: devil
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
16 # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
837543941a27 new package: devil
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
17 # IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
837543941a27 new package: devil
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
18 # CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
837543941a27 new package: devil
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
19 # TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
837543941a27 new package: devil
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
20 # SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
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 # DevIL
837543941a27 new package: devil
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
23 PKG := devil
837543941a27 new package: devil
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
24 $(PKG)_IGNORE :=
837543941a27 new package: devil
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
25 $(PKG)_VERSION := 1.7.8
837543941a27 new package: devil
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
26 $(PKG)_CHECKSUM := bc27e3e830ba666a3af03548789700d10561fcb1
837543941a27 new package: devil
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
27 $(PKG)_SUBDIR := devil-$($(PKG)_VERSION)
837543941a27 new package: devil
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
28 $(PKG)_FILE := DevIL-$($(PKG)_VERSION).tar.gz
837543941a27 new package: devil
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
29 $(PKG)_WEBSITE := http://openil.sourceforge.net/
837543941a27 new package: devil
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
30 $(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/project/openil/DevIL/$($(PKG)_VERSION)/$($(PKG)_FILE)
837543941a27 new package: devil
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
31 $(PKG)_DEPS := gcc zlib openexr jpeg jasper lcms libmng libpng tiff sdl
837543941a27 new package: devil
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
32
837543941a27 new package: devil
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
33 define $(PKG)_UPDATE
837543941a27 new package: devil
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
34 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
35 grep '<a name="' | \
837543941a27 new package: devil
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
36 $(SED) -n 's,.*<a name="release-\([0-9][^"]*\)".*,\1,p' | \
837543941a27 new package: devil
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
37 head -1
837543941a27 new package: devil
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
38 endef
837543941a27 new package: devil
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
39
837543941a27 new package: devil
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
40 define $(PKG)_BUILD
837543941a27 new package: devil
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
41 $(SED) 's,__declspec(dllimport),,' -i '$(1)/include/IL/il.h'
837543941a27 new package: devil
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
42 # wine confuses the cross-compiling detection, so set it explicitly
837543941a27 new package: devil
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
43 $(SED) 's,cross_compiling=no,cross_compiling=yes,' -i '$(1)/configure'
837543941a27 new package: devil
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
44 cd '$(1)' && ./configure \
837543941a27 new package: devil
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
45 --host='$(TARGET)' \
837543941a27 new package: devil
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
46 --disable-shared \
837543941a27 new package: devil
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
47 --prefix='$(PREFIX)/$(TARGET)' \
837543941a27 new package: devil
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
48 --enable-ILU \
837543941a27 new package: devil
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
49 --enable-ILUT \
837543941a27 new package: devil
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
50 --disable-allegro \
837543941a27 new package: devil
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
51 --enable-directx8 \
837543941a27 new package: devil
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
52 --enable-directx9 \
837543941a27 new package: devil
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
53 --enable-opengl \
837543941a27 new package: devil
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
54 --enable-sdl \
837543941a27 new package: devil
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
55 --disable-sdltest \
837543941a27 new package: devil
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
56 --disable-wdp \
837543941a27 new package: devil
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
57 --with-zlib \
837543941a27 new package: devil
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
58 --without-squish \
837543941a27 new package: devil
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
59 --without-nvtt \
837543941a27 new package: devil
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
60 --without-x \
837543941a27 new package: devil
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
61 --without-examples
837543941a27 new package: devil
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
62 $(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
63 endef