1 # This file is part of the OpenADK project. OpenADK is copyrighted
2 # material, please see the LICENCE file in the top-level directory.
4 include ${ADK_TOPDIR}/rules.mk
9 PKG_HASH
:= 613cb38447b76a93ff7235e17acd55a78b52ea84a9df128c3f2257f8eaa7b252
10 PKG_DESCR
:= graphics library
11 PKG_SECTION
:= libs
/image
12 PKG_DEPENDS
:= fontconfig libfreetype libx11 pixman
13 PKG_DEPENDS
+= libxrender
14 PKG_BUILDDEP
:= pixman freetype fontconfig libX11 libXrender glib
15 PKG_BUILDDEP
+= libXext
16 HOST_BUILDDEP
:= libpng-host pixman-host freetype-host fontconfig-host
17 PKG_URL
:= http
://cairographics.org
/
18 PKG_SITES
:= http
://cairographics.org
/releases
/
21 PKG_FLAVOURS_CAIRO
:= WITH_PS WITH_PDF WITH_XML WITH_PNG WITH_TEE WITH_SVG WITH_XRENDER
22 PKGFD_WITH_PS
:= postscript support
23 PKGFD_WITH_PDF
:= pdf support
24 PKGFD_WITH_XML
:= xml support
25 PKGFD_WITH_PNG
:= png support
26 PKGFB_WITH_PNG
:= libpng
27 PKGFS_WITH_PNG
:= libpng
28 PKGFD_WITH_TEE
:= tee support
29 PKGFD_WITH_SVG
:= svg support
30 PKGFD_WITH_XRENDER
:= xorg xrender support
32 include ${ADK_TOPDIR}/mk
/host.mk
33 include ${ADK_TOPDIR}/mk
/package.mk
35 $(eval
$(call HOST_template
,CAIRO
,cairo
,${PKG_VERSION}-${PKG_RELEASE}))
36 $(eval
$(call PKG_template
,CAIRO
,cairo
,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
39 HOST_CONFIGURE_ARGS
+= --enable-ft
=yes \
46 --disable-test-surfaces \
47 --disable-full-testing
49 ifneq ($(ADK_PACKAGE_CAIRO_WITH_XRENDER
),)
50 CONFIGURE_ARGS
+= --enable-xlib-xrender
=yes
52 CONFIGURE_ARGS
+= --enable-xlib-xrender
=no
54 ifneq ($(ADK_PACKAGE_CAIRO_WITH_SVG
),)
55 CONFIGURE_ARGS
+= --enable-svg
=yes \
58 CONFIGURE_ARGS
+= --enable-svg
=no
60 ifneq ($(ADK_PACKAGE_CAIRO_WITH_PDF
),)
61 CONFIGURE_ARGS
+= --enable-pdf
=yes
63 CONFIGURE_ARGS
+= --enable-pdf
=no
65 ifneq ($(ADK_PACKAGE_CAIRO_WITH_PS
),)
66 CONFIGURE_ARGS
+= --enable-ps
=yes
68 CONFIGURE_ARGS
+= --enable-ps
=no
70 ifneq ($(ADK_PACKAGE_CAIRO_WITH_PNG
)$(ADK_PACKAGE_CAIRO_WITH_SVG
),)
71 CONFIGURE_ARGS
+= --enable-png
=yes
73 CONFIGURE_ARGS
+= --enable-png
=no
75 ifneq ($(ADK_PACKAGE_CAIRO_WITH_XML
),)
76 CONFIGURE_ARGS
+= --enable-xml
=yes
78 CONFIGURE_ARGS
+= --enable-xml
=no
80 ifneq ($(ADK_PACKAGE_CAIRO_WITH_TEE
),)
81 CONFIGURE_ARGS
+= --enable-tee
=yes
83 CONFIGURE_ARGS
+= --enable-tee
=no
86 CONFIGURE_ARGS
+= --enable-ft
=yes \
90 --disable-test-surfaces \
91 --disable-full-testing
94 ${INSTALL_DIR} ${IDIR_CAIRO}/usr
/lib
/cairo
95 ${CP} ${WRKINST}/usr
/lib
/libcairo
*.so
* ${IDIR_CAIRO}/usr
/lib
96 ${CP} ${WRKINST}/usr
/lib
/cairo
/*.so
* ${IDIR_CAIRO}/usr
/lib
/cairo
98 include ${ADK_TOPDIR}/mk
/host-bottom.mk
99 include ${ADK_TOPDIR}/mk
/pkg-bottom.mk