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
17 USE_DEFAULT_TEST_TRANSFORMS
= yes
18 include ..
/..
/..
/make-rules
/shared-macros.mk
21 COMPONENT_VERSION
= 2.24.33
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
33 CFLAGS
+= -I
/usr
/X11
/include
35 COMPONENT_PREP_ACTION
= \
36 ( cd
$(@D
) && PATH
="$(PATH)" libtoolize
--force && \
40 automake
-a
-f
-c
--gnu
&&\
43 CONFIGURE_OPTIONS
+= --sysconfdir
=$(ETCDIR
)
44 #CONFIGURE_OPTIONS += --sysconfdir=$(ETCDIR)/$(MACH64)
45 CONFIGURE_OPTIONS
+= --enable-shm
46 CONFIGURE_OPTIONS
+= --with-gdktarget
=x11
47 CONFIGURE_OPTIONS
+= --enable-explicit-deps
=yes
48 CONFIGURE_OPTIONS
+= --enable-man
50 CONFIGURE_ENV
+= XGETTEXT
=/usr
/gnu
/bin
/xgettext
51 CONFIGURE_ENV
+= MSGFMT
=/usr
/gnu
/bin
/msgfmt
52 CONFIGURE_ENV
+= PYTHON
=$(PYTHON
)
53 CONFIGURE_ENV
+= GLIB_GENMARSHAL
=/usr
/bin
/glib-genmarshal
54 CONFIGURE_ENV
+= GLIB_MKENUMS
=/usr
/bin
/glib-mkenums
56 # CFLAGS are not passed to compiler when g-ir-scanner is used
57 COMPONENT_BUILD_ENV
+= CFLAGS
="$(CFLAGS)"
58 COMPONENT_BUILD_ENV
+= CC
="$(CC)"
60 COMPONENT_POST_INSTALL_ACTION
= ( $(GSED
) -i
-e
's:/usr/bin/env python:$(PYTHON):' $(PROTO_DIR
)/usr
/bin
/gtk-builder-convert
)
62 COMPONENT_TEST_TRANSFORMS
+= \
63 ' -e "/check in/p" ' \
67 # Manually added dependencies
68 REQUIRED_PACKAGES
+= developer
/documentation-tool
/gtk-doc
69 REQUIRED_PACKAGES
+= library
/desktop
/gobject
/gobject-introspection
71 # Auto-generated dependencies
72 PYTHON_REQUIRED_PACKAGES
+= runtime
/python
73 REQUIRED_PACKAGES
+= library
/desktop
/atk
74 REQUIRED_PACKAGES
+= library
/desktop
/cairo
75 REQUIRED_PACKAGES
+= library
/desktop
/gdk-pixbuf
76 REQUIRED_PACKAGES
+= library
/desktop
/pango
77 REQUIRED_PACKAGES
+= library
/glib2
78 REQUIRED_PACKAGES
+= library
/print/cups-libs
79 REQUIRED_PACKAGES
+= system
/library
80 REQUIRED_PACKAGES
+= system
/library
/fontconfig
81 REQUIRED_PACKAGES
+= system
/library
/math
82 REQUIRED_PACKAGES
+= x11
/library
/libx11
83 REQUIRED_PACKAGES
+= x11
/library
/libxcomposite
84 REQUIRED_PACKAGES
+= x11
/library
/libxcursor
85 REQUIRED_PACKAGES
+= x11
/library
/libxdamage
86 REQUIRED_PACKAGES
+= x11
/library
/libxext
87 REQUIRED_PACKAGES
+= x11
/library
/libxfixes
88 REQUIRED_PACKAGES
+= x11
/library
/libxinerama
89 REQUIRED_PACKAGES
+= x11
/library
/libxrandr
90 REQUIRED_PACKAGES
+= x11
/library
/libxrender