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
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
= 32_and_64
17 include ..
/..
/..
/make-rules
/shared-macros.mk
20 COMPONENT_VERSION
= 2.24.32
22 COMPONENT_SUMMARY
= GTK
+ - GIMP Toolkit Library for creation of graphical user interfaces
23 COMPONENT_SRC
= $(COMPONENT_NAME
)-$(COMPONENT_VERSION
)
24 COMPONENT_ARCHIVE
= $(COMPONENT_SRC
).
tar.xz
25 COMPONENT_ARCHIVE_HASH
= sha256
:b6c8a93ddda5eabe3bfee1eb39636c9a03d2a56c7b62828b359bf197943c582e
26 COMPONENT_ARCHIVE_URL
= https
://download.gnome.org
/sources
/$(COMPONENT_NAME
)/2.24/$(COMPONENT_ARCHIVE
)
27 COMPONENT_PROJECT_URL
= https
://www.gtk.org
/
29 TEST_TARGET
= $(NO_TESTS
)
30 include $(WS_MAKE_RULES
)/common.mk
33 CFLAGS
+= -I
/usr
/X11
/include
35 COMPONENT_PRE_CONFIGURE_ACTION
= \
36 (chmod
-R u
+r
$(SOURCE_DIR
) && \
37 cp
-r
$(SOURCE_DIR
)/* $(@D
) && \
38 cd
$(@D
) && libtoolize
--force &&\
42 automake
-a
-f
-c
--gnu
&&\
45 CONFIGURE_SCRIPT
= $(@D
)/configure
47 CONFIGURE_OPTIONS
.32 = --sysconfdir
=/etc
48 CONFIGURE_OPTIONS
.64 = --sysconfdir
=/etc
/$(MACH64
)
49 CONFIGURE_OPTIONS
+= --enable-shm
50 CONFIGURE_OPTIONS
+= --with-gdktarget
=x11
51 CONFIGURE_OPTIONS
+= --enable-explicit-deps
=yes
52 CONFIGURE_OPTIONS
+= --without-libjasper
53 CONFIGURE_OPTIONS
+= --enable-man
55 CONFIGURE_ENV
+= XGETTEXT
=/usr
/gnu
/bin
/xgettext
56 CONFIGURE_ENV
+= MSGFMT
=/usr
/gnu
/bin
/msgfmt
57 CONFIGURE_ENV
+= PERL
=$(PERL
)
58 CONFIGURE_ENV
+= PYTHON
=$(PYTHON
)
59 CONFIGURE_ENV
+= GLIB_GENMARSHAL
=/usr
/bin
/glib-genmarshal
60 CONFIGURE_ENV
+= GLIB_MKENUMS
=/usr
/bin
/glib-mkenums
62 # CFLAGS are not passed to compiler when g-ir-scanner is used
63 COMPONENT_BUILD_ENV
+= CFLAGS
="$(CFLAGS)"
64 COMPONENT_BUILD_ENV
+= CC
="$(CC)"
66 COMPONENT_POST_INSTALL_ACTION
= ( $(GSED
) -i
-e
's:/usr/bin/env python:$(PYTHON):' $(PROTO_DIR
)/usr
/bin
/gtk-builder-convert
)
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
+= library
/desktop
/atk
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
+= library
/print/open-printing
81 REQUIRED_PACKAGES
+= system
/library
82 REQUIRED_PACKAGES
+= system
/library
/fontconfig
83 REQUIRED_PACKAGES
+= system
/library
/math
84 REQUIRED_PACKAGES
+= x11
/library
/libx11
85 REQUIRED_PACKAGES
+= x11
/library
/libxcomposite
86 REQUIRED_PACKAGES
+= x11
/library
/libxcursor
87 REQUIRED_PACKAGES
+= x11
/library
/libxdamage
88 REQUIRED_PACKAGES
+= x11
/library
/libxext
89 REQUIRED_PACKAGES
+= x11
/library
/libxfixes
90 REQUIRED_PACKAGES
+= x11
/library
/libxinerama
91 REQUIRED_PACKAGES
+= x11
/library
/libxrandr
92 REQUIRED_PACKAGES
+= x11
/library
/libxrender