mxe/src/devil.mk

43 lines
1.4 KiB
Makefile
Raw Normal View History

2012-03-28 14:46:58 +01:00
# This file is part of MXE.
2012-03-29 11:14:15 +01:00
# See index.html for further information.
2009-12-22 03:07:03 +00:00
PKG := devil
$(PKG)_IGNORE :=
$(PKG)_VERSION := 1.7.8
$(PKG)_CHECKSUM := 682ffa3fc894686156337b8ce473c954bf3f4fb0f3ecac159c73db632d28a8fd
2009-12-22 03:07:03 +00:00
$(PKG)_SUBDIR := devil-$($(PKG)_VERSION)
$(PKG)_FILE := DevIL-$($(PKG)_VERSION).tar.gz
$(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/project/openil/DevIL/$($(PKG)_VERSION)/$($(PKG)_FILE)
2015-09-23 08:41:16 +01:00
$(PKG)_DEPS := gcc freeglut jasper jpeg lcms libmng libpng openexr sdl tiff zlib
2009-12-22 03:07:03 +00:00
define $(PKG)_UPDATE
2014-01-11 17:24:55 +00:00
$(WGET) -q -O- 'http://sourceforge.net/p/openil/svn/HEAD/tree/tags/' | \
grep '<a href="' | \
$(SED) -n 's,.*<a href="release-\([0-9][^"]*\)".*,\1,p' | \
tail -1
2009-12-22 03:07:03 +00:00
endef
define $(PKG)_BUILD
# autotools files in tarball are ancient (2009) so regenerate
$(if $(BUILD_STATIC), \
$(SED) -i 's/__declspec(dllimport)//' '$(1)/include/IL/il.h', \
cd '$(1)' && $(LIBTOOLIZE) && autoreconf -fi)
2009-12-22 03:07:03 +00:00
cd '$(1)' && ./configure \
$(MXE_CONFIGURE_OPTS) \
2009-12-22 03:07:03 +00:00
--enable-ILU \
--enable-ILUT \
--disable-allegro \
--disable-directx8 \
2009-12-22 03:07:03 +00:00
--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