rules.mak 844 Bytes
Newer Older
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# twolame

TWOLAME_VERSION := 0.3.13
TWOLAME_URL := $(SF)/twolame/twolame-$(TWOLAME_VERSION).tar.gz

ifdef BUILD_ENCODERS
PKGS += twolame
endif

$(TARBALLS)/twolame-$(TWOLAME_VERSION).tar.gz:
	$(call download,$(TWOLAME_URL))

$(TARBALLS)/twolame-winutil.h:
	$(call download,"http://twolame.svn.sourceforge.net/viewvc/*checkout*/twolame/trunk/win32/winutil.h")

.sum-twolame: twolame-$(TWOLAME_VERSION).tar.gz twolame-winutil.h

twolame: twolame-$(TWOLAME_VERSION).tar.gz twolame-winutil.h .sum-twolame
	$(UNPACK)
ifdef HAVE_WIN32
	cp -f $(filter %winutil.h,$^) $@-$(TWOLAME_VERSION)/win32/winutil.h
endif
	mv $@-$(TWOLAME_VERSION) $@
	touch $@

.twolame: twolame
	cd $< && $(HOSTVARS) CFLAGS="${CFLAGS} -DLIBTWOLAME_STATIC" ./configure $(HOSTCONF)
	cd $< && $(MAKE)
	cd $</libtwolame && $(MAKE) install
	cd $< && $(MAKE) install-data
	touch $@