# $NetBSD: Makefile,v 1.197 2010/02/14 09:58:14 wiz Exp $ DISTNAME= gtk+-2.18.7 PKGNAME= ${DISTNAME:S/gtk/gtk2/} CATEGORIES= x11 MASTER_SITES= ftp://ftp.gtk.org/pub/gtk/2.18/ \ ${MASTER_SITE_GNOME:=sources/gtk+/2.18/} EXTRACT_SUFX= .tar.bz2 MAINTAINER= pkgsrc-users@NetBSD.org HOMEPAGE= http://www.gtk.org/ COMMENT= GIMP Toolkit v2 - libraries for building X11 user interfaces LICENSE= gnu-lgpl-v2.1 # gtk-builder-convert uses minidom from xml.dom, which needs expat DEPENDS+= ${PYPKGPREFIX}-expat-[0-9]*:../../textproc/py-expat PKG_DESTDIR_SUPPORT= user-destdir CONFLICTS= gtk2-engines<2.6.0 CONFLICTS+= gail-[0-9]* SUPERSEDES= gail-[0-9]* USE_PKGLOCALEDIR= yes USE_TOOLS+= gmake msgfmt perl pkg-config USE_LANGUAGES= c c++ USE_LIBTOOL= yes PTHREAD_AUTO_VARS= yes GNU_CONFIGURE= yes CONFIGURE_ARGS+= --sysconfdir=${PREFIX}/libdata # Work around build problems, disable unstable PAPI, PR #41608: CONFIGURE_ARGS+= --disable-papi MAKE_ENV+= PKGLOCALEDIR=${PKGLOCALEDIR:Q} TEST_TARGET= check PKGCONFIG_OVERRIDE= gdk-2.0-uninstalled.pc.in PKGCONFIG_OVERRIDE+= gdk-2.0.pc.in PKGCONFIG_OVERRIDE+= gtk+-2.0-uninstalled.pc.in PKGCONFIG_OVERRIDE+= gtk+-2.0.pc.in PKGCONFIG_OVERRIDE+= gtk+-unix-print-2.0.pc.in PKGCONFIG_OVERRIDE+= gdk-pixbuf-2.0-uninstalled.pc.in PKGCONFIG_OVERRIDE+= gdk-pixbuf-2.0.pc.in PKGCONFIG_OVERRIDE+= contrib/gdk-pixbuf-xlib/gdk-pixbuf-xlib-2.0.pc.in INSTALLATION_DIRS+= lib/gtk-2.0/immodules INSTALLATION_DIRS+= lib/gtk-2.0/modules INSTALLATION_DIRS+= lib/gtk-2.0/2.10.0/filesystems REQD_DIRS+= ${PREFIX}/libdata/gtk-2.0 BUILD_DIRS= . demos/gtk-demo .include "../../mk/bsd.prefs.mk" # gtk/Makefile.am hardcodes 'grep -o' so require GNU grep on platforms # which do not have it. .if ${OPSYS} == "SunOS" BUILD_DEPENDS+= grep-[0-9]*:../../textproc/grep TOOLS_PATH.grep= ${LOCALBASE}/bin/${GNU_PROGRAM_PREFIX}grep .endif CPPFLAGS+= -DPREFIX="\"${PREFIX}\"" SUBST_CLASSES+= pthread SUBST_STAGE.pthread= pre-configure SUBST_MESSAGE.pthread= Fixing pthread flags. SUBST_SED.pthread= -e 's,__PTHREAD_FLAGS__,${BUILDLINK_LDFLAGS.pthread},g' SUBST_FILES.pthread= gdk-pixbuf/Makefile.in PYTHON_PATCH_SCRIPTS= gtk/gtk-builder-convert .include "options.mk" # We remove the module databases during post-install since we create them # anew in the +INSTALL script as part of the POST-INSTALL action. # post-install: ${RM} -f ${DESTDIR}${GTK_IMMODULES_DB} ${RM} -f ${DESTDIR}${GDK_PIXBUF_LOADERS_DB} EVAL_PREFIX+= PREFIX.hicolor=hicolor-icon-theme FILES_SUBST+= GTK_UPDATE_ICON_CACHE="${PREFIX}/bin/gtk-update-icon-cache" FILES_SUBST+= ICON_THEME_DIR="${PREFIX.hicolor}/share/icons/hicolor" INSTALL_TEMPLATES+= ../../x11/gtk2/files/icon-cache.tmpl PRINT_PLIST_AWK+= /^share\/icons\/hicolor\/icon-theme.cache$$/ { next; } _BUILDING_GTK2= yes .include "modules.mk" .include "../../databases/shared-mime-info/buildlink3.mk" BUILDLINK_API_DEPENDS.atk+= atk>=1.13.0 .include "../../devel/atk/buildlink3.mk" .include "../../devel/gettext-lib/buildlink3.mk" BUILDLINK_API_DEPENDS.glib2+= glib2>=2.21.3 .include "../../devel/glib2/buildlink3.mk" BUILDLINK_API_DEPENDS.pango+= pango>=1.20.0 .include "../../devel/pango/buildlink3.mk" .include "../../fonts/fontconfig/buildlink3.mk" BUILDLINK_API_DEPENDS.cairo+= cairo>=1.6.0 .include "../../graphics/cairo/buildlink3.mk" .include "../../graphics/freetype2/buildlink3.mk" .include "../../graphics/jpeg/buildlink3.mk" .include "../../graphics/png/buildlink3.mk" .include "../../graphics/tiff/buildlink3.mk" .include "../../lang/python/application.mk" .include "../../mk/bsd.pkg.mk"