blob: 8733e447b57b5fe3ed594cd47eb1a6bd0cb999e4 (
plain)
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
# cairo
PKG := cairo
$(PKG)_VERSION := 1.8.6
$(PKG)_SUBDIR := cairo-$($(PKG)_VERSION)
$(PKG)_FILE := cairo-$($(PKG)_VERSION).tar.gz
$(PKG)_WEBSITE := http://cairographics.org/
$(PKG)_URL := http://cairographics.org/releases/$($(PKG)_FILE)
$(PKG)_DEPS := gcc zlib libpng fontconfig freetype pthreads pixman
define $(PKG)_UPDATE
wget -q -O- 'http://cairographics.org/releases/' | \
grep 'LATEST-cairo-' | \
$(SED) -n 's,.*"LATEST-cairo-\([0-9][^"]*\)".*,\1,p' | \
head -1
endef
define $(PKG)_BUILD
$(SED) 's,^\(Libs:.*\),\1 @CAIRO_NONPKGCONFIG_LIBS@,' -i '$(1)/src/cairo.pc.in'
cd '$(1)' && ./configure \
--host='$(TARGET)' \
--disable-shared \
--prefix='$(PREFIX)/$(TARGET)' \
--disable-gtk-doc \
--disable-test-surfaces \
--disable-gcov \
--disable-xlib \
--disable-xlib-xrender \
--disable-xcb \
--disable-quartz \
--disable-quartz-font \
--disable-quartz-image \
--disable-os2 \
--disable-beos \
--disable-glitz \
--disable-directfb \
--enable-win32 \
--enable-win32-font \
--enable-png \
--enable-ft \
--enable-ps \
--enable-pdf \
--enable-svg \
--enable-pthread \
LIBS="-lmsimg32 -lpthread -lws2_32 `$(TARGET)-pkg-config pixman-1 --libs`"
$(MAKE) -C '$(1)' -j '$(JOBS)' install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS=
endef
|