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

3
FREETYPE2_VERSION := 2.5.3
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
	$(call pkg_static, "builds/unix/freetype2.in")
19
	$(MOVE)
Jean-Baptiste Kempf's avatar
Jean-Baptiste Kempf committed
20

21
22
DEPS_freetype = zlib $(DEPS_zlib)

Jean-Baptiste Kempf's avatar
Jean-Baptiste Kempf committed
23
.freetype2: freetype
24
	sed -i.orig s/-ansi// $</builds/unix/configure
25
	cd $< && GNUMAKE=$(MAKE) $(HOSTVARS) ./configure --with-zlib=yes --without-png $(HOSTCONF)
26
	cd $< && $(MAKE) && $(MAKE) install
Jean-Baptiste Kempf's avatar
Jean-Baptiste Kempf committed
27
	touch $@