build xlib support of gdk-pixbuf2 in its own pkg

This commit is contained in:
drochner 2010-11-16 16:46:29 +00:00
parent f7e13adda3
commit 6bd5c77c29
4 changed files with 75 additions and 0 deletions

View file

@ -0,0 +1,18 @@
GdkPixbuf is a new GNOME library designed to solve part of Imlib's
design limitations that make it hard to write efficient and highly
modular applications. The GdkPixbuf library provides a basic,
reference counted structure called GdkPixbuf. This structure points
to a block of image data, has fields that describe the format of the
image data, and also contains a reference count. The library also
provides a simple mechanism for loading images from files, and a more
sophisticated mechanism for loading images progressively from
arbitrary buffers. It also provides utility functions to transform
pixbufs and render them to GDK drawables.
The GdkPixBuf library provides a number of features:
* Image loading facilities.
* Rendering of a GdkPixBuf into various formats:
drawables (windows, pixmaps), GdkRGB buffers.
This is the gtk 2 version of gdk-pixbuf. It got
included natively in gtk2+ and was split out again in revision 2.22.

View file

@ -0,0 +1,36 @@
# $NetBSD: Makefile,v 1.1.1.1 2010/11/16 16:46:29 drochner Exp $
#
DISTNAME= gdk-pixbuf-2.22.1
PKGNAME= gdk-pixbuf2-xlib-2.22.1
CATEGORIES= graphics
MASTER_SITES= ${MASTER_SITE_GNOME:=sources/gdk-pixbuf/2.22/}
EXTRACT_SUFX= .tar.bz2
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= ftp://ftp.gnome.org/pub/gnome/sources/gdk-pixbuf/2.22/
COMMENT= Image loaders for gtk2
LICENSE= gnu-gpl-v2
PATCHDIR= ${.CURDIR}/../../graphics/gdk-pixbuf2/patches
DISTINFO_FILE= ${.CURDIR}/../../graphics/gdk-pixbuf2/distinfo
BUILD_DIRS= contrib/gdk-pixbuf-xlib
INSTALL_DIRS= contrib/gdk-pixbuf-xlib
CONFLICTS+= gtk2+<2.22
PKG_DESTDIR_SUPPORT= user-destdir
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --without-libtiff --without-libjpeg --without-libpng
USE_LIBTOOL= yes
USE_TOOLS+= pkg-config
USE_PKGLOCALEDIR= yes
PKGCONFIG_OVERRIDE+= contrib/gdk-pixbuf-xlib/gdk-pixbuf-xlib-2.0.pc.in
PKGCONFIG_OVERRIDE+= gdk-pixbuf-2.0.pc.in
.include "../../graphics/gdk-pixbuf2/buildlink3.mk"
BUILDLINK_API_DEPENDS.glib2+= glib2>=2.26.0
.include "../../devel/glib2/buildlink3.mk"
.include "../../x11/libX11/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"

View file

@ -0,0 +1,5 @@
@comment $NetBSD: PLIST,v 1.1.1.1 2010/11/16 16:46:29 drochner Exp $
include/gdk-pixbuf-2.0/gdk-pixbuf-xlib/gdk-pixbuf-xlib.h
include/gdk-pixbuf-2.0/gdk-pixbuf-xlib/gdk-pixbuf-xlibrgb.h
lib/libgdk_pixbuf_xlib-2.0.la
lib/pkgconfig/gdk-pixbuf-xlib-2.0.pc

View file

@ -0,0 +1,16 @@
# $NetBSD: buildlink3.mk,v 1.1.1.1 2010/11/16 16:46:29 drochner Exp $
BUILDLINK_TREE+= gdk-pixbuf2-xlib
.if !defined(GDK_PIXBUF2_XLIB_BUILDLINK3_MK)
GDK_PIXBUF2_XLIB_BUILDLINK3_MK:=
BUILDLINK_API_DEPENDS.gdk-pixbuf2-xlib+= gdk-pixbuf2-xlib>=2.22.1
BUILDLINK_PKGSRCDIR.gdk-pixbuf2-xlib?= ../../graphics/gdk-pixbuf2-xlib
.include "../../graphics/gdk-pixbuf2/buildlink3.mk"
.include "../../devel/glib2/buildlink3.mk"
.include "../../x11/libX11/buildlink3.mk"
.endif # GDK_PIXBUF2_XLIB_BUILDLINK3_MK
BUILDLINK_TREE+= -gdk-pixbuf2-xlib