summaryrefslogtreecommitdiffstats
path: root/src/devil.mk
blob: 008b5a095d3c71a1fbc071232d942b12b7e37202 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# This file is part of MXE. See LICENSE.md for licensing information.

PKG             := devil
$(PKG)_WEBSITE  := https://openil.sourceforge.io/
$(PKG)_DESCR    := DevIL
$(PKG)_IGNORE   :=
$(PKG)_VERSION  := cba359b
$(PKG)_CHECKSUM := 18323d6ac0a9e5109b0f461c628e24fc2666eee5bd476aaca8cbcdb2dae9e211
$(PKG)_GH_CONF  := DentonW/DevIL/master
$(PKG)_DEPS     := gcc freeglut jasper jpeg lcms libmng libpng openexr sdl tiff zlib

define $(PKG)_BUILD
    cd '$(BUILD_DIR)' && $(TARGET)-cmake '$(SOURCE_DIR)/DevIL' \
        -DIL_TESTS=OFF \
        -DCMAKE_CXX_FLAGS="-D__STDC_LIMIT_MACROS"
    $(MAKE) -C '$(BUILD_DIR)' -j '$(JOBS)'
    $(MAKE) -C '$(BUILD_DIR)' -j 1 install
endef