pkgsrc/x11/gtk2/Makefile
jlam d7f69e47ce Instead of including bsd.pkg.install.mk directly in a package Makefile,
have it be automatically included by bsd.pkg.mk if USE_PKGINSTALL is set
to "YES".  This enforces the requirement that bsd.pkg.install.mk be
included at the end of a package Makefile.  Idea suggested by Julio M.
Merino Vidal <jmmv at menta.net>.
2003-01-28 22:03:00 +00:00

62 lines
2 KiB
Makefile

# $NetBSD: Makefile,v 1.22 2003/01/28 22:04:34 jlam Exp $
#
DISTNAME= gtk+-2.2.0
PKGNAME= ${DISTNAME:S/gtk/gtk2/}
PKGREVISION= 3
CATEGORIES= x11
MASTER_SITES= ftp://ftp.gtk.org/pub/gtk/v2.2/ \
ftp://ftp.cs.umn.edu/pub/gimp/gtk/v2.2/ \
${MASTER_SITE_GNOME:=sources/gtk+/2.2/}
EXTRACT_SUFX= .tar.bz2
MAINTAINER= packages@netbsd.org
HOMEPAGE= http://www.gtk.org/
COMMENT= Gimp toolkit. Libraries for building X11 user interfaces
BUILD_USES_MSGFMT= yes
USE_BUILDLINK2= yes
USE_PKGINSTALL= yes
USE_PKGLOCALEDIR= yes
USE_X11= yes
USE_GMAKE= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --with-xinput=xfree
CONFIGURE_ARGS+= --sysconfdir="${PKG_SYSCONFBASE}"
CONFIGURE_ARGS+= --enable-gtk-doc=no
CONFIGURE_ARGS+= --with-html-dir=${PREFIX}/share/doc/html
CONFIGURE_ENV+= ac_cv_header_X11_extensions_Xinerama_h=no
CONFIGURE_ENV+= ac_cv_lib_Xinerama_XineramaQueryExtension=no
MAKE_ENV+= PKGLOCALEDIR="${PKGLOCALEDIR}"
TEST_TARGET= check
USE_LIBTOOL= yes
LIBTOOL_OVERRIDE= ${WRKSRC}/libtool
PKGCONFIG_OVERRIDE= ${WRKSRC}/gdk-2.0.pc.in
PKGCONFIG_OVERRIDE+= ${WRKSRC}/gtk+-2.0.pc.in
PKGCONFIG_OVERRIDE+= ${WRKSRC}/gdk-pixbuf-2.0.pc.in
PKGCONFIG_OVERRIDE+= ${WRKSRC}/contrib/gdk-pixbuf-xlib/gdk-pixbuf-xlib-2.0.pc.in
BUILD_DIRS= ${WRKSRC} ${WRKSRC}/demos/gtk-demo
PKG_SYSCONFSUBDIR= gtk-2.0
EGDIR= ${PREFIX}/share/examples/gtk2
CONF_FILES= ${EGDIR}/gdk-pixbuf.loaders \
${PKG_SYSCONFDIR}/gdk-pixbuf.loaders
CONF_FILES+= ${EGDIR}/gtk.immodules ${PKG_SYSCONFDIR}/gtk.immodules
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/lib/gtk-2.0/modules
.include "../../devel/atk/buildlink2.mk"
.include "../../devel/gettext-lib/buildlink2.mk"
.include "../../devel/glib2/buildlink2.mk"
.include "../../devel/pango/buildlink2.mk"
.include "../../devel/pkgconfig/buildlink2.mk"
.include "../../graphics/freetype2/buildlink2.mk"
.include "../../graphics/jpeg/buildlink2.mk"
.include "../../graphics/png/buildlink2.mk"
.include "../../graphics/tiff/buildlink2.mk"
.include "../../mk/bsd.pkg.mk"