summaryrefslogtreecommitdiff
path: root/package/cairo/Makefile
blob: 30894cab5d50fe2d68cb8ec2cff5263c1c14e366 (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
# This file is part of the OpenADK project. OpenADK is copyrighted
# material, please see the LICENCE file in the top-level directory.

include ${TOPDIR}/rules.mk

PKG_NAME:=		cairo
PKG_VERSION:=		1.12.16
PKG_RELEASE:=		1
PKG_MD5SUM:=		a1304edcdc99282f478b995ee5f8f854
PKG_DESCR:=		cairo graphics library
PKG_SECTION:=		libs
PKG_DEPENDS:=		fontconfig libfreetype libpng libx11 pixman
PKG_DEPENDS+=		libxrender
PKG_BUILDDEP:=		libpng pixman freetype fontconfig libX11 libXrender glib
PKG_BUILDDEP+=		libXext
PKG_URL:=		http://cairographics.org/
PKG_SITES:=		http://cairographics.org/releases/
PKG_OPTS:=		dev

DISTFILES:=		${PKG_NAME}-${PKG_VERSION}.tar.xz

ifeq ($(ADK_STATIC),y)
PKG_OPTS+=		libonly
endif

include ${TOPDIR}/mk/package.mk

$(eval $(call PKG_template,CAIRO,cairo,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))

ifeq (,$(filter arm,$(TARGET_ARCH)))
TARGET_CFLAGS:=         $(filter-out -Os,$(TARGET_CFLAGS))
endif
ifeq (,$(filter cris,$(TARGET_ARCH)))
TARGET_CFLAGS:=         $(filter-out -Os,$(TARGET_CFLAGS))
endif
CONFIGURE_ARGS+=	--enable-ft=yes \
			--enable-fc=yes \
			--enable-tee=yes \
			--enable-xlib=yes

cairo-install:
	${INSTALL_DIR} ${IDIR_CAIRO}/usr/lib/cairo
	${CP} ${WRKINST}/usr/lib/libcairo*.so* ${IDIR_CAIRO}/usr/lib
	${CP} ${WRKINST}/usr/lib/cairo/*.so* ${IDIR_CAIRO}/usr/lib/cairo

include ${TOPDIR}/mk/pkg-bottom.mk