rules.mak 1.01 KB
Newer Older
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
1
2
# zvbi

3
ZVBI_VERSION := 0.2.34
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
4
5
6
7
8
9
10
11
12
13
14
15
16
17
ZVBI_URL := $(SF)/zapping/zvbi-$(ZVBI_VERSION).tar.bz2

PKGS += zvbi
ifeq ($(call need_pkg,"zvbi-0.2"),)
PKGS_FOUND += zvbi
endif

$(TARBALLS)/zvbi-$(ZVBI_VERSION).tar.bz2:
	$(call download,$(ZVBI_URL))

.sum-zvbi: zvbi-$(ZVBI_VERSION).tar.bz2

zvbi: zvbi-$(ZVBI_VERSION).tar.bz2 .sum-zvbi
	$(UNPACK)
18
19
	$(APPLY) $(SRC)/zvbi/zvbi-ssize_max.patch
	$(APPLY) $(SRC)/zvbi/zvbi-ioctl.patch
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
20
21
22
23
24
ifdef HAVE_WIN32
	$(APPLY) $(SRC)/zvbi/zvbi-win32.patch
endif
	$(MOVE)

25
DEPS_zvbi = pthreads iconv $(DEPS_iconv)
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
26
27
28

ZVBI_CFLAGS := $(CFLAGS)
ZVBICONF := \
29
	--disable-dvb --disable-bktr \
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
30
31
32
33
34
35
36
37
38
39
40
	--disable-nls --disable-proxy \
	--without-doxygen \
	$(HOSTCONF)
ifdef HAVE_MACOSX
ZVBI_CFLAGS += -fnested-functions
endif
ifdef HAVE_WIN32
ZVBI_CFLAGS += -DPTW32_STATIC_LIB
endif

.zvbi: zvbi
41
	$(RECONF)
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
42
43
44
	cd $< && $(HOSTVARS) CFLAGS="$(ZVBI_CFLAGS)" ./configure $(ZVBICONF)
	cd $</src && $(MAKE) install
	cd $< && $(MAKE) SUBDIRS=. install
Jean-Baptiste Kempf's avatar
Jean-Baptiste Kempf committed
45
	sed -i.orig -e "s/\/[^ ]*libiconv.a/-liconv/" $(PREFIX)/lib/pkgconfig/zvbi-0.2.pc
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
46
	touch $@