json-c: add 32 bit library, needed in order to be able to build fontconfig in 32...
[oi-userland.git] / components / library / gtk+ / Makefile
blobaf5a04d1a08914626f104601a92e40eaebc4c31d
2 # This file and its contents are supplied under the terms of the
3 # Common Development and Distribution License ("CDDL"), version 1.0.
4 # You may only use this file in accordance with the terms of version
5 # 1.0 of the CDDL.
7 # A full copy of the text of the CDDL should have accompanied this
8 # source. A copy of the CDDL is also available via the Internet at
9 # http://www.illumos.org/license/CDDL.
13 # Copyright 2016 Alexander Pyhalov
16 BUILD_BITS= 64
17 USE_DEFAULT_TEST_TRANSFORMS= yes
18 include ../../../make-rules/shared-macros.mk
20 COMPONENT_NAME= gtk+
21 COMPONENT_VERSION= 2.24.33
22 COMPONENT_REVISION= 3
23 COMPONENT_SUMMARY= GTK+ - GIMP Toolkit Library for creation of graphical user interfaces
24 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
25 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.xz
26 COMPONENT_ARCHIVE_HASH= sha256:ac2ac757f5942d318a311a54b0c80b5ef295f299c2a73c632f6bfb1ff49cc6da
27 COMPONENT_ARCHIVE_URL= https://download.gnome.org/sources/$(COMPONENT_NAME)/2.24/$(COMPONENT_ARCHIVE)
28 COMPONENT_PROJECT_URL= https://www.gtk.org/
30 include $(WS_MAKE_RULES)/common.mk
32 PATH= $(PATH.gnu)
34 gcc_OPT = -O2
35 CFLAGS += -I/usr/X11/include
37 COMPONENT_PREP_ACTION = \
38 ( cd $(@D) && PATH="$(PATH)" libtoolize --force && \
39 aclocal -I ./m4 &&\
40 gtkdocize &&\
41 autoheader &&\
42 automake -a -f -c --gnu &&\
43 autoconf )
45 CONFIGURE_OPTIONS += --sysconfdir=$(ETCDIR)
46 CONFIGURE_OPTIONS += --enable-shm
47 CONFIGURE_OPTIONS += --with-gdktarget=x11
48 CONFIGURE_OPTIONS += --enable-explicit-deps=yes
49 CONFIGURE_OPTIONS += --enable-man
51 CONFIGURE_ENV += XGETTEXT=/usr/gnu/bin/xgettext
52 CONFIGURE_ENV += MSGFMT=/usr/gnu/bin/msgfmt
53 CONFIGURE_ENV += PYTHON=$(PYTHON)
54 CONFIGURE_ENV += GLIB_GENMARSHAL=/usr/bin/glib-genmarshal
55 CONFIGURE_ENV += GLIB_MKENUMS=/usr/bin/glib-mkenums
57 # CFLAGS are not passed to compiler when g-ir-scanner is used
58 COMPONENT_BUILD_ENV += CFLAGS="$(CFLAGS)"
59 COMPONENT_BUILD_ENV += CC="$(CC)"
61 COMPONENT_POST_INSTALL_ACTION = ( $(GSED) -i -e 's:/usr/bin/env python:$(PYTHON):' $(PROTO_DIR)/usr/bin/gtk-builder-convert )
63 COMPONENT_TEST_TRANSFORMS += \
64 ' -e "/check in/p" ' \
65 ' -e "/======/p" ' \
66 ' -e "/summary/p" '
68 # Manually added dependencies
69 REQUIRED_PACKAGES += developer/documentation-tool/gtk-doc
70 REQUIRED_PACKAGES += library/desktop/gobject/gobject-introspection
72 # Auto-generated dependencies
73 PYTHON_REQUIRED_PACKAGES += runtime/python
74 REQUIRED_PACKAGES += gnome/accessibility/at-spi2-core
75 REQUIRED_PACKAGES += library/desktop/cairo
76 REQUIRED_PACKAGES += library/desktop/gdk-pixbuf
77 REQUIRED_PACKAGES += library/desktop/pango
78 REQUIRED_PACKAGES += library/glib2
79 REQUIRED_PACKAGES += library/print/cups-libs
80 REQUIRED_PACKAGES += system/library
81 REQUIRED_PACKAGES += system/library/fontconfig
82 REQUIRED_PACKAGES += system/library/math
83 REQUIRED_PACKAGES += x11/library/libx11
84 REQUIRED_PACKAGES += x11/library/libxcomposite
85 REQUIRED_PACKAGES += x11/library/libxcursor
86 REQUIRED_PACKAGES += x11/library/libxdamage
87 REQUIRED_PACKAGES += x11/library/libxext
88 REQUIRED_PACKAGES += x11/library/libxfixes
89 REQUIRED_PACKAGES += x11/library/libxinerama
90 REQUIRED_PACKAGES += x11/library/libxrandr
91 REQUIRED_PACKAGES += x11/library/libxrender