Fixup fromcvs/togit conversion
[minix-pkgsrc.git] / x11 / gtk3 / Makefile
blob05da0b4a3ad8f0275aaebf27088009c1e60f54ef
1 # $NetBSD: Makefile,v 1.35 2013/02/06 23:24:06 jperkin Exp $
3 DISTNAME= gtk+-3.6.4
4 PKGNAME= ${DISTNAME:S/gtk/gtk3/}
5 PKGREVISION= 3
6 CATEGORIES= x11
7 MASTER_SITES= ftp://ftp.gtk.org/pub/gtk/${PKGVERSION_NOREV:R}/ \
8 ${MASTER_SITE_GNOME:=sources/gtk+/${PKGVERSION_NOREV:R}/}
9 EXTRACT_SUFX= .tar.xz
11 MAINTAINER= pkgsrc-users@NetBSD.org
12 HOMEPAGE= http://www.gtk.org/
13 COMMENT= GIMP Toolkit v3 - libraries for building X11 user interfaces
14 LICENSE= gnu-lgpl-v2.1
16 USE_PKGLOCALEDIR= yes
17 USE_TOOLS+= gmake msgfmt perl pkg-config bash
18 USE_LANGUAGES= c c++
19 USE_LIBTOOL= yes
20 PTHREAD_AUTO_VARS= yes
22 GNU_CONFIGURE= yes
23 # XXX there is a subtle bashism in "configure" or a bug in NetBSD's sh
24 CONFIG_SHELL= bash
25 CONFIGURE_ARGS+= --sysconfdir=${PREFIX}/libdata
26 # Work around build problems, disable unstable PAPI, PR #41608:
27 CONFIGURE_ARGS+= --disable-papi
28 # XXX for now, to avoid conflict
29 CONFIGURE_ARGS+= --enable-gtk2-dependency
30 DEPENDS+= gtk2+-[0-9]*:../../x11/gtk2
31 MAKE_ENV+= PKGLOCALEDIR=${PKGLOCALEDIR}
32 TEST_TARGET= check
34 PKGCONFIG_OVERRIDE+= gdk-3.0.pc.in
35 PKGCONFIG_OVERRIDE+= gtk+-3.0.pc.in
36 PKGCONFIG_OVERRIDE+= gtk+-unix-print-3.0.pc.in
37 PKGCONFIG_OVERRIDE+= gail-3.0.pc.in
39 INSTALLATION_DIRS+= lib/gtk-3.0/immodules
40 INSTALLATION_DIRS+= lib/gtk-3.0/modules
41 INSTALLATION_DIRS+= lib/gtk-3.0/3.0.0/filesystems
43 #REQD_DIRS+= ${PREFIX}/libdata/gtk-2.0
45 BUILD_DIRS= . demos/gtk-demo
47 .include "../../mk/bsd.prefs.mk"
49 # gtk/Makefile.am hardcodes 'grep -o' so require GNU grep on platforms
50 # which do not have it.
51 .if ${OPSYS} == "SunOS"
52 BUILD_DEPENDS+= grep-[0-9]*:../../textproc/grep
53 TOOLS_PATH.grep= ${LOCALBASE}/bin/ggrep
54 .endif
55 # isnan and isinf are part of libc, not libm on DragonFly
56 # conf tests fail detection due to conflicting definitions, just skip them
57 .if ${OPSYS} == "DragonFly"
58 CONFIGURE_ENV+= ac_cv_func_isnan=yes
59 CONFIGURE_ENV+= ac_cv_func_isinf=yes
60 .endif
62 CFLAGS.SunOS+= -std=gnu99
64 CPPFLAGS+= -DPREFIX="\"${PREFIX}\""
66 # We remove the module databases during post-install since we create them
67 # anew in the +INSTALL script as part of the POST-INSTALL action.
69 post-install:
70 ${RM} -f ${DESTDIR}${GTK3_IMMODULES_DB}
72 _BUILDING_GTK3= yes
73 .include "modules.mk"
75 .include "../../databases/shared-mime-info/buildlink3.mk"
76 BUILDLINK_API_DEPENDS.atk+= atk>=2.5.3
77 .include "../../devel/atk/buildlink3.mk"
78 .include "../../devel/gettext-lib/buildlink3.mk"
79 BUILDLINK_API_DEPENDS.glib2+= glib2>=2.33.1
80 .include "../../devel/glib2/buildlink3.mk"
81 BUILDLINK_API_DEPENDS.gdk-pixbuf2+= gdk-pixbuf2>=2.26.0
82 .include "../../graphics/gdk-pixbuf2/buildlink3.mk"
83 BUILDLINK_DEPMETHOD.gobject-introspection:= build
84 BUILDLINK_API_DEPENDS.gobject-introspection+= gobject-introspection>=1.32
85 .include "../../devel/gobject-introspection/buildlink3.mk"
87 .include "options.mk"
89 .include "../../devel/glib2/schemas.mk"
91 BUILDLINK_API_DEPENDS.pango+= pango>=1.29.4nb2
92 .include "../../devel/pango/buildlink3.mk"
93 .include "../../fonts/fontconfig/buildlink3.mk"
94 BUILDLINK_API_DEPENDS.cairo+= cairo>=1.10.0
95 .include "../../graphics/cairo/buildlink3.mk"
96 .include "../../graphics/cairo-gobject/buildlink3.mk"
97 .include "../../graphics/freetype2/buildlink3.mk"
99 .include "../../mk/bsd.pkg.mk"