# Tiger

TIGER_VERSION := 0.3.4
TIGER_URL := http://libtiger.googlecode.com/files/libtiger-$(TIGER_VERSION).tar.gz

ifeq ($(call need_pkg,"pangocairo >= 0.16"),)
# only available if the system has pangocairo
PKGS += tiger
endif
ifeq ($(call need_pkg,"tiger >= 0.3.1"),)
PKGS_FOUND += tiger
endif

$(TARBALLS)/libtiger-$(TIGER_VERSION).tar.gz:
	$(call download_pkg,$(TIGER_URL),tiger)

.sum-tiger: libtiger-$(TIGER_VERSION).tar.gz

libtiger: libtiger-$(TIGER_VERSION).tar.gz .sum-tiger
	$(UNPACK)
	$(UPDATE_AUTOCONFIG) && cd $(UNPACK_DIR) && mv config.guess config.sub misc/autotools
	$(APPLY) $(SRC)/tiger/autotools.patch
	$(call pkg_static,"misc/pkgconfig/tiger.pc.in")
	$(MOVE)

DEPS_tiger = kate $(DEPS_kate)

TIGER_CONF := --disable-doc

.tiger: libtiger
	$(RECONF)
	cd $< && $(HOSTVARS) ./configure $(HOSTCONF) $(TIGER_CONF)
	$(MAKE) -C $< install
	touch $@
