Marcel Telka
2022-01-31 b7ef23180b8258d99f0990e953e0eddbaaab32a5
commit | author | age
e70b75 1 #
AP 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.
6 #
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.
10 #
11
12 #
17fe2f 13 # Copyright 2016 Alexander Pyhalov
e70b75 14 #
AP 15
e8eb49 16 BUILD_BITS = 32_and_64
AP 17
17fe2f 18 include ../../../make-rules/shared-macros.mk
e70b75 19
AP 20 COMPONENT_NAME= gtk+
af6547 21 COMPONENT_VERSION= 2.24.32
7274f5 22 COMPONENT_REVISION= 3
e70b75 23 COMPONENT_SUMMARY= GTK+ - GIMP Toolkit Library for creation of graphical user interfaces
AP 24 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
401c5b 25 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.xz
e70b75 26 COMPONENT_ARCHIVE_HASH= \
af6547 27   sha256:b6c8a93ddda5eabe3bfee1eb39636c9a03d2a56c7b62828b359bf197943c582e
e70b75 28 COMPONENT_ARCHIVE_URL= \
b7ef23 29   https://download.gnome.org/sources/$(COMPONENT_NAME)/2.24/$(COMPONENT_ARCHIVE)
e70b75 30 COMPONENT_PROJECT_URL = http://www.gtk.org/
AP 31
e8eb49 32 TEST_TARGET = $(NO_TESTS)
AP 33
34 PYTHON_VERSION = 3.5
35
36 include $(WS_MAKE_RULES)/common.mk
833b4f 37
e70b75 38 gcc_OPT = -O2
AP 39 CFLAGS += -I/usr/X11/include
40
79e150 41 COMPONENT_PRE_CONFIGURE_ACTION = \
AL 42  (chmod -R u+r  $(SOURCE_DIR) && \
43           cp -r $(SOURCE_DIR)/* $(@D) && \
44           cd $(@D) && libtoolize --force &&\
45           aclocal -I ./m4 &&\
46           gtkdocize &&\
47           autoheader &&\
48           automake -a -f -c --gnu &&\
49           autoconf )
e70b75 50
AP 51 CONFIGURE_SCRIPT = $(@D)/configure
52
53 CONFIGURE_OPTIONS.32 = --sysconfdir=/etc
54 CONFIGURE_OPTIONS.64 = --sysconfdir=/etc/$(MACH64)
55 CONFIGURE_OPTIONS += --enable-shm
56 CONFIGURE_OPTIONS += --with-gdktarget=x11
57 CONFIGURE_OPTIONS += --enable-explicit-deps=yes
58 CONFIGURE_OPTIONS += --without-libjasper
59 CONFIGURE_OPTIONS += --enable-man
60
61 CONFIGURE_ENV    += XGETTEXT=/usr/gnu/bin/xgettext
62 CONFIGURE_ENV    += MSGFMT=/usr/gnu/bin/msgfmt
63 CONFIGURE_ENV    += PERL=$(PERL)
64 CONFIGURE_ENV    += PYTHON=$(PYTHON)
65
66 # CFLAGS are not passed to compiler when g-ir-scanner is used
67 COMPONENT_BUILD_ENV += CFLAGS="$(CFLAGS)"
401c5b 68 COMPONENT_BUILD_ENV += CC="$(CC)"
e70b75 69
e8eb49 70 COMPONENT_POST_INSTALL_ACTION = ( $(GSED) -i -e 's:/usr/bin/env python:$(PYTHON):' $(PROTO_DIR)/usr/bin/gtk-builder-convert )
17fe2f 71
7274f5 72 REQUIRED_PACKAGES += developer/documentation-tool/gtk-doc
17fe2f 73 REQUIRED_PACKAGES += library/desktop/atk
AP 74 REQUIRED_PACKAGES += library/desktop/cairo
75 REQUIRED_PACKAGES += library/desktop/gdk-pixbuf
7274f5 76 REQUIRED_PACKAGES += library/desktop/gobject/gobject-introspection
17fe2f 77 REQUIRED_PACKAGES += library/desktop/gtk2
AP 78 REQUIRED_PACKAGES += library/desktop/pango
79 REQUIRED_PACKAGES += library/glib2
80 REQUIRED_PACKAGES += library/print/cups-libs
81 REQUIRED_PACKAGES += library/print/open-printing
e8eb49 82 REQUIRED_PACKAGES += runtime/python-35
17fe2f 83 REQUIRED_PACKAGES += system/library
AP 84 REQUIRED_PACKAGES += system/library/fontconfig
85 REQUIRED_PACKAGES += system/library/math
86 REQUIRED_PACKAGES += x11/library/libx11
87 REQUIRED_PACKAGES += x11/library/libxcomposite
88 REQUIRED_PACKAGES += x11/library/libxcursor
89 REQUIRED_PACKAGES += x11/library/libxdamage
90 REQUIRED_PACKAGES += x11/library/libxext
91 REQUIRED_PACKAGES += x11/library/libxfixes
92 REQUIRED_PACKAGES += x11/library/libxinerama
93 REQUIRED_PACKAGES += x11/library/libxrandr
94 REQUIRED_PACKAGES += x11/library/libxrender