openbsd-ports/x11/py-gtk2/Makefile
2013-03-11 11:35:43 +00:00

57 lines
1.2 KiB
Makefile

# $OpenBSD: Makefile,v 1.55 2013/03/11 11:46:15 espie Exp $
SHARED_ONLY= Yes
COMMENT= GTK+2 Python bindings
GNOME_PROJECT= pygtk
GNOME_VERSION= 2.24.0
PKGNAME= py-gtk2-${VERSION}
REVISION= 1
CATEGORIES= x11
HOMEPAGE= http://www.pygtk.org/
# LGPLv2
PERMIT_PACKAGE_CDROM= Yes
EXTRACT_SUFX= .tar.bz2
WANTLIB += GL X11 Xau Xcomposite Xcursor Xdamage Xdmcp Xext Xfixes
WANTLIB += Xi Xinerama Xrandr Xrender Xxf86vm atk-1.0 cairo drm
WANTLIB += expat fontconfig freetype gdk-x11-2.0 gdk_pixbuf-2.0
WANTLIB += gio-2.0 glade-2.0 glib-2.0 gmodule-2.0 gobject-2.0
WANTLIB += gthread-2.0 gtk-x11-2.0 m pango-1.0 pangocairo-1.0
WANTLIB += pangoft2-1.0 pcre pixman-1 png pthread-stubs xcb xcb-render
WANTLIB += xcb-shm xml2 z
MODULES= devel/gettext \
lang/python \
x11/gnome
BUILD_DEPENDS= ${RUN_DEPENDS}
LIB_DEPENDS= devel/libglade2
RUN_DEPENDS= graphics/py-cairo>=1.2 \
devel/py-gobject>=2.26.0 \
math/py-numpy
USE_GMAKE= No
LIBTOOL_FLAGS+= --tag=disable-static
CONFIGURE_STYLE=gnu
CONFIGURE_ARGS= --disable-static
# pick bind_textdomain_codeset
MODGNOME_LDFLAGS=-lintl -liconv
TEST_IS_INTERACTIVE= x11
VMEM_WARNING= Yes
pre-configure:
@find ${WRKDIST} -name \*.py | \
xargs perl -i -pe 's,^#!/usr/bin/env python,#!${MODPY_BIN},'
.include <bsd.port.mk>