openbsd-ports/x11/gtk+2/Makefile
marcm db7f11a719 Update to 2.2.1... finally
urging and ok jolan@
2003-06-12 19:26:36 +00:00

62 lines
2.0 KiB
Makefile

# $OpenBSD: Makefile,v 1.6 2003/06/12 19:26:36 marcm Exp $
COMMENT= "multi-platform graphical toolkit"
COMMENT-docs= "gtk+-2 documentation"
VERSION= 2.2.1
DISTNAME= gtk+-${VERSION}
PKGNAME= gtk+2-${VERSION}
PKGNAME-docs= gtk+2-docs-${VERSION}
CATEGORIES= x11 devel
HOMEPAGE= http://www.gtk.org
MAINTAINER= Marc Matteo <marcm@openbsd.org>
# LGPL
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
MASTER_SITES= ftp://ftp.gtk.org/pub/gtk/v2.2/
EXTRACT_SUFX= .tar.bz2
MULTI_PACKAGES= -docs
SUBPACKAGE?=
.if ${SUBPACKAGE} != "-docs"
LIB_DEPENDS= glib-2.0.0.8,gmodule-2.0.0.8,gobject-2.0.0.8::devel/glib2 \
pango-1.0.0.1,pangox-1.0.0.1,pangoxft-1.0.0.1::devel/pango \
atk-1.0.0.1::devel/atk \
tiff.35::graphics/tiff \
png.3::graphics/png \
jpeg.62::graphics/jpeg
BUILD_DEPENDS= :pkgconfig-*:devel/pkgconfig
.endif
# library versions (major:minor)
LIBGDK_X11_VERSION= 0:11
LIBGDK_PIXBUF_VERSION= 0:11
LIBGDK_PIXBUF_XLIB_VERSION= 0:11
LIBGTK_X11_VERSION= 0:11
USE_X11= Yes
USE_GMAKE= Yes
CONFIGURE_STYLE= gnu
CONFIGURE_ARGS+= ${CONFIGURE_SHARED}
CONFIGURE_ARGS+= --enable-static
CONFIGURE_ARGS+= --disable-gtk-doc
CONFIGURE_ENV= CPPFLAGS="-I${X11BASE}/include/freetype2/ -I${LOCALBASE}/include -I${LOCALBASE}/include/libpng" \
LDFLAGS="-L${LOCALBASE}/lib"
MAKE_ENV= LIBGDK_X11_VERSION="${LIBGDK_X11_VERSION}" \
LIBGDK_PIXBUF_VERSION="${LIBGDK_PIXBUF_VERSION}" \
LIBGDK_PIXBUF_XLIB_VERSION="${LIBGDK_PIXBUF_XLIB_VERSION}" \
LIBGTK_X11_VERSION="${LIBGTK_X11_VERSION}"
post-install:
@${INSTALL_DATA_DIR} ${PREFIX}/share/examples/gtk+2/; \
sed s,${WRKSRC}/modules/input,${LOCALBASE}/lib/gtk-2.0/2.2.0/immodules, ${WRKSRC}/modules/input/gtk.immodules > ${PREFIX}/share/examples/gtk+2/gtk.immodules; \
sed s,${WRKSRC}/gdk-pixbuf,${LOCALBASE}/lib/gtk-2.0/2.2.0/loaders, ${WRKSRC}/gdk-pixbuf/gdk-pixbuf.loaders > ${PREFIX}/share/examples/gtk+2/gdk-pixbuf.loaders
.include <bsd.port.mk>