You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
mxe/src/jpeg.mk

30 lines
942 B

# This file is part of mingw-cross-env.
# See doc/index.html for further information.
# jpeg
PKG := jpeg
$(PKG)_IGNORE :=
$(PKG)_VERSION := 8a
$(PKG)_CHECKSUM := 78077fb22f0b526a506c21199fbca941d5c671a9
$(PKG)_SUBDIR := jpeg-$($(PKG)_VERSION)
$(PKG)_FILE := jpegsrc.v$($(PKG)_VERSION).tar.gz
$(PKG)_WEBSITE := http://www.ijg.org/
$(PKG)_URL := http://www.ijg.org/files/$($(PKG)_FILE)
$(PKG)_DEPS := gcc
define $(PKG)_UPDATE
wget -q -O- 'http://www.ijg.org/' | \
$(SED) -n 's,.*jpegsrc\.v\([0-9][^>]*\)\.tar.*,\1,p' | \
head -1
endef
define $(PKG)_BUILD
# avoid redefinition of INT32
$(SED) -i 's,typedef long INT32;,#include <basetsd.h>,' '$(1)/jmorecfg.h'
cd '$(1)' && ./configure \
--prefix='$(PREFIX)/$(TARGET)' \
--host='$(TARGET)' \
--disable-shared
$(MAKE) -C '$(1)' -j '$(JOBS)' install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS= man_MANS=
endef