blob: 8b6d88608e65fdfe1f5b194dc5f0612a2a8f6d41 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
# This file is part of mingw-cross-env.
# See doc/index.html for further information.
# jpeg
PKG := jpeg
$(PKG)_IGNORE :=
$(PKG)_VERSION := 8c
$(PKG)_CHECKSUM := f0a3b88ac4db19667798bee971537eeed552bce9
$(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
cd '$(1)' && ./configure \
--prefix='$(PREFIX)/$(TARGET)' \
--host='$(TARGET)' \
--disable-shared
$(MAKE) -C '$(1)' -j '$(JOBS)' install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS= man_MANS=
'$(TARGET)-gcc' \
-W -Wall -Werror -ansi -pedantic \
'$(2).c' -o '$(PREFIX)/$(TARGET)/bin/test-jpeg.exe' \
-ljpeg
endef
|