Merge from vendor branch TNF:
[pkgsrcv2.git] / chat / xchat-python / Makefile
1 # $NetBSD: Makefile,v 1.18 2012/03/03 00:14:24 wiz Exp $
2
3 .include "../../chat/xchat/Makefile.common"
4
5 PKGNAME=                ${DISTNAME:S/-/-python-/}
6 PKGREVISION=            4
7 OWNER=                  tron@NetBSD.org
8
9 COMMENT=                Python scripting plugin for XChat
10
11 DEPENDS+=               xchat>=2.0.0:../../chat/xchat
12
13 BUILD_DIRS?=            plugins/python
14
15 CONFIGURE_ARGS+=        --disable-gtkfe
16 CONFIGURE_ARGS+=        --enable-tcl=no
17 CONFIGURE_ARGS+=        --disable-perl
18 CONFIGURE_ARGS+=        --enable-python
19 CONFIGURE_ENV+=         ac_cv_path_pythonpath=${PYTHONBIN:Q}
20
21 .include "../../mk/bsd.prefs.mk"
22
23 .if ${OPSYS} == "Darwin" || ${OPSYS} == "SunOS"
24 SUBST_CLASSES+=         libutil
25 SUBST_STAGE.libutil=    pre-configure
26 SUBST_FILES.libutil=    configure
27 SUBST_SED.libutil=      -e 's/ -lutil//g'
28 .endif
29
30 .include "../../lang/python/application.mk"
31 .include "../../mk/pthread.buildlink3.mk"
32 .include "../../mk/bsd.pkg.mk"