annotate src/jpeg.mk @ 265:5bf9071e67b6

put all package's project websites into Make variables $($(PKG)_WEBSITE)
author Volker Grabsch <vog@notjusthosting.com>
date Sun, 01 Mar 2009 16:35:21 +0100
parents 38ddc0df2497
children 85ffa9259036
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
149
38ddc0df2497 translated package: jpeg
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
1 # jpeg
38ddc0df2497 translated package: jpeg
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
2 # http://packages.debian.org/unstable/source/libjpeg6b
38ddc0df2497 translated package: jpeg
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
3
38ddc0df2497 translated package: jpeg
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
4 PKG := jpeg
38ddc0df2497 translated package: jpeg
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
5 $(PKG)_VERSION := 6b
38ddc0df2497 translated package: jpeg
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
6 $(PKG)_SUBDIR := jpeg-$($(PKG)_VERSION)
265
5bf9071e67b6 put all package's project websites into Make variables $($(PKG)_WEBSITE)
Volker Grabsch <vog@notjusthosting.com>
parents: 149
diff changeset
7 $(PKG)_WEBSITE := http://www.ijg.org/
149
38ddc0df2497 translated package: jpeg
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
8 $(PKG)_FILE := libjpeg6b_$($(PKG)_VERSION).orig.tar.gz
38ddc0df2497 translated package: jpeg
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
9 $(PKG)_URL := http://ftp.debian.org/debian/pool/main/libj/libjpeg6b/$($(PKG)_FILE)
38ddc0df2497 translated package: jpeg
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
10 $(PKG)_DEPS := gcc
38ddc0df2497 translated package: jpeg
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
11
38ddc0df2497 translated package: jpeg
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
12 define $(PKG)_UPDATE
38ddc0df2497 translated package: jpeg
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
13 wget -q -O- 'http://packages.debian.org/unstable/source/libjpeg6b' | \
38ddc0df2497 translated package: jpeg
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
14 $(SED) -n 's,.*libjpeg6b_\([0-9][^>]*\)\.orig\.tar.*,\1,p' | \
38ddc0df2497 translated package: jpeg
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
15 tail -1
38ddc0df2497 translated package: jpeg
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
16 endef
38ddc0df2497 translated package: jpeg
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
17
38ddc0df2497 translated package: jpeg
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
18 define $(PKG)_BUILD
38ddc0df2497 translated package: jpeg
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
19 cd '$(1)' && ./configure \
38ddc0df2497 translated package: jpeg
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
20 CC='$(TARGET)-gcc' RANLIB='$(TARGET)-ranlib' \
38ddc0df2497 translated package: jpeg
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
21 --disable-shared \
38ddc0df2497 translated package: jpeg
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
22 --prefix='$(PREFIX)/$(TARGET)'
38ddc0df2497 translated package: jpeg
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
23 $(MAKE) -C '$(1)' -j '$(JOBS)' install-lib
38ddc0df2497 translated package: jpeg
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
24 endef