2013-03-08 11:51:34 +01:00
|
|
|
# Created by: Vanilla I. Shu <vanilla@MinJe.com.TW>
|
1999-08-31 05:04:38 +02:00
|
|
|
# $FreeBSD$
|
2015-08-05 21:13:24 +02:00
|
|
|
# Please keep gtk30 in sync with the following x11-themes ports:
|
|
|
|
# adwaita-icon-theme, gnome-themes-standard and mate-themes
|
1997-10-15 18:07:05 +02:00
|
|
|
|
2000-04-10 03:11:24 +02:00
|
|
|
PORTNAME= gtk
|
2019-03-23 01:01:04 +01:00
|
|
|
PORTVERSION= 3.24.7
|
1998-08-08 01:08:39 +02:00
|
|
|
CATEGORIES= x11-toolkits
|
2015-05-14 12:15:04 +02:00
|
|
|
MASTER_SITES= GNOME/sources/gtk+/${PORTVERSION:C/^([0-9]+\.[0-9]+).*/\1/}
|
2013-10-02 18:24:19 +02:00
|
|
|
PKGNAMESUFFIX= 3
|
2000-04-10 03:11:24 +02:00
|
|
|
DISTNAME= gtk+-${PORTVERSION}
|
2018-09-30 13:58:29 +02:00
|
|
|
DIST_SUBDIR= gnome
|
1997-10-15 18:07:05 +02:00
|
|
|
|
2001-05-11 18:36:50 +02:00
|
|
|
MAINTAINER= gnome@FreeBSD.org
|
2003-03-07 07:14:21 +01:00
|
|
|
COMMENT= Gimp Toolkit for X11 GUI (current stable version)
|
1997-10-15 18:07:05 +02:00
|
|
|
|
2010-11-20 16:37:08 +01:00
|
|
|
LICENSE= LGPL20
|
2013-03-08 11:51:34 +01:00
|
|
|
|
2013-12-30 22:09:09 +01:00
|
|
|
PORTSCOUT= limit:1,even
|
2006-05-10 01:45:35 +02:00
|
|
|
|
2016-04-01 16:33:55 +02:00
|
|
|
BUILD_DEPENDS+= at-spi2-atk>=0:accessibility/at-spi2-atk
|
2017-04-23 10:35:28 +02:00
|
|
|
LIB_DEPENDS= libepoxy.so:graphics/libepoxy \
|
2019-03-23 01:01:04 +01:00
|
|
|
libfribidi.so:converters/fribidi \
|
2017-04-23 10:35:28 +02:00
|
|
|
libfontconfig.so:x11-fonts/fontconfig \
|
|
|
|
libfreetype.so:print/freetype2 \
|
|
|
|
libharfbuzz.so:print/harfbuzz
|
2016-04-01 16:33:55 +02:00
|
|
|
RUN_DEPENDS+= hicolor-icon-theme>=0:misc/hicolor-icon-theme \
|
|
|
|
adwaita-icon-theme>=0:x11-themes/adwaita-icon-theme \
|
2017-12-08 16:31:37 +01:00
|
|
|
at-spi2-atk>=0:accessibility/at-spi2-atk \
|
|
|
|
librsvg2>=0:graphics/librsvg2
|
1998-12-10 15:30:28 +01:00
|
|
|
|
2013-09-12 19:55:41 +02:00
|
|
|
USE_PERL5= build
|
2013-12-30 22:09:09 +01:00
|
|
|
USE_LDCONFIG= yes
|
|
|
|
GNU_CONFIGURE= yes
|
2017-04-23 10:35:28 +02:00
|
|
|
USE_GNOME= atk cairo gdkpixbuf2 introspection:build pango
|
2018-09-30 13:58:29 +02:00
|
|
|
USES= compiler:c11 gettext gmake gnome libtool localbase \
|
|
|
|
pathfix perl5 pkgconfig tar:xz
|
2008-09-05 00:05:34 +02:00
|
|
|
USE_XORG= xext xrender x11 xinerama xi xrandr xcursor xfixes xdamage \
|
|
|
|
xcomposite
|
2015-08-05 21:13:24 +02:00
|
|
|
CONFIGURE_ARGS= --enable-x11-backend \
|
2014-11-19 12:49:04 +01:00
|
|
|
--enable-introspection
|
2017-04-23 10:35:28 +02:00
|
|
|
CPPFLAGS+= -fno-omit-frame-pointer
|
2014-12-04 23:20:09 +01:00
|
|
|
INSTALLS_ICONS= yes
|
2014-09-01 20:12:58 +02:00
|
|
|
INSTALL_TARGET= install-strip
|
|
|
|
|
2019-03-23 01:01:04 +01:00
|
|
|
LIBVERSION= 0.2404.3
|
2014-09-01 20:12:58 +02:00
|
|
|
PLIST_SUB+= LIBVERSION=${LIBVERSION}
|
2003-11-02 16:06:51 +01:00
|
|
|
|
2013-03-08 11:51:34 +01:00
|
|
|
GLIB_SCHEMAS= org.gtk.Demo.gschema.xml \
|
|
|
|
org.gtk.Settings.ColorChooser.gschema.xml \
|
2014-11-19 12:49:04 +01:00
|
|
|
org.gtk.Settings.Debug.gschema.xml \
|
2018-03-30 13:33:23 +02:00
|
|
|
org.gtk.Settings.EmojiChooser.gschema.xml \
|
2015-08-05 21:13:24 +02:00
|
|
|
org.gtk.Settings.FileChooser.gschema.xml
|
2011-07-30 11:20:22 +02:00
|
|
|
|
2018-03-27 00:49:58 +02:00
|
|
|
OPTIONS_DEFINE= CUPS CLOUDPRINT COLORD DEBUG BROADWAY WAYLAND
|
2018-11-12 00:54:06 +01:00
|
|
|
OPTIONS_DEFAULT=CUPS COLORD BROADWAY WAYLAND
|
2014-11-19 12:49:04 +01:00
|
|
|
OPTIONS_SUB= yes
|
2015-08-05 21:13:24 +02:00
|
|
|
|
|
|
|
BROADWAY_DESC= Enable GDK Broadway backend for showing GTK+ in the webbrowser using HTML5 and web sockets.
|
|
|
|
BROADWAY_CONFIGURE_ENABLE= broadway-backend
|
|
|
|
|
2013-03-08 11:51:34 +01:00
|
|
|
COLORD_DESC= Color profile support
|
2016-04-01 16:33:55 +02:00
|
|
|
COLORD_LIB_DEPENDS= libcolord.so:graphics/colord
|
2014-11-19 12:49:04 +01:00
|
|
|
COLORD_CONFIGURE_ENABLE=colord
|
2015-08-05 21:13:24 +02:00
|
|
|
|
2016-04-01 16:33:55 +02:00
|
|
|
CUPS_LIB_DEPENDS= libcups.so:print/cups
|
2014-11-19 12:49:04 +01:00
|
|
|
CUPS_CONFIGURE_ENABLE= cups
|
2015-08-05 21:13:24 +02:00
|
|
|
|
2014-11-19 12:49:04 +01:00
|
|
|
CLOUDPRINT_DESC= Cloud printing support
|
|
|
|
CLOUDPRINT_CONFIGURE_ENABLE= cloudprint
|
2018-09-30 13:58:29 +02:00
|
|
|
CLOUDPRINT_USE= gnome=libxml2
|
2016-04-01 16:33:55 +02:00
|
|
|
CLOUDPRINT_LIB_DEPENDS= librest-0.7.so:devel/librest \
|
2018-09-30 13:58:29 +02:00
|
|
|
libsoup-2.4.so:devel/libsoup \
|
2016-04-01 16:33:55 +02:00
|
|
|
libjson-glib-1.0.so:devel/json-glib
|
2015-08-05 21:13:24 +02:00
|
|
|
|
2018-10-21 03:14:48 +02:00
|
|
|
# don't explicitly disable debug, this causes segfaults. See ports r437293
|
|
|
|
DEBUG_CONFIGURE_ON= --enable-debug=yes
|
|
|
|
|
2018-09-30 13:58:29 +02:00
|
|
|
WAYLAND_DESC= GDK Wayland backend
|
|
|
|
WAYLAND_CONFIGURE_ENABLE= wayland-backend
|
|
|
|
WAYLAND_BUILD_DEPENDS= wayland-protocols>=0:graphics/wayland-protocols \
|
|
|
|
v4l_compat>=0:multimedia/v4l_compat
|
2018-10-16 01:59:23 +02:00
|
|
|
WAYLAND_LIB_DEPENDS= libwayland-egl.so:graphics/wayland \
|
2018-09-30 13:58:29 +02:00
|
|
|
libxkbcommon.so:x11/libxkbcommon
|
|
|
|
WAYLAND_RUN_DEPENDS= wayland-protocols>=0:graphics/wayland-protocols
|
2019-02-16 18:13:24 +01:00
|
|
|
WAYLAND_USES= gl
|
2018-09-30 13:58:29 +02:00
|
|
|
WAYLAND_USE= GL=egl
|
|
|
|
|
2003-02-07 19:42:25 +01:00
|
|
|
post-patch:
|
2003-09-24 20:38:54 +02:00
|
|
|
@${REINPLACE_CMD} -e 's|[{]libdir[}]/locale|{datadir}/locale|g' \
|
|
|
|
${WRKSRC}/configure
|
1999-01-20 23:14:29 +01:00
|
|
|
|
2011-07-30 11:20:22 +02:00
|
|
|
pre-configure:
|
2015-11-24 05:08:55 +01:00
|
|
|
# .if !exists() evaluates too early before cairo has a chance to be installed
|
|
|
|
@if ! pkg-config --exists cairo-xlib; then \
|
|
|
|
${ECHO_MSG} "${PKGNAME}: Needs cairo with X11 support enabled."; \
|
|
|
|
${FALSE}; \
|
|
|
|
fi
|
2011-07-30 11:20:22 +02:00
|
|
|
|
1999-01-20 23:14:29 +01:00
|
|
|
pre-build:
|
2016-10-21 14:51:40 +02:00
|
|
|
@${RM} -r ${WRKSRC}/docs/gtk.info*
|
1999-01-20 23:14:29 +01:00
|
|
|
|
2004-12-13 01:59:03 +01:00
|
|
|
post-install:
|
2013-12-30 22:09:09 +01:00
|
|
|
@${MKDIR} ${STAGEDIR}${PREFIX}/lib/gtk-3.0/modules
|
|
|
|
@${MKDIR} ${STAGEDIR}${PREFIX}/lib/gtk-3.0/${GTK3_VERSION}/engines
|
|
|
|
@${MKDIR} ${STAGEDIR}${PREFIX}/lib/gtk-3.0/${GTK3_VERSION}/loaders
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/docs/reference/gtk/gtk-query-immodules-3.0.1 \
|
|
|
|
${STAGEDIR}${PREFIX}/man/man1
|
2004-12-13 01:59:03 +01:00
|
|
|
|
2011-07-30 11:20:22 +02:00
|
|
|
.include <bsd.port.mk>
|