Mercurial > mxe-octave
annotate src/jpeg.mk @ 759:bf4bcb3370fa
changed coding style: make "-i" always the first argument of $(SED) (by Mark Brand)
author | Volker Grabsch <vog@notjusthosting.com> |
---|---|
date | Tue, 16 Feb 2010 04:12:53 +0100 |
parents | 29f1ba4559ae |
children | 8a6bc74b0d2f |
rev | line source |
---|---|
641
dab071eac9c0
simplified file markers
Volker Grabsch <vog@notjusthosting.com>
parents:
632
diff
changeset
|
1 # This file is part of mingw-cross-env. |
714
29f1ba4559ae
point consequently to "doc/index.html" instead of "doc/index.html or doc/README"
Volker Grabsch <vog@notjusthosting.com>
parents:
641
diff
changeset
|
2 # See doc/index.html for further information. |
414
d2a6561bcb6d
add a copyright notice and license to each source file
Volker Grabsch <vog@notjusthosting.com>
parents:
324
diff
changeset
|
3 |
149
38ddc0df2497
translated package: jpeg
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
4 # jpeg |
306
85ffa9259036
validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents:
265
diff
changeset
|
5 PKG := jpeg |
448
e9afec55fd6b
improved version recognition, enable the notation of ignored (bad) package versions
Volker Grabsch <vog@notjusthosting.com>
parents:
417
diff
changeset
|
6 $(PKG)_IGNORE := |
632
700f5dadfcf5
update version and version recognition of package jpeg
Volker Grabsch <vog@notjusthosting.com>
parents:
620
diff
changeset
|
7 $(PKG)_VERSION := 8 |
700f5dadfcf5
update version and version recognition of package jpeg
Volker Grabsch <vog@notjusthosting.com>
parents:
620
diff
changeset
|
8 $(PKG)_CHECKSUM := 1324834b52428d57479faa062f8b2d98d755d85e |
306
85ffa9259036
validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents:
265
diff
changeset
|
9 $(PKG)_SUBDIR := jpeg-$($(PKG)_VERSION) |
632
700f5dadfcf5
update version and version recognition of package jpeg
Volker Grabsch <vog@notjusthosting.com>
parents:
620
diff
changeset
|
10 $(PKG)_FILE := jpegsrc.v$($(PKG)_VERSION).tar.gz |
306
85ffa9259036
validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents:
265
diff
changeset
|
11 $(PKG)_WEBSITE := http://www.ijg.org/ |
632
700f5dadfcf5
update version and version recognition of package jpeg
Volker Grabsch <vog@notjusthosting.com>
parents:
620
diff
changeset
|
12 $(PKG)_URL := http://www.ijg.org/files/$($(PKG)_FILE) |
306
85ffa9259036
validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents:
265
diff
changeset
|
13 $(PKG)_DEPS := gcc |
149
38ddc0df2497
translated package: jpeg
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
14 |
38ddc0df2497
translated package: jpeg
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
15 define $(PKG)_UPDATE |
632
700f5dadfcf5
update version and version recognition of package jpeg
Volker Grabsch <vog@notjusthosting.com>
parents:
620
diff
changeset
|
16 wget -q -O- 'http://www.ijg.org/' | \ |
700f5dadfcf5
update version and version recognition of package jpeg
Volker Grabsch <vog@notjusthosting.com>
parents:
620
diff
changeset
|
17 $(SED) -n 's,.*jpegsrc\.v\([0-9][^>]*\)\.tar.*,\1,p' | \ |
700f5dadfcf5
update version and version recognition of package jpeg
Volker Grabsch <vog@notjusthosting.com>
parents:
620
diff
changeset
|
18 head -1 |
149
38ddc0df2497
translated package: jpeg
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
19 endef |
38ddc0df2497
translated package: jpeg
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
20 |
38ddc0df2497
translated package: jpeg
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
21 define $(PKG)_BUILD |
617
2c1eb8996b06
avoid redefinition of INT32 in package jpeg
Volker Grabsch <vog@notjusthosting.com>
parents:
448
diff
changeset
|
22 # avoid redefinition of INT32 |
759
bf4bcb3370fa
changed coding style: make "-i" always the first argument of $(SED) (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
714
diff
changeset
|
23 $(SED) -i 's,typedef long INT32;,#include <basetsd.h>,' '$(1)/jmorecfg.h' |
149
38ddc0df2497
translated package: jpeg
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
24 cd '$(1)' && ./configure \ |
632
700f5dadfcf5
update version and version recognition of package jpeg
Volker Grabsch <vog@notjusthosting.com>
parents:
620
diff
changeset
|
25 --prefix='$(PREFIX)/$(TARGET)' \ |
700f5dadfcf5
update version and version recognition of package jpeg
Volker Grabsch <vog@notjusthosting.com>
parents:
620
diff
changeset
|
26 --host='$(TARGET)' \ |
700f5dadfcf5
update version and version recognition of package jpeg
Volker Grabsch <vog@notjusthosting.com>
parents:
620
diff
changeset
|
27 --disable-shared |
700f5dadfcf5
update version and version recognition of package jpeg
Volker Grabsch <vog@notjusthosting.com>
parents:
620
diff
changeset
|
28 $(MAKE) -C '$(1)' -j '$(JOBS)' install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS= man_MANS= |
149
38ddc0df2497
translated package: jpeg
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
29 endef |