annotate src/ogg.mk @ 156:9ef60927fdeb

translated package: ogg
author Volker Grabsch <vog@notjusthosting.com>
date Sat, 08 Nov 2008 21:58:56 +0100
parents
children 5bf9071e67b6
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
156
9ef60927fdeb translated package: ogg
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
1 # OGG
9ef60927fdeb translated package: ogg
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
2 # http://www.xiph.org/ogg/
9ef60927fdeb translated package: ogg
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
3
9ef60927fdeb translated package: ogg
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
4 PKG := ogg
9ef60927fdeb translated package: ogg
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
5 $(PKG)_VERSION := 1.1.3
9ef60927fdeb translated package: ogg
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
6 $(PKG)_SUBDIR := libogg-$($(PKG)_VERSION)
9ef60927fdeb translated package: ogg
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
7 $(PKG)_FILE := libogg-$($(PKG)_VERSION).tar.gz
9ef60927fdeb translated package: ogg
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
8 $(PKG)_URL := http://downloads.xiph.org/releases/ogg/$($(PKG)_FILE)
9ef60927fdeb translated package: ogg
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
9 $(PKG)_DEPS := gcc
9ef60927fdeb translated package: ogg
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
10
9ef60927fdeb translated package: ogg
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
11 define $(PKG)_UPDATE
9ef60927fdeb translated package: ogg
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
12 wget -q -O- 'http://www.xiph.org/downloads/' | \
9ef60927fdeb translated package: ogg
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
13 $(SED) -n 's,.*libogg-\([0-9][^>]*\)\.tar.*,\1,p' | \
9ef60927fdeb translated package: ogg
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
14 head -1
9ef60927fdeb translated package: ogg
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
15 endef
9ef60927fdeb translated package: ogg
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
16
9ef60927fdeb translated package: ogg
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
17 define $(PKG)_BUILD
9ef60927fdeb translated package: ogg
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
18 # wine confuses the cross-compiling detection, so set it explicitly
9ef60927fdeb translated package: ogg
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
19 $(SED) 's,cross_compiling=no,cross_compiling=yes,' -i '$(1)/configure'
9ef60927fdeb translated package: ogg
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
20 cd '$(1)' && ./configure \
9ef60927fdeb translated package: ogg
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
21 --host='$(TARGET)' \
9ef60927fdeb translated package: ogg
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
22 --disable-shared \
9ef60927fdeb translated package: ogg
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
23 --prefix='$(PREFIX)/$(TARGET)'
9ef60927fdeb translated package: ogg
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
24 $(MAKE) -C '$(1)' -j '$(JOBS)' install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS=
9ef60927fdeb translated package: ogg
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
25 endef