| @@ -1,105 +1,106 @@ | | | @@ -1,105 +1,106 @@ |
1 | # $NetBSD: Makefile,v 1.115 2018/04/27 15:08:55 wiz Exp $ | | 1 | # $NetBSD: Makefile,v 1.116 2018/06/13 10:34:18 wiz Exp $ |
2 | | | 2 | |
3 | DISTNAME= gtk+-3.22.30 | | 3 | DISTNAME= gtk+-3.22.30 |
4 | PKGNAME= ${DISTNAME:S/gtk/gtk3/} | | 4 | PKGNAME= ${DISTNAME:S/gtk/gtk3/} |
| | | 5 | PKGREVISION= 1 |
5 | CATEGORIES= x11 gnome | | 6 | CATEGORIES= x11 gnome |
6 | MASTER_SITES= ${MASTER_SITE_GNOME:=sources/gtk+/${PKGVERSION_NOREV:R}/} | | 7 | MASTER_SITES= ${MASTER_SITE_GNOME:=sources/gtk+/${PKGVERSION_NOREV:R}/} |
7 | EXTRACT_SUFX= .tar.xz | | 8 | EXTRACT_SUFX= .tar.xz |
8 | | | 9 | |
9 | MAINTAINER= pkgsrc-users@NetBSD.org | | 10 | MAINTAINER= pkgsrc-users@NetBSD.org |
10 | HOMEPAGE= https://www.gtk.org/ | | 11 | HOMEPAGE= https://www.gtk.org/ |
11 | COMMENT= GIMP Toolkit v3 - libraries for building X11 user interfaces | | 12 | COMMENT= GIMP Toolkit v3 - libraries for building X11 user interfaces |
12 | LICENSE= gnu-lgpl-v2.1 | | 13 | LICENSE= gnu-lgpl-v2.1 |
13 | | | 14 | |
14 | USE_PKGLOCALEDIR= yes | | 15 | USE_PKGLOCALEDIR= yes |
15 | USE_TOOLS+= gmake perl pkg-config bash xgettext msgmerge | | 16 | USE_TOOLS+= gmake perl pkg-config bash xgettext msgmerge |
16 | USE_LANGUAGES= c c++ | | 17 | USE_LANGUAGES= c c++ |
17 | USE_LIBTOOL= yes | | 18 | USE_LIBTOOL= yes |
18 | PTHREAD_AUTO_VARS= yes | | 19 | PTHREAD_AUTO_VARS= yes |
19 | TOOL_DEPENDS+= gdbus-codegen-[0-9]*:../../devel/gdbus-codegen | | 20 | TOOL_DEPENDS+= gdbus-codegen-[0-9]*:../../devel/gdbus-codegen |
20 | TOOL_DEPENDS+= gettext-tools>=0.19.4nb1:../../devel/gettext-tools | | 21 | TOOL_DEPENDS+= gettext-tools>=0.19.4nb1:../../devel/gettext-tools |
21 | # There is no logic in gettext.mk to detect the native version of xgettext, | | 22 | # There is no logic in gettext.mk to detect the native version of xgettext, |
22 | # and we do need it to be compiled with Glade support. | | 23 | # and we do need it to be compiled with Glade support. |
23 | _TOOLS_USE_PKGSRC.xgettext=yes | | 24 | _TOOLS_USE_PKGSRC.xgettext=yes |
24 | | | 25 | |
25 | GNU_CONFIGURE= yes | | 26 | GNU_CONFIGURE= yes |
26 | # XXX there is a subtle bashism in "configure" or a bug in NetBSD's sh | | 27 | # XXX there is a subtle bashism in "configure" or a bug in NetBSD's sh |
27 | CONFIG_SHELL= ${TOOLS_PATH.bash} | | 28 | CONFIG_SHELL= ${TOOLS_PATH.bash} |
28 | CONFIGURE_ARGS+= --sysconfdir=${PREFIX}/libdata | | 29 | CONFIGURE_ARGS+= --sysconfdir=${PREFIX}/libdata |
29 | # Work around build problems, disable unstable PAPI, PR #41608: | | 30 | # Work around build problems, disable unstable PAPI, PR #41608: |
30 | CONFIGURE_ARGS+= --disable-papi | | 31 | CONFIGURE_ARGS+= --disable-papi |
31 | # Avoid regeneration of Makefile.in after configure.ac patch | | 32 | # Avoid regeneration of Makefile.in after configure.ac patch |
32 | CONFIGURE_ARGS+= --disable-maintainer-mode | | 33 | CONFIGURE_ARGS+= --disable-maintainer-mode |
33 | MAKE_ENV+= PKGLOCALEDIR=${PKGLOCALEDIR} | | 34 | MAKE_ENV+= PKGLOCALEDIR=${PKGLOCALEDIR} |
34 | TEST_TARGET= check | | 35 | TEST_TARGET= check |
35 | | | 36 | |
36 | PKGCONFIG_OVERRIDE+= gdk-3.0.pc.in | | 37 | PKGCONFIG_OVERRIDE+= gdk-3.0.pc.in |
37 | PKGCONFIG_OVERRIDE+= gtk+-3.0.pc.in | | 38 | PKGCONFIG_OVERRIDE+= gtk+-3.0.pc.in |
38 | PKGCONFIG_OVERRIDE+= gtk+-unix-print-3.0.pc.in | | 39 | PKGCONFIG_OVERRIDE+= gtk+-unix-print-3.0.pc.in |
39 | PKGCONFIG_OVERRIDE+= gail-3.0.pc.in | | 40 | PKGCONFIG_OVERRIDE+= gail-3.0.pc.in |
40 | | | 41 | |
41 | INSTALLATION_DIRS+= lib/gtk-3.0/immodules | | 42 | INSTALLATION_DIRS+= lib/gtk-3.0/immodules |
42 | INSTALLATION_DIRS+= lib/gtk-3.0/modules | | 43 | INSTALLATION_DIRS+= lib/gtk-3.0/modules |
43 | INSTALLATION_DIRS+= lib/gtk-3.0/3.0.0/filesystems | | 44 | INSTALLATION_DIRS+= lib/gtk-3.0/3.0.0/filesystems |
44 | | | 45 | |
45 | BUILD_DIRS= . demos/gtk-demo | | 46 | BUILD_DIRS= . demos/gtk-demo |
46 | | | 47 | |
47 | .include "../../mk/bsd.prefs.mk" | | 48 | .include "../../mk/bsd.prefs.mk" |
48 | | | 49 | |
49 | # gtk/Makefile.am hardcodes 'grep -o' so require GNU grep on platforms | | 50 | # gtk/Makefile.am hardcodes 'grep -o' so require GNU grep on platforms |
50 | # which do not have it. | | 51 | # which do not have it. |
51 | .if ${OPSYS} == "SunOS" | | 52 | .if ${OPSYS} == "SunOS" |
52 | BUILD_DEPENDS+= grep-[0-9]*:../../textproc/grep | | 53 | BUILD_DEPENDS+= grep-[0-9]*:../../textproc/grep |
53 | TOOLS_PATH.grep= ${PREFIX}/bin/ggrep | | 54 | TOOLS_PATH.grep= ${PREFIX}/bin/ggrep |
54 | .endif | | 55 | .endif |
55 | # isnan and isinf are part of libc, not libm on DragonFly | | 56 | # isnan and isinf are part of libc, not libm on DragonFly |
56 | # conf tests fail detection due to conflicting definitions, just skip them | | 57 | # conf tests fail detection due to conflicting definitions, just skip them |
57 | CONFIGURE_ENV.DragonFly+= ac_cv_func_isinf=yes | | 58 | CONFIGURE_ENV.DragonFly+= ac_cv_func_isinf=yes |
58 | CONFIGURE_ENV.DragonFly+= ac_cv_func_isnan=yes | | 59 | CONFIGURE_ENV.DragonFly+= ac_cv_func_isnan=yes |
59 | | | 60 | |
60 | CFLAGS.SunOS+= -std=gnu99 | | 61 | CFLAGS.SunOS+= -std=gnu99 |
61 | | | 62 | |
62 | CPPFLAGS+= -DPREFIX="\"${PREFIX}\"" | | 63 | CPPFLAGS+= -DPREFIX="\"${PREFIX}\"" |
63 | | | 64 | |
64 | # We remove the module databases during post-install since we create them | | 65 | # We remove the module databases during post-install since we create them |
65 | # anew in the +INSTALL script as part of the POST-INSTALL action. | | 66 | # anew in the +INSTALL script as part of the POST-INSTALL action. |
66 | # | | 67 | # |
67 | post-install: | | 68 | post-install: |
68 | ${RM} -f ${DESTDIR}${GTK3_IMMODULES_DB} | | 69 | ${RM} -f ${DESTDIR}${GTK3_IMMODULES_DB} |
69 | | | 70 | |
70 | FILES_SUBST+= GTK_UPDATE_ICON_CACHE="${PREFIX}/bin/gtk-update-icon-cache" | | 71 | FILES_SUBST+= GTK_UPDATE_ICON_CACHE="${PREFIX}/bin/gtk-update-icon-cache" |
71 | FILES_SUBST+= ICON_THEME_DIR="${PREFIX}/share/icons" | | 72 | FILES_SUBST+= ICON_THEME_DIR="${PREFIX}/share/icons" |
72 | INSTALL_TEMPLATES+= ../../x11/gtk2/files/icon-cache.tmpl | | 73 | INSTALL_TEMPLATES+= ../../x11/gtk2/files/icon-cache.tmpl |
73 | | | 74 | |
74 | _BUILDING_GTK3= yes | | 75 | _BUILDING_GTK3= yes |
75 | .include "modules.mk" | | 76 | .include "modules.mk" |
76 | | | 77 | |
77 | .include "../../databases/shared-mime-info/buildlink3.mk" | | 78 | .include "../../databases/shared-mime-info/buildlink3.mk" |
78 | BUILDLINK_API_DEPENDS.atk+= atk>=2.15.1 | | 79 | BUILDLINK_API_DEPENDS.atk+= atk>=2.15.1 |
79 | .include "../../devel/atk/buildlink3.mk" | | 80 | .include "../../devel/atk/buildlink3.mk" |
80 | .include "../../devel/gettext-lib/buildlink3.mk" | | 81 | .include "../../devel/gettext-lib/buildlink3.mk" |
81 | BUILDLINK_API_DEPENDS.glib2+= glib2>=2.49.4 | | 82 | BUILDLINK_API_DEPENDS.glib2+= glib2>=2.49.4 |
82 | .include "../../devel/glib2/buildlink3.mk" | | 83 | .include "../../devel/glib2/buildlink3.mk" |
83 | BUILDLINK_API_DEPENDS.gdk-pixbuf2+= gdk-pixbuf2>=2.30.0 | | 84 | BUILDLINK_API_DEPENDS.gdk-pixbuf2+= gdk-pixbuf2>=2.30.0 |
84 | .include "../../graphics/gdk-pixbuf2/buildlink3.mk" | | 85 | .include "../../graphics/gdk-pixbuf2/buildlink3.mk" |
85 | BUILDLINK_DEPMETHOD.gobject-introspection:= build | | 86 | BUILDLINK_DEPMETHOD.gobject-introspection:= build |
86 | BUILDLINK_API_DEPENDS.gobject-introspection+= gobject-introspection>=1.39.0 | | 87 | BUILDLINK_API_DEPENDS.gobject-introspection+= gobject-introspection>=1.39.0 |
87 | .include "../../devel/gobject-introspection/buildlink3.mk" | | 88 | .include "../../devel/gobject-introspection/buildlink3.mk" |
88 | | | 89 | |
89 | .include "options.mk" | | 90 | .include "options.mk" |
90 | | | 91 | |
91 | .include "../../devel/glib2/schemas.mk" | | 92 | .include "../../devel/glib2/schemas.mk" |
92 | | | 93 | |
93 | BUILDLINK_API_DEPENDS.pango+= pango>=1.37.3 | | 94 | BUILDLINK_API_DEPENDS.pango+= pango>=1.37.3 |
94 | .include "../../devel/pango/buildlink3.mk" | | 95 | .include "../../devel/pango/buildlink3.mk" |
95 | .include "../../fonts/fontconfig/buildlink3.mk" | | 96 | .include "../../fonts/fontconfig/buildlink3.mk" |
96 | BUILDLINK_API_DEPENDS.cairo+= cairo>=1.14.0 | | 97 | BUILDLINK_API_DEPENDS.cairo+= cairo>=1.14.0 |
97 | .include "../../graphics/cairo/buildlink3.mk" | | 98 | .include "../../graphics/cairo/buildlink3.mk" |
98 | .include "../../graphics/cairo-gobject/buildlink3.mk" | | 99 | .include "../../graphics/cairo-gobject/buildlink3.mk" |
99 | .include "../../graphics/freetype2/buildlink3.mk" | | 100 | .include "../../graphics/freetype2/buildlink3.mk" |
100 | BUILDLINK_API_DEPENDS.libepoxy+= libepoxy>=1.2nb2 | | 101 | BUILDLINK_API_DEPENDS.libepoxy+= libepoxy>=1.2nb2 |
101 | .include "../../graphics/libepoxy/buildlink3.mk" | | 102 | .include "../../graphics/libepoxy/buildlink3.mk" |
102 | .include "../../graphics/hicolor-icon-theme/buildlink3.mk" | | 103 | .include "../../graphics/hicolor-icon-theme/buildlink3.mk" |
103 | .include "../../sysutils/desktop-file-utils/desktopdb.mk" | | 104 | .include "../../sysutils/desktop-file-utils/desktopdb.mk" |
104 | | | 105 | |
105 | .include "../../mk/bsd.pkg.mk" | | 106 | .include "../../mk/bsd.pkg.mk" |