| 1 |
# vim: ft=make ts=4 sw=4 noet |
| 2 |
.DEFAULT_GOAL := all |
| 3 |
|
| 4 |
NAME = gtk |
| 5 |
VERSION = 3.24.52 |
| 6 |
GARTYPE = v2 |
| 7 |
|
| 8 |
MASTER_SITES = https://download.gnome.org/sources/gtk/3.24/ |
| 9 |
DISTFILES += gtk-$(VERSION).tar.xz |
| 10 |
|
| 11 |
# GAR uses DISTNAME = $(NAME)-$(VERSION) by default, but the tarball is gtk-* |
| 12 |
DISTNAME = gtk-$(VERSION) |
| 13 |
|
| 14 |
LICENSE = COPYING |
| 15 |
|
| 16 |
PACKAGES += OZSWgtk3 |
| 17 |
SPKG_DESC_OZSWgtk3 = GTK+ graphical toolkit (version 3) |
| 18 |
CATALOGNAME_OZSWgtk3 = gtk3 |
| 19 |
|
| 20 |
# Build-time dependencies |
| 21 |
BUILD_DEP_PKGS += OZSWglib OZSWpango OZSWcairo OZSWatk OZSWgdkpixbuf OZSWpkgconf |
| 22 |
BUILD_DEP_PKGS += OZSWlibX11 OZSWlibXext OZSWlibXrender |
| 23 |
BUILD_DEP_PKGS += OZSWlibXi OZSWlibXrandr OZSWlibXcursor |
| 24 |
BUILD_DEP_PKGS += OZSWlibXfixes OZSWlibXdamage OZSWlibXcomposite OZSWlibXinerama |
| 25 |
BUILD_DEP_PKGS += OZSWrandrproto OZSWcompositeproto OZSWdamageproto |
| 26 |
BUILD_DEP_PKGS += OZSWfixesproto OZSWxineramaproto OZSWinputproto |
| 27 |
BUILD_DEP_PKGS += OZSWfontconfig OZSWfreetype |
| 28 |
|
| 29 |
# Runtime dependencies |
| 30 |
RUNTIME_DEP_PKGS_OZSWgtk3 += OZSWglib OZSWpango OZSWcairo OZSWatk OZSWgdkpixbuf |
| 31 |
RUNTIME_DEP_PKGS_OZSWgtk3 += OZSWlibX11 OZSWlibXext OZSWlibXrender |
| 32 |
RUNTIME_DEP_PKGS_OZSWgtk3 += OZSWlibXi OZSWlibXrandr OZSWlibXcursor |
| 33 |
RUNTIME_DEP_PKGS_OZSWgtk3 += OZSWlibXfixes OZSWlibXdamage OZSWlibXcomposite OZSWlibXinerama |
| 34 |
RUNTIME_DEP_PKGS_OZSWgtk3 += OZSWfontconfig OZSWfreetype |
| 35 |
|
| 36 |
EXTENSIONS = 1 |
| 37 |
EXTRA_LD_FLAGS += -lsocket -lnsl |
| 38 |
|
| 39 |
# X11 backend only — no Wayland, no Broadway |
| 40 |
EXTRA_CONFIGURE_ARGS += --enable-x11-backend |
| 41 |
EXTRA_CONFIGURE_ARGS += --disable-wayland-backend |
| 42 |
EXTRA_CONFIGURE_ARGS += --disable-broadway-backend |
| 43 |
EXTRA_CONFIGURE_ARGS += --disable-mir-backend |
| 44 |
|
| 45 |
# Avoid heavy optional deps |
| 46 |
EXTRA_CONFIGURE_ARGS += --disable-introspection |
| 47 |
EXTRA_CONFIGURE_ARGS += --disable-gtk-doc |
| 48 |
EXTRA_CONFIGURE_ARGS += --disable-man |
| 49 |
EXTRA_CONFIGURE_ARGS += --disable-schemas-compile |
| 50 |
|
| 51 |
# Don't try to print/save via external tools at install time |
| 52 |
EXTRA_CONFIGURE_ARGS += --disable-papi |
| 53 |
EXTRA_CONFIGURE_ARGS += --disable-cups |
| 54 |
|
| 55 |
post-configure: |
| 56 |
@find $(WORKSRC) -name "libtool" -type f -exec \ |
| 57 |
gsed -i 's/ECHO="print -r --"/ECHO="printf %s\\n"/g' {} \; |
| 58 |
@$(MAKECOOKIE) |
| 59 |
|
| 60 |
include gar/category.mk |