|
1 # |
|
2 # CDDL HEADER START |
|
3 # |
|
4 # The contents of this file are subject to the terms of the |
|
5 # Common Development and Distribution License (the "License"). |
|
6 # You may not use this file except in compliance with the License. |
|
7 # |
|
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE |
|
9 # or http://www.opensolaris.org/os/licensing. |
|
10 # See the License for the specific language governing permissions |
|
11 # and limitations under the License. |
|
12 # |
|
13 # When distributing Covered Code, include this CDDL HEADER in each |
|
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE. |
|
15 # If applicable, add the following below this CDDL HEADER, with the |
|
16 # fields enclosed by brackets "[]" replaced with your own identifying |
|
17 # information: Portions Copyright [yyyy] [name of copyright owner] |
|
18 # |
|
19 # CDDL HEADER END |
|
20 # |
|
21 |
|
22 # |
|
23 # Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved. |
|
24 # |
|
25 |
|
26 # All components using gobject-introspection must be built with gcc as |
|
27 # gobject-introspection does not produce correct results when using Studio. |
|
28 COMPILER = gcc |
|
29 BUILD_BITS = 32_and_64 |
|
30 include ../../../make-rules/shared-macros.mk |
|
31 |
|
32 COMPONENT_NAME= gtk2 |
|
33 COMPONENT_VERSION= 2.24.28 |
|
34 COMPONENT_PROJECT_URL= http://www.gtk.org/ |
|
35 COMPONENT_SRC= gtk+-$(COMPONENT_VERSION) |
|
36 COMPONENT_ARCHIVE_HASH= \ |
|
37 sha256:b2c6441e98bc5232e5f9bba6965075dcf580a8726398f7374d39f90b88ed4656 |
|
38 COMPONENT_ARCHIVE_URL= https://download.gnome.org/sources/gtk+/2.24/$(COMPONENT_ARCHIVE) |
|
39 COMPONENT_BUGDB= gnome/gtk+ |
|
40 |
|
41 TPNO= 24778 |
|
42 |
|
43 ETCDIR.64="$(ETCDIR)/$(MACH64)" |
|
44 |
|
45 include $(WS_MAKE_RULES)/gnome-component.mk |
|
46 |
|
47 CFLAGS += $(CPP_XPG6MODE) |
|
48 |
|
49 # Generate man pages. |
|
50 CONFIGURE_OPTIONS += --enable-man |
|
51 # Required for other components. |
|
52 CONFIGURE_OPTIONS += --enable-introspection |
|
53 CONFIGURE_OPTIONS += --with-x |
|
54 |
|
55 # Forcibly disable use of medialib since it's being removed soon in s12 |
|
56 CONFIGURE_ENV += ac_cv_lib_mlib_mlib_ImageSetStruct=no |
|
57 |
|
58 # Tell g-ir-scanner which compiler to use since upstream Makefile forgot to |
|
59 COMPONENT_BUILD_ENV += INTROSPECTION_SCANNER_ENV='CC=$(CC_FOR_BUILD)' |
|
60 |
|
61 # Generate and install architecture-specific configuration files. |
|
62 PROTOETCGTKDIR.32= $(PROTO_DIR)/$(ETCDIR.32)/gtk-2.0 |
|
63 PROTOETCGTKDIR.64= $(PROTO_DIR)/$(ETCDIR.64)/gtk-2.0 |
|
64 PROTOETCIMMCONF.32= $(PROTOETCGTKDIR.32)/gtk.immodules |
|
65 PROTOETCIMMCONF.64= $(PROTOETCGTKDIR.64)/gtk.immodules |
|
66 |
|
67 $(PROTOETCIMMCONF.32): |
|
68 $(MKDIR) $(PROTOETCGTKDIR.32); \ |
|
69 LD_LIBRARY_PATH=$(PROTO_DIR)/$(USRLIB.32) \ |
|
70 $(PROTOUSRBINDIR)/gtk-query-immodules-2.0 \ |
|
71 $(PROTOUSRLIBDIR)/gtk-2.0/*/immodules/*.so | \ |
|
72 $(GSED) -e "s#$(PROTO_DIR)/##" > $(PROTOETCIMMCONF.32) |
|
73 |
|
74 $(PROTOETCIMMCONF.64): |
|
75 $(MKDIR) $(PROTOETCGTKDIR.64); \ |
|
76 LD_LIBRARY_PATH=$(PROTO_DIR)/$(USRLIB.64) \ |
|
77 $(PROTOUSRBINDIR64)/gtk-query-immodules-2.0 \ |
|
78 $(PROTOUSRLIBDIR64)/gtk-2.0/*/immodules/*.so | \ |
|
79 $(GSED) -e "s#$(PROTO_DIR)/##" > $(PROTOETCIMMCONF.64) |
|
80 |
|
81 install: $(PROTOETCIMMCONF.32) $(PROTOETCIMMCONF.64) |
|
82 |
|
83 # Needed for "gmake test" to work successfully. |
|
84 unexport SHELLOPTS |
|
85 |
|
86 # Strip pids from test output, since they're always different |
|
87 COMPONENT_TEST_TRANSFORMS += '-e "s% (pid=[0-9]*)%%"' |
|
88 |
|
89 COMPONENT_TEST_MASTER = $(COMPONENT_TEST_RESULTS_DIR)/results-all.master |
|
90 |
|
91 REQUIRED_PACKAGES += data/docbook/docbook-dtds |
|
92 REQUIRED_PACKAGES += data/docbook/docbook-style-dsssl |
|
93 REQUIRED_PACKAGES += data/docbook/docbook-style-xsl |
|
94 REQUIRED_PACKAGES += developer/documentation-tool/gtk-doc |
|
95 REQUIRED_PACKAGES += developer/gnu-indent |
|
96 REQUIRED_PACKAGES += library/desktop/atk |
|
97 REQUIRED_PACKAGES += library/desktop/cairo |
|
98 REQUIRED_PACKAGES += library/desktop/gdk-pixbuf |
|
99 REQUIRED_PACKAGES += library/desktop/gobject/gobject-introspection |
|
100 REQUIRED_PACKAGES += library/desktop/pango |
|
101 REQUIRED_PACKAGES += library/glib2 |
|
102 REQUIRED_PACKAGES += library/libxslt |
|
103 REQUIRED_PACKAGES += library/print/cups-libs |
|
104 REQUIRED_PACKAGES += print/cups |
|
105 REQUIRED_PACKAGES += $(PERL_PKG) |
|
106 REQUIRED_PACKAGES += runtime/python-27 |
|
107 REQUIRED_PACKAGES += system/library/fontconfig |
|
108 REQUIRED_PACKAGES += system/library/gcc/gcc-c-runtime |
|
109 REQUIRED_PACKAGES += system/library/math |
|
110 REQUIRED_PACKAGES += system/linker |
|
111 REQUIRED_PACKAGES += x11/library/libx11 |
|
112 REQUIRED_PACKAGES += x11/library/libxcomposite |
|
113 REQUIRED_PACKAGES += x11/library/libxcursor |
|
114 REQUIRED_PACKAGES += x11/library/libxdamage |
|
115 REQUIRED_PACKAGES += x11/library/libxext |
|
116 REQUIRED_PACKAGES += x11/library/libxfixes |
|
117 REQUIRED_PACKAGES += x11/library/libxinerama |
|
118 REQUIRED_PACKAGES += x11/library/libxrandr |
|
119 REQUIRED_PACKAGES += x11/library/libxrender |
|
120 # Tests run against an Xvfb server |
|
121 REQUIRED_PACKAGES += x11/server/xvfb |