rules.mak 779 Bytes
Newer Older
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
1
2
# tremor (fixed-point Vorbis)

3
4
5
6
ifndef HAVE_FPU
PKGS += tremor
endif

Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
7
8
9
10
11
$(TARBALLS)/tremor-svn.tar.xz:
	rm -Rf tremor-svn
	$(SVN) export http://svn.xiph.org/trunk/Tremor tremor-svn
	tar cv tremor-svn | xz > $@

12
.sum-tremor: tremor-svn.tar.xz
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
13
14
15
	$(warning Integrity check skipped.)
	touch $@

16
tremor: tremor-svn.tar.xz .sum-tremor
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
17
	# Stuff that does not depend on libogg
18
	$(UNPACK)
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
19
20
21
22
23
24
25
26
27
	(cd tremor-svn && patch -p0) < $(SRC)/tremor/tremor.patch
	rm -f tremor-svn/ogg.h tremor-svn/os_types.h
	echo '#include <ogg/ogg.h>' > tremor-svn/ogg.h
	echo '#include <ogg/os_types.h>' > tremor-svn/os_types.h
	mv tremor-svn tremor

.tremor: tremor .ogg
	# Stuff that depends on libogg
	cd $< && \
28
	$(HOSTVARS) CFLAGS="$(CFLAGS) $(NOTHUMB)" ./autogen.sh $(HOSTCONF)
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
29
30
	cd $< && $(MAKE) install
	touch $@