diff options
Diffstat (limited to 'package')
-rw-r--r-- | package/cairo/Makefile | 59 |
1 files changed, 54 insertions, 5 deletions
diff --git a/package/cairo/Makefile b/package/cairo/Makefile index d16fcd00a..7c627cacc 100644 --- a/package/cairo/Makefile +++ b/package/cairo/Makefile @@ -9,21 +9,34 @@ PKG_RELEASE:= 4 PKG_MD5SUM:= a1304edcdc99282f478b995ee5f8f854 PKG_DESCR:= cairo graphics library PKG_SECTION:= libs/image -PKG_DEPENDS:= fontconfig libfreetype libpng libx11 pixman +PKG_DEPENDS:= fontconfig libfreetype libx11 pixman PKG_DEPENDS+= libxrender -PKG_BUILDDEP:= libpng pixman freetype fontconfig libX11 libXrender glib +PKG_BUILDDEP:= pixman freetype fontconfig libX11 libXrender glib PKG_BUILDDEP+= libXext HOST_BUILDDEP:= libpng-host pixman-host freetype-host fontconfig-host PKG_URL:= http://cairographics.org/ PKG_SITES:= http://cairographics.org/releases/ PKG_OPTS:= dev +PKG_FLAVOURS_CAIRO:= WITH_PS WITH_PDF WITH_XML WITH_PNG WITH_TEE WITH_SVG WITH_XRENDER +PKGFD_WITH_PS:= postscript support +PKGFD_WITH_PDF:= pdf support +PKGFD_WITH_XML:= xml support +PKGFD_WITH_PNG:= png support +PKGFB_WITH_PNG:= libpng +PKGFS_WITH_PNG:= libpng +PKGFD_WITH_TEE:= tee support +PKGFD_WITH_SVG:= svg support +PKGFD_WITH_XRENDER:= xorg xrender support + include ${ADK_TOPDIR}/mk/host.mk include ${ADK_TOPDIR}/mk/package.mk $(eval $(call HOST_template,CAIRO,cairo,${PKG_VERSION}-${PKG_RELEASE})) $(eval $(call PKG_template,CAIRO,cairo,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS})) + + HOST_CONFIGURE_ARGS+= --enable-ft=yes \ --enable-png=yes \ --enable-fc=yes \ @@ -37,12 +50,48 @@ HOST_CONFIGURE_ARGS+= --enable-ft=yes \ ifeq (,$(filter arm,$(ADK_TARGET_ARCH))) TARGET_CFLAGS:= $(filter-out -Os,$(TARGET_CFLAGS)) endif + +ifneq ($(ADK_PACKAGE_CAIRO_WITH_XRENDER),) +CONFIGURE_ARGS+= --enable-xlib-xrender=yes +else +CONFIGURE_ARGS+= --enable-xlib-xrender=no +endif +ifneq ($(ADK_PACKAGE_CAIRO_WITH_SVG),) +CONFIGURE_ARGS+= --enable-svg=yes +else +CONFIGURE_ARGS+= --enable-svg=no +endif +ifneq ($(ADK_PACKAGE_CAIRO_WITH_PDF),) +CONFIGURE_ARGS+= --enable-pdf=yes +else +CONFIGURE_ARGS+= --enable-pdf=no +endif +ifneq ($(ADK_PACKAGE_CAIRO_WITH_PS),) +CONFIGURE_ARGS+= --enable-ps=yes +else +CONFIGURE_ARGS+= --enable-ps=no +endif +ifneq ($(ADK_PACKAGE_CAIRO_WITH_PNG),) +CONFIGURE_ARGS+= --enable-png=yes +else +CONFIGURE_ARGS+= --enable-png=no +endif +ifneq ($(ADK_PACKAGE_CAIRO_WITH_XML),) +CONFIGURE_ARGS+= --enable-xml=yes +else +CONFIGURE_ARGS+= --enable-xml=no +endif +ifneq ($(ADK_PACKAGE_CAIRO_WITH_TEE),) +CONFIGURE_ARGS+= --enable-tee=yes +else +CONFIGURE_ARGS+= --enable-tee=no +endif + + + CONFIGURE_ARGS+= --enable-ft=yes \ --enable-fc=yes \ - --enable-tee=yes \ --enable-xlib=yes \ - --enable-pdf=yes \ - --enable-png=yes \ --enable-quartz=no \ --disable-test-surfaces \ --disable-full-testing |