| @@ -1,26 +1,27 @@ | | | @@ -1,26 +1,27 @@ |
1 | # $NetBSD: Makefile,v 1.160 2021/04/01 07:02:23 adam Exp $ | | 1 | # $NetBSD: Makefile,v 1.161 2021/04/09 21:22:29 nia Exp $ |
2 | | | 2 | |
3 | DISTNAME= gtk+-3.24.28 | | 3 | DISTNAME= gtk+-3.24.28 |
4 | PKGNAME= ${DISTNAME:S/gtk/gtk3/} | | 4 | PKGNAME= ${DISTNAME:S/gtk/gtk3/} |
5 | CATEGORIES= x11 gnome | | 5 | CATEGORIES= x11 gnome |
6 | MASTER_SITES= ${MASTER_SITE_GNOME:=sources/gtk+/${PKGVERSION_NOREV:R}/} | | 6 | MASTER_SITES= ${MASTER_SITE_GNOME:=sources/gtk+/${PKGVERSION_NOREV:R}/} |
7 | EXTRACT_SUFX= .tar.xz | | 7 | EXTRACT_SUFX= .tar.xz |
8 | | | 8 | |
9 | MAINTAINER= pkgsrc-users@NetBSD.org | | 9 | MAINTAINER= pkgsrc-users@NetBSD.org |
10 | HOMEPAGE= https://www.gtk.org/ | | 10 | HOMEPAGE= https://www.gtk.org/ |
11 | COMMENT= GIMP Toolkit v3 - libraries for building X11 user interfaces | | 11 | COMMENT= GIMP Toolkit v3 - libraries for building X11 user interfaces |
12 | LICENSE= gnu-lgpl-v2.1 | | 12 | LICENSE= gnu-lgpl-v2.1 |
13 | | | 13 | |
| | | 14 | # "error: 'for' loop initial declarations are only allowed in C99 mode" |
14 | USE_LANGUAGES= c c++ | | 15 | USE_LANGUAGES= c c++ |
15 | USE_LIBTOOL= yes | | 16 | USE_LIBTOOL= yes |
16 | USE_PKGLOCALEDIR= yes | | 17 | USE_PKGLOCALEDIR= yes |
17 | USE_TOOLS+= ggrep gmake perl pkg-config bash xgettext msgmerge | | 18 | USE_TOOLS+= ggrep gmake perl pkg-config bash xgettext msgmerge |
18 | GNU_CONFIGURE= yes | | 19 | GNU_CONFIGURE= yes |
19 | PTHREAD_AUTO_VARS= yes | | 20 | PTHREAD_AUTO_VARS= yes |
20 | TOOL_DEPENDS+= gdbus-codegen-[0-9]*:../../devel/gdbus-codegen | | 21 | TOOL_DEPENDS+= gdbus-codegen-[0-9]*:../../devel/gdbus-codegen |
21 | TOOL_DEPENDS+= gettext-tools>=0.19.4nb1:../../devel/gettext-tools | | 22 | TOOL_DEPENDS+= gettext-tools>=0.19.4nb1:../../devel/gettext-tools |
22 | | | 23 | |
23 | # There is no logic in gettext.mk to detect the native version of xgettext, | | 24 | # There is no logic in gettext.mk to detect the native version of xgettext, |
24 | # and we do need it to be compiled with Glade support. | | 25 | # and we do need it to be compiled with Glade support. |
25 | _TOOLS_USE_PKGSRC.xgettext= yes | | 26 | _TOOLS_USE_PKGSRC.xgettext= yes |
26 | | | 27 | |
| @@ -42,27 +43,28 @@ PKGCONFIG_OVERRIDE+= gail-3.0.pc.in | | | @@ -42,27 +43,28 @@ PKGCONFIG_OVERRIDE+= gail-3.0.pc.in |
42 | INSTALLATION_DIRS+= lib/gtk-3.0/immodules | | 43 | INSTALLATION_DIRS+= lib/gtk-3.0/immodules |
43 | INSTALLATION_DIRS+= lib/gtk-3.0/modules | | 44 | INSTALLATION_DIRS+= lib/gtk-3.0/modules |
44 | INSTALLATION_DIRS+= lib/gtk-3.0/3.0.0/filesystems | | 45 | INSTALLATION_DIRS+= lib/gtk-3.0/3.0.0/filesystems |
45 | | | 46 | |
46 | BUILD_DIRS= . demos/gtk-demo | | 47 | BUILD_DIRS= . demos/gtk-demo |
47 | | | 48 | |
48 | .include "../../mk/bsd.prefs.mk" | | 49 | .include "../../mk/bsd.prefs.mk" |
49 | | | 50 | |
50 | # isnan and isinf are part of libc, not libm on DragonFly | | 51 | # isnan and isinf are part of libc, not libm on DragonFly |
51 | # conf tests fail detection due to conflicting definitions, just skip them | | 52 | # conf tests fail detection due to conflicting definitions, just skip them |
52 | CONFIGURE_ENV.DragonFly+= ac_cv_func_isinf=yes | | 53 | CONFIGURE_ENV.DragonFly+= ac_cv_func_isinf=yes |
53 | CONFIGURE_ENV.DragonFly+= ac_cv_func_isnan=yes | | 54 | CONFIGURE_ENV.DragonFly+= ac_cv_func_isnan=yes |
54 | | | 55 | |
55 | CFLAGS.SunOS+= -std=gnu99 | | 56 | # "error: 'for' loop initial declarations are only allowed in C99 mode" |
| | | 57 | CFLAGS+= -std=gnu99 |
56 | | | 58 | |
57 | CPPFLAGS+= -DPREFIX="\"${PREFIX}\"" | | 59 | CPPFLAGS+= -DPREFIX="\"${PREFIX}\"" |
58 | | | 60 | |
59 | # We remove the module databases during post-install since we create them | | 61 | # We remove the module databases during post-install since we create them |
60 | # anew in the +INSTALL script as part of the POST-INSTALL action. | | 62 | # anew in the +INSTALL script as part of the POST-INSTALL action. |
61 | # | | 63 | # |
62 | post-install: | | 64 | post-install: |
63 | ${RM} -f ${DESTDIR}${GTK3_IMMODULES_DB} | | 65 | ${RM} -f ${DESTDIR}${GTK3_IMMODULES_DB} |
64 | | | 66 | |
65 | FILES_SUBST+= GTK_UPDATE_ICON_CACHE="${PREFIX}/bin/gtk-update-icon-cache" | | 67 | FILES_SUBST+= GTK_UPDATE_ICON_CACHE="${PREFIX}/bin/gtk-update-icon-cache" |
66 | FILES_SUBST+= ICON_THEME_DIR="${PREFIX}/share/icons" | | 68 | FILES_SUBST+= ICON_THEME_DIR="${PREFIX}/share/icons" |
67 | INSTALL_TEMPLATES+= ../../x11/gtk2/files/icon-cache.tmpl | | 69 | INSTALL_TEMPLATES+= ../../x11/gtk2/files/icon-cache.tmpl |
68 | | | 70 | |