summaryrefslogtreecommitdiff
path: root/x11/py-gtk2/Makefile
blob: 61392097c93c9b14b12a9b40ccfc264c363f01a0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
# $NetBSD: Makefile,v 1.102 2015/12/05 21:26:08 adam Exp $

DISTNAME=	pygtk-2.24.0
PKGNAME=	${PYPKGPREFIX}-${DISTNAME:S/pygtk/gtk2/}
PKGREVISION=	19
CATEGORIES=	x11 python
MASTER_SITES=	${MASTER_SITE_GNOME:=sources/pygtk/2.24/}
EXTRACT_SUFX=	.tar.bz2

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	http://www.pygtk.org/
COMMENT=	Python bindings for GTK+2
LICENSE=	gnu-lgpl-v2.1

CONFLICTS=	${PYPKGPREFIX}-gtk<0.6.10

USE_LIBTOOL=	YES
PKGCONFIG_OVERRIDE+=	pygtk-2.0.pc.in
GNU_CONFIGURE=	YES
CONFIGURE_ENV+=	PYTHON=${PYTHONBIN:Q}
USE_TOOLS+=	gmake pkg-config

PY_PATCHPLIST=	YES
PYTHON_VERSIONED_DEPENDENCIES=	cairo:link
PYTHON_VERSIONS_INCOMPATIBLE=	33 34 35 # not yet ported as of 2.24.0

REPLACE_PYTHON+=	examples/atk/atk-demo.py
REPLACE_PYTHON+=	examples/glade/autoconnect.py
REPLACE_PYTHON+=	examples/glade/glade-demo.py
REPLACE_PYTHON+=	examples/gtk/customtreemodel.py
REPLACE_PYTHON+=	examples/ide/browse.py
REPLACE_PYTHON+=	examples/ide/edit.py
REPLACE_PYTHON+=	examples/ide/gtkcons.py
REPLACE_PYTHON+=	examples/ide/gtkdb.py
REPLACE_PYTHON+=	examples/ide/gtkprof.py
REPLACE_PYTHON+=	examples/ide/pyide.py
REPLACE_PYTHON+=	examples/pango/extentdemo.py
REPLACE_PYTHON+=	examples/pango/pangocairo-simple.py
REPLACE_PYTHON+=	examples/pango/utf8-demo.py
REPLACE_PYTHON+=	examples/pygtk-demo/demos/appwindow.py
REPLACE_PYTHON+=	examples/pygtk-demo/demos/buttonbox.py
REPLACE_PYTHON+=	examples/pygtk-demo/demos/changedisplay.py
REPLACE_PYTHON+=	examples/pygtk-demo/demos/colorsel.py
REPLACE_PYTHON+=	examples/pygtk-demo/demos/dialogs.py
REPLACE_PYTHON+=	examples/pygtk-demo/demos/dnd.py
REPLACE_PYTHON+=	examples/pygtk-demo/demos/editable_cells.py
REPLACE_PYTHON+=	examples/pygtk-demo/demos/entry_completion.py
REPLACE_PYTHON+=	examples/pygtk-demo/demos/expander.py
REPLACE_PYTHON+=	examples/pygtk-demo/demos/hypertext.py
REPLACE_PYTHON+=	examples/pygtk-demo/demos/images.py
REPLACE_PYTHON+=	examples/pygtk-demo/demos/infobar.py
REPLACE_PYTHON+=	examples/pygtk-demo/demos/list_store.py
REPLACE_PYTHON+=	examples/pygtk-demo/demos/menu.py
REPLACE_PYTHON+=	examples/pygtk-demo/demos/panes.py
REPLACE_PYTHON+=	examples/pygtk-demo/demos/pixbufs.py
REPLACE_PYTHON+=	examples/pygtk-demo/demos/sizegroup.py
REPLACE_PYTHON+=	examples/pygtk-demo/demos/statusicon.py
REPLACE_PYTHON+=	examples/pygtk-demo/demos/stock_browser.py
REPLACE_PYTHON+=	examples/pygtk-demo/demos/textscroll.py
REPLACE_PYTHON+=	examples/pygtk-demo/demos/textview.py
REPLACE_PYTHON+=	examples/pygtk-demo/demos/tooltip.py
REPLACE_PYTHON+=	examples/pygtk-demo/demos/tree_store.py
REPLACE_PYTHON+=	examples/pygtk-demo/demos/treemodel.py
REPLACE_PYTHON+=	examples/pygtk-demo/demos/ui_manager.py
REPLACE_PYTHON+=	examples/pygtk-demo/pygtk-demo.py
REPLACE_PYTHON+=	examples/simple/dnd.py
REPLACE_PYTHON+=	examples/simple/hello.py
REPLACE_PYTHON+=	examples/simple/scribble.py
REPLACE_PYTHON+=	examples/simple/simple.py
REPLACE_PYTHON+=	examples/simple/tooltip.py
REPLACE_PYTHON+=	setup.py
REPLACE_PYTHON+=	tests/runtests.py

.include "options.mk"

.include "../../lang/python/application.mk"
.include "../../lang/python/extension.mk"
.include "../../lang/python/versioned_dependencies.mk"

.include "../../devel/libglade/buildlink3.mk"
BUILDLINK_API_DEPENDS.pygobject+=	${PYPKGPREFIX}-gobject>=2.15.3
.include "../../devel/py-gobject/buildlink3.mk"
BUILDLINK_API_DEPENDS.gtk2+=		gtk2+>=2.16.0
.include "../../x11/gtk2/buildlink3.mk"

.include "../../mk/pthread.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"