mxe/src/devil.mk

44 lines
1.5 KiB
Makefile
Raw Normal View History

# This file is part of MXE. See LICENSE.md for licensing information.
2009-12-22 03:07:03 +00:00
PKG := devil
2017-03-05 03:41:39 +00:00
$(PKG)_WEBSITE := https://openil.sourceforge.io/
$(PKG)_DESCR := DevIL
2009-12-22 03:07:03 +00:00
$(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
2017-03-05 03:41:39 +00:00
$(PKG)_URL := https://$(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
2017-03-05 03:41:39 +00:00
$(WGET) -q -O- 'https://sourceforge.net/p/openil/svn/HEAD/tree/tags/' | \
2014-01-11 17:24:55 +00:00
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