diff options
author | Volker Grabsch <vog@notjusthosting.com> | 2009-12-22 03:07:03 (GMT) |
---|---|---|
committer | Volker Grabsch <vog@notjusthosting.com> | 2009-12-22 03:07:03 (GMT) |
commit | 7584346ad2b6fffa204373ee794b2614abb7341c (patch) | |
tree | e8a4964a205c11cfc5afa5961c98c80c1e9bb02a | |
parent | db574be0f9313f8baf6b7fff7d780b35ed1230a4 (diff) | |
download | mxe-7584346ad2b6fffa204373ee794b2614abb7341c.zip mxe-7584346ad2b6fffa204373ee794b2614abb7341c.tar.gz mxe-7584346ad2b6fffa204373ee794b2614abb7341c.tar.bz2 |
new package: devil
-rw-r--r-- | src/devil.mk | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/src/devil.mk b/src/devil.mk new file mode 100644 index 0000000..f91098c --- /dev/null +++ b/src/devil.mk @@ -0,0 +1,63 @@ +# Copyright (C) 2009 Volker Grabsch +# +# Permission is hereby granted, free of charge, to any person obtaining +# a copy of this software and associated documentation files (the +# "Software"), to deal in the Software without restriction, including +# without limitation the rights to use, copy, modify, merge, publish, +# distribute, sublicense, and/or sell copies of the Software, and to +# permit persons to whom the Software is furnished to do so, subject +# to the following conditions: +# +# The above copyright notice and this permission notice shall be +# included in all copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +# IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +# CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +# TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +# SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +# DevIL +PKG := devil +$(PKG)_IGNORE := +$(PKG)_VERSION := 1.7.8 +$(PKG)_CHECKSUM := bc27e3e830ba666a3af03548789700d10561fcb1 +$(PKG)_SUBDIR := devil-$($(PKG)_VERSION) +$(PKG)_FILE := DevIL-$($(PKG)_VERSION).tar.gz +$(PKG)_WEBSITE := http://openil.sourceforge.net/ +$(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/project/openil/DevIL/$($(PKG)_VERSION)/$($(PKG)_FILE) +$(PKG)_DEPS := gcc zlib openexr jpeg jasper lcms libmng libpng tiff sdl + +define $(PKG)_UPDATE + wget -q -O- 'http://openil.svn.sourceforge.net/viewvc/openil/tags/?sortby=date' | \ + grep '<a name="' | \ + $(SED) -n 's,.*<a name="release-\([0-9][^"]*\)".*,\1,p' | \ + head -1 +endef + +define $(PKG)_BUILD + $(SED) 's,__declspec(dllimport),,' -i '$(1)/include/IL/il.h' + # wine confuses the cross-compiling detection, so set it explicitly + $(SED) 's,cross_compiling=no,cross_compiling=yes,' -i '$(1)/configure' + cd '$(1)' && ./configure \ + --host='$(TARGET)' \ + --disable-shared \ + --prefix='$(PREFIX)/$(TARGET)' \ + --enable-ILU \ + --enable-ILUT \ + --disable-allegro \ + --enable-directx8 \ + --enable-directx9 \ + --enable-opengl \ + --enable-sdl \ + --disable-sdltest \ + --disable-wdp \ + --with-zlib \ + --without-squish \ + --without-nvtt \ + --without-x \ + --without-examples + $(MAKE) -C '$(1)' -j '$(JOBS)' install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS= INFO_DEPS= +endef |