summaryrefslogtreecommitdiff
path: root/graphics/dia-python/Makefile
blob: 56ae42fce819486c38b66d7b6e34695219267c77 (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
# $NetBSD: Makefile,v 1.69 2021/12/08 16:04:51 adam Exp $

DIA_SUBPKG=		-python
PKGREVISION=		18
.include "../../graphics/dia/Makefile.common"

COMMENT+=		(Python plugin)

CONFIGURE_ARGS:=	${CONFIGURE_ARGS:S/--without-python/--with-python/g}
CONFIGURE_ENV+=		PYTHON=${PYTHONBIN:Q}

REPLACE_PYTHON=			po-checktrans.py
REPLACE_PYTHON+=		plug-ins/python/gtkcons.py
REPLACE_PYTHON+=		sheets/checktrans.py
PYTHON_VERSIONS_ACCEPTED=	27 # py-gtk2

BUILD_DIRS+=		plug-ins/python
INSTALL_DIRS+=		plug-ins/python

post-install:
	${PY_COMPILE_ALL} ${DESTDIR}${PREFIX}/share/dia

.include "../../lang/python/application.mk"
.include "../../x11/py-gtk2/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"