openbsd-ports/x11/py-gtk2/Makefile

58 lines
1.5 KiB
Makefile
Raw Normal View History

2007-05-09 17:35:52 -04:00
# $OpenBSD: Makefile,v 1.23 2007/05/09 21:35:52 alek Exp $
SHARED_ONLY= Yes
COMMENT= "GTK+2 Python bindings"
2007-05-09 17:35:52 -04:00
V= 2.10.4
DISTNAME= pygtk-${V}
2007-05-09 17:35:52 -04:00
PKGNAME= py-gtk2-${V}
CATEGORIES= x11
HOMEPAGE= http://www.pygtk.org/
2004-07-04 19:40:05 -04:00
MAINTAINER= Michael Coulter <mjc@openbsd.org>
# LGPL
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
MASTER_SITES= ${MASTER_SITE_GNOME:=sources/pygtk/${V:R}/}
EXTRACT_SUFX= .tar.bz2
2007-05-09 17:35:52 -04:00
WANTLIB= X11 Xext Xrender atk-1.0 fontconfig freetype \
2006-09-18 06:21:48 -04:00
gdk-x11-2.0.>=802.0 gdk_pixbuf-2.0.>=802.0 glib-2.0.>=1000.0 \
2007-05-09 17:35:52 -04:00
gmodule-2.0.>=1000.0 gobject-2.0.>=1000.0 \
2006-09-18 08:19:39 -04:00
gtk-x11-2.0.>=802.0 m pango-1.0 pangoft2-1.0 \
pangocairo-1.0 xml2 z cairo glitz png
2007-05-09 17:35:52 -04:00
WANTLIB += Xau Xcursor Xdmcp Xfixes Xi Xinerama Xrandr expat
MODULES= devel/gettext lang/python
2006-12-16 07:22:32 -05:00
BUILD_DEPENDS= ${RUN_DEPENDS}
2006-09-18 08:19:39 -04:00
LIB_DEPENDS= glade-2.0::devel/libglade2
2007-05-09 17:35:52 -04:00
RUN_DEPENDS= :py-cairo->=1.2:graphics/py-cairo \
:py-gobject-*:devel/py-gobject \
:py-Numeric-*:math/py-Numeric
2006-11-13 08:01:37 -05:00
USE_X11= Yes
USE_LIBTOOL= Yes
2007-05-09 17:35:52 -04:00
LIBTOOL_FLAGS+= --tag=disable-static
CONFIGURE_STYLE=gnu
CONFIGURE_ENV= PYTHON=${MODPY_BIN}
# The regression tests require a running instance of X.
# You will also need to set the XAUTHORITY environment variable to point
# to the appropriate .Xauthority file.
REGRESS_IS_INTERACTIVE= Yes
REGRESS_FLAGS= DISPLAY=${DISPLAY} XAUTHORITY=${XAUTHORITY}
pre-patch:
@find ${WRKDIST} -name \*.py | \
xargs perl -i -pe 's:^#!/usr/bin/env python:#!${MODPY_BIN}:'
.include <bsd.port.mk>