# This file is part of MXE. See LICENSE.md for licensing information. PKG := libjpeg-turbo $(PKG)_WEBSITE := https://libjpeg-turbo.virtualgl.org/ $(PKG)_IGNORE := $(PKG)_VERSION := 3.0.1 $(PKG)_CHECKSUM := 22429507714ae147b3acacd299e82099fce5d9f456882fc28e252e4579ba2a75 $(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION) $(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.gz $(PKG)_URL := https://$(SOURCEFORGE_MIRROR)/project/$(PKG)/$($(PKG)_VERSION)/$($(PKG)_FILE) $(PKG)_DEPS := cc \ $(if $(findstring x86_64, $(TARGET)), yasm, \ $(if $(findstring i686, $(TARGET)), yasm )) define $(PKG)_UPDATE $(WGET) -q -O- 'https://sourceforge.net/projects/$(PKG)/files/' | \ $(SED) -n 's,.*/projects/.*/\([0-9][^"%]*\)/".*,\1,p' | \ sort -V | \ tail -1 endef define $(PKG)_BUILD cd '$(BUILD_DIR)' && $(TARGET)-cmake '$(SOURCE_DIR)' \ -DENABLE_SHARED=$(CMAKE_SHARED_BOOL) \ -DENABLE_STATIC=$(CMAKE_STATIC_BOOL) \ -DCMAKE_INSTALL_BINDIR='$(PREFIX)/$(TARGET)/bin/$(PKG)' \ -DCMAKE_INSTALL_INCLUDEDIR='$(PREFIX)/$(TARGET)/include/$(PKG)' \ -DCMAKE_INSTALL_LIBDIR='$(PREFIX)/$(TARGET)/lib/$(PKG)' \ $(if $(findstring x86_64, $(TARGET)), -DCMAKE_ASM_NASM_COMPILER=$(TARGET)-yasm, \ $(if $(findstring i686, $(TARGET)), -DCMAKE_ASM_NASM_COMPILER=$(TARGET)-yasm )) $(MAKE) -C '$(BUILD_DIR)' -j '$(JOBS)' $(MAKE) -C '$(BUILD_DIR)' -j 1 install '$(TARGET)-gcc' \ -W -Wall -Werror -ansi -pedantic \ '$(TOP_DIR)/src/jpeg-test.c' -o '$(PREFIX)/$(TARGET)/bin/test-$(PKG).exe' \ `'$(TARGET)-pkg-config' '$(PREFIX)/$(TARGET)/lib/$(PKG)/pkgconfig/libjpeg.pc' --cflags --libs` endef