openbsd-ports/x11/py-gtk2/Makefile
landry 14798cdaf7 Unfuck localized py-gtk apps when LANG!=C, making sure that configure
picks bind_textdomain_codeset() from libintl, and correctly sets the
codeset to UTF-8. This has annoyed me since c2k8, and the fix magically
appeared under my eyes this morning.
makes sense to wcmaier], ok ajacoutot@ jasper@
2009-06-03 17:26:00 +00:00

58 lines
1.5 KiB
Makefile

# $OpenBSD: Makefile,v 1.34 2009/06/03 17:26:00 landry Exp $
SHARED_ONLY= Yes
COMMENT= GTK+2 Python bindings
GNOME_PROJECT= pygtk
GNOME_VERSION= 2.14.1
PKGNAME= py-gtk2-${VERSION}p0
CATEGORIES= x11
HOMEPAGE= http://www.pygtk.org/
# LGPLv2
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
WANTLIB += X11 Xau Xcomposite Xcursor Xdamage Xdmcp Xext Xfixes
WANTLIB += Xi Xinerama Xrandr Xrender atk-1.0 cairo expat fontconfig
WANTLIB += freetype gdk-x11-2.0 gdk_pixbuf-2.0 gio-2.0 glib-2.0
WANTLIB += glitz gmodule-2.0 gobject-2.0 gtk-x11-2.0 m pango-1.0
WANTLIB += pangocairo-1.0 pangoft2-1.0 pcre pixman-1 png xml2
WANTLIB += z
MODULES= devel/gettext \
lang/python \
x11/gnome
BUILD_DEPENDS= ${RUN_DEPENDS}
LIB_DEPENDS= glade-2.0::devel/libglade2
RUN_DEPENDS= :py-cairo->=1.2:graphics/py-cairo \
:py-gobject-*:devel/py-gobject \
:py-Numeric-*:math/py-Numeric
USE_GMAKE= No
USE_X11= Yes
LIBTOOL_FLAGS+= --tag=disable-static
CONFIGURE_STYLE=gnu
# pick bind_textdomain_codeset
CONFIGURE_ENV= LDFLAGS="-L${LOCALBASE}/lib -lintl -liconv"
# 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-configure:
@find ${WRKDIST} -name \*.py | \
xargs perl -i -pe 's,^#!/usr/bin/env python,#!${MODPY_BIN},'
.include <bsd.port.mk>