rules.mak 567 Bytes
Newer Older
Rafaël Carré's avatar
Rafaël Carré committed
1
2
# opus

3
OPUS_VERSION := 1.0.3
Rafaël Carré's avatar
Rafaël Carré committed
4
5
6

OPUS_URL := http://downloads.xiph.org/releases/opus/opus-$(OPUS_VERSION).tar.gz

7
PKGS += opus
Rafaël Carré's avatar
Rafaël Carré committed
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
ifeq ($(call need_pkg,"opus >= 0.9.14"),)
PKGS_FOUND += opus
endif

$(TARBALLS)/opus-$(OPUS_VERSION).tar.gz:
	$(call download,$(OPUS_URL))

.sum-opus: opus-$(OPUS_VERSION).tar.gz

opus: opus-$(OPUS_VERSION).tar.gz .sum-opus
	$(UNPACK)
	$(UPDATE_AUTOCONFIG)
	$(MOVE)

OPUS_CONF=
23
ifndef HAVE_FPU
Rafaël Carré's avatar
Rafaël Carré committed
24
25
26
27
28
29
30
OPUS_CONF += --enable-fixed-point
endif

.opus: opus
	cd $< && $(HOSTVARS) ./configure $(HOSTCONF) $(OPUS_CONF)
	cd $< && $(MAKE) install
	touch $@