binutils: update to 2.43.1
[openadk.git] / package / cairo / Makefile
blob315766c5734f24f5a873b439511f3f59ddd2a38b
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
6 PKG_NAME:= cairo
7 PKG_VERSION:= 1.14.6
8 PKG_RELEASE:= 1
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/
19 PKG_OPTS:= dev
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}))
38 HOST_STYLE:= auto
39 HOST_CONFIGURE_ARGS+= --enable-ft=yes \
40 --enable-png=yes \
41 --enable-fc=yes \
42 --enable-tee=no \
43 --enable-xlib=no \
44 --enable-pdf=no \
45 --enable-quartz=no \
46 --disable-test-surfaces \
47 --disable-full-testing
49 ifneq ($(ADK_PACKAGE_CAIRO_WITH_XRENDER),)
50 CONFIGURE_ARGS+= --enable-xlib-xrender=yes
51 else
52 CONFIGURE_ARGS+= --enable-xlib-xrender=no
53 endif
54 ifneq ($(ADK_PACKAGE_CAIRO_WITH_SVG),)
55 CONFIGURE_ARGS+= --enable-svg=yes \
56 --enable-png=yes
57 else
58 CONFIGURE_ARGS+= --enable-svg=no
59 endif
60 ifneq ($(ADK_PACKAGE_CAIRO_WITH_PDF),)
61 CONFIGURE_ARGS+= --enable-pdf=yes
62 else
63 CONFIGURE_ARGS+= --enable-pdf=no
64 endif
65 ifneq ($(ADK_PACKAGE_CAIRO_WITH_PS),)
66 CONFIGURE_ARGS+= --enable-ps=yes
67 else
68 CONFIGURE_ARGS+= --enable-ps=no
69 endif
70 ifneq ($(ADK_PACKAGE_CAIRO_WITH_PNG)$(ADK_PACKAGE_CAIRO_WITH_SVG),)
71 CONFIGURE_ARGS+= --enable-png=yes
72 else
73 CONFIGURE_ARGS+= --enable-png=no
74 endif
75 ifneq ($(ADK_PACKAGE_CAIRO_WITH_XML),)
76 CONFIGURE_ARGS+= --enable-xml=yes
77 else
78 CONFIGURE_ARGS+= --enable-xml=no
79 endif
80 ifneq ($(ADK_PACKAGE_CAIRO_WITH_TEE),)
81 CONFIGURE_ARGS+= --enable-tee=yes
82 else
83 CONFIGURE_ARGS+= --enable-tee=no
84 endif
86 CONFIGURE_ARGS+= --enable-ft=yes \
87 --enable-fc=yes \
88 --enable-xlib=yes \
89 --enable-quartz=no \
90 --disable-test-surfaces \
91 --disable-full-testing
93 cairo-install:
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