2005-06-16 17:53:38 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.8 2005/06/16 21:53:38 mjc Exp $
|
2004-02-16 16:12:50 -05:00
|
|
|
|
|
|
|
NOT_FOR_ARCHS= ${NO_SHARED_ARCHS}
|
|
|
|
|
|
|
|
COMMENT= "gtk+2 Python bindings"
|
|
|
|
|
2005-05-12 17:10:05 -04:00
|
|
|
V= 2.4.1
|
2004-02-16 16:12:50 -05:00
|
|
|
DISTNAME= pygtk-${V}
|
|
|
|
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>
|
2004-02-16 16:12:50 -05:00
|
|
|
|
|
|
|
# LGPL
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
2004-12-19 12:36:31 -05:00
|
|
|
WANTLIB= X11 Xcursor Xext Xft Xinerama Xrender atk-1.0.0.0 \
|
|
|
|
fontconfig freetype glib-2.0.0.0 gmodule-2.0.0.0 \
|
2005-05-12 17:10:05 -04:00
|
|
|
gobject-2.0.0.0 intl m pango-1.0.0.0 pangoft2-1.0.0.0 \
|
|
|
|
pangox-1.0.0.0 pangoxft-1.0.0.0 xml2 z
|
2004-02-16 16:12:50 -05:00
|
|
|
|
2005-05-12 17:10:05 -04:00
|
|
|
MASTER_SITES= ${MASTER_SITE_GNOME:=sources/pygtk/2.4/}
|
|
|
|
EXTRACT_SUFX= .tar.bz2
|
2004-02-16 16:12:50 -05:00
|
|
|
|
2004-08-03 17:44:38 -04:00
|
|
|
MODULES= converters/libiconv lang/python
|
2004-02-16 16:12:50 -05:00
|
|
|
|
|
|
|
BUILD_DEPENDS= :pkgconfig-*:devel/pkgconfig \
|
|
|
|
:py-Numeric-*:math/py-Numeric
|
|
|
|
LIB_DEPENDS= gthread-2.0.0.0::devel/glib2 \
|
|
|
|
glade-2.0.0.0::devel/libglade2 \
|
|
|
|
gdk-x11-2.0.0.0,gdk_pixbuf-2.0.0.0,gtk-x11-2.0.0.0::x11/gtk+2
|
|
|
|
|
2005-05-12 17:10:05 -04:00
|
|
|
USE_LIBTOOL= Yes
|
2004-02-16 16:12:50 -05:00
|
|
|
CONFIGURE_STYLE=gnu
|
|
|
|
CONFIGURE_ENV= PYTHON=${MODPY_BIN}
|
|
|
|
|
2005-05-12 17:10:05 -04:00
|
|
|
REGRESS_FLAGS= DISPLAY=${DISPLAY} XAUTHORITY=${XAUTHORITY}
|
2004-02-16 16:12:50 -05:00
|
|
|
|
|
|
|
EXAMPLESDIR= ${PREFIX}/share/examples/py-gtk2
|
|
|
|
|
2005-05-12 17:10:05 -04:00
|
|
|
do-build:
|
2005-06-16 17:53:38 -04:00
|
|
|
@cd ${WRKBUILD} && exec ${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} ${MAKE_FLAGS} -f ${MAKE_FILE} ${ALL_TARGET}
|
2005-05-12 17:10:05 -04:00
|
|
|
|
|
|
|
do-install:
|
2005-06-16 17:53:38 -04:00
|
|
|
@cd ${WRKBUILD} && exec ${SUDO} ${SETENV} ${MAKE_ENV} ${_FAKE_SETUP} ${MAKE_PROGRAM} ${FAKE_FLAGS} -f ${MAKE_FILE} ${FAKE_TARGET}
|
2004-02-16 16:12:50 -05:00
|
|
|
|
|
|
|
post-install:
|
|
|
|
${INSTALL_DATA_DIR} ${EXAMPLESDIR}
|
2005-05-12 17:10:05 -04:00
|
|
|
cd ${WRKSRC}/examples; pax -rw [a-z]* ${EXAMPLESDIR}
|
2004-02-16 16:12:50 -05:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|