rules.mak 618 Bytes
Newer Older
Jean-Baptiste Kempf's avatar
Jean-Baptiste Kempf committed
1
2
# freetype2

3
FREETYPE2_VERSION := 2.4.12
4
FREETYPE2_URL := $(SF)/freetype/freetype2/$(FREETYPE2_VERSION)/freetype-$(FREETYPE2_VERSION).tar.gz
Jean-Baptiste Kempf's avatar
Jean-Baptiste Kempf committed
5

6
7
8
9
PKGS += freetype2
ifeq ($(call need_pkg,"freetype2"),)
PKGS_FOUND += freetype2
endif
Jean-Baptiste Kempf's avatar
Jean-Baptiste Kempf committed
10
11
12
13
14
15
16
17

$(TARBALLS)/freetype-$(FREETYPE2_VERSION).tar.gz:
	$(call download,$(FREETYPE2_URL))

.sum-freetype2: freetype-$(FREETYPE2_VERSION).tar.gz

freetype: freetype-$(FREETYPE2_VERSION).tar.gz .sum-freetype2
	$(UNPACK)
18
	$(MOVE)
Jean-Baptiste Kempf's avatar
Jean-Baptiste Kempf committed
19
20

.freetype2: freetype
21
	sed -i.orig s/-ansi// $</builds/unix/configure
22
	cd $< && GNUMAKE=$(MAKE) $(HOSTVARS) ./configure $(HOSTCONF)
Jean-Baptiste Kempf's avatar
Jean-Baptiste Kempf committed
23
24
	cd $< && $(MAKE) install
	touch $@