2001-09-21 19:17:44 +00:00
|
|
|
# $OpenBSD: Makefile,v 1.2 2001/09/21 19:17:44 shell Exp $
|
2001-09-18 06:01:58 +00:00
|
|
|
|
|
|
|
COMMENT= "Python bindings for Gtk"
|
|
|
|
COMMENT-gnome= "Python bindings for Gtk and Gnome"
|
|
|
|
|
|
|
|
# Version numbers between py-gtk and py-gnome are different, but py-gnome
|
|
|
|
# overlaps py-gtk. Because of this version number inconsistancy, we use
|
|
|
|
# py-gnome's version number, even for py-gtk.
|
|
|
|
|
2001-09-21 19:17:44 +00:00
|
|
|
V= 1.4.1 ## For py-gtk, this really is 0.6.8
|
|
|
|
PKGNAME= py-Gtk-${V}
|
|
|
|
DISTNAME= gnome-python-${V}
|
|
|
|
CATEGORIES= x11 devel
|
|
|
|
NEED_VERSION= 1.405
|
2001-09-18 06:01:58 +00:00
|
|
|
|
2001-09-21 19:17:44 +00:00
|
|
|
MASTER_SITES= ${MASTER_SITE_GNOME}
|
|
|
|
MASTER_SITE_SUBDIR= stable/sources/gnome-python
|
2001-09-18 06:01:58 +00:00
|
|
|
|
|
|
|
|
2001-09-21 19:17:44 +00:00
|
|
|
HOMEPAGE= http://www.daa.com.au/~james/gnome/
|
|
|
|
|
|
|
|
MAINTAINER= Maurice Nonnekes <maurice@amaze.nl>
|
2001-09-18 06:01:58 +00:00
|
|
|
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
|
2001-09-21 19:17:44 +00:00
|
|
|
FLAVORS= gnome
|
2001-09-18 06:01:58 +00:00
|
|
|
FLAVOR?=
|
|
|
|
|
2001-09-21 19:17:44 +00:00
|
|
|
LIB_DEPENDS+= Imlib.19::graphics/imlib \
|
|
|
|
gtkgl.1.2::x11/gtkglarea
|
|
|
|
|
|
|
|
USE_X11= Yes
|
|
|
|
USE_GMAKE= Yes
|
|
|
|
USE_LIBTOOL= Yes
|
2001-09-18 06:01:58 +00:00
|
|
|
|
2001-09-21 19:17:44 +00:00
|
|
|
CONFIGURE_STYLE= gnu
|
|
|
|
CONFIGURE_ARGS+= --disable-thread
|
2001-09-18 06:01:58 +00:00
|
|
|
|
2001-09-21 19:17:44 +00:00
|
|
|
PYTHON_VER= 2.1
|
|
|
|
SUBST_VARS= PYTHON_VER
|
2001-09-18 06:01:58 +00:00
|
|
|
|
2001-09-21 19:17:44 +00:00
|
|
|
CONFIGURE_ENV= PYTHON=${LOCALBASE}/bin/python${PYTHON_VER}
|
2001-09-18 06:01:58 +00:00
|
|
|
|
2001-09-21 19:17:44 +00:00
|
|
|
RUN_DEPENDS+= python${PYTHON_VER}::lang/python
|
|
|
|
BUILD_DEPENDS+= ${RUN_DEPENDS}
|
2001-09-18 06:01:58 +00:00
|
|
|
|
|
|
|
.if ${FLAVOR:L:Mgnome}
|
2001-09-21 19:17:44 +00:00
|
|
|
LIB_DEPENDS+= glade-gnome.4::devel/libglade,gnome
|
2001-09-18 06:01:58 +00:00
|
|
|
.else
|
2001-09-21 19:17:44 +00:00
|
|
|
PATCH_STRIP= -p1
|
|
|
|
PATCH_LIST= patch-pygtk_configure patch-pygtk_gtkmodule_c
|
2001-09-18 06:01:58 +00:00
|
|
|
|
2001-09-21 19:17:44 +00:00
|
|
|
LIB_DEPENDS+= glade.4::devel/libglade
|
|
|
|
WRKDIST= ${WRKDIR}/${DISTNAME}/pygtk
|
2001-09-18 06:01:58 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|