Fixup fromcvs/togit conversion
[pkgsrcv2.git] / x11 / py-wxWidgets / Makefile
1 # $NetBSD$
2 #
3
4 VERSION=        2.8.10.1
5 DISTNAME=       wxPython-src-${VERSION}
6 PKGNAME=        ${PYPKGPREFIX}-wxWidgets-${VERSION}
7 PKGREVISION=    14
8 CATEGORIES=     x11 python
9 MASTER_SITES=   ${MASTER_SITE_SOURCEFORGE:=wxpython/}
10 EXTRACT_SUFX=   .tar.bz2
11
12 MAINTAINER=     pkgsrc-users@NetBSD.org
13 HOMEPAGE=       http://wxpython.org/
14 COMMENT=        Python bindings for wxWidgets
15
16 PKG_DESTDIR_SUPPORT=    user-destdir
17
18 WRKSRC=         ${WRKDIR}/wxPython-src-${VERSION}/wxPython
19 USE_LANGUAGES=  c c++
20 USE_TOOLS+=     gmake pkg-config
21
22 # previous name of the package
23 CONFLICTS+=     ${PYPKGPREFIX}-wxWindows-[0-9]*
24
25 WXARG=  WXPORT=gtk2 UNICODE=1
26
27 # no scripts to avoid conflicts
28 #PYSETUPBUILDARGS=      NO_SCRIPTS=1 ${WXARG}
29 #PYSETUPINSTALLARGS=    NO_SCRIPTS=1 ${WXARG}
30
31 SUBST_CLASSES+=                 fix-python
32 SUBST_STAGE.fix-python=         pre-configure
33 SUBST_MESSAGE.fix-python=       Fixing dynamic python
34 SUBST_FILES.fix-python+=        wx/lib/floatcanvas/*.py
35 SUBST_FILES.fix-python+=        wx/lib/floatcanvas/Utilities/*.py
36 SUBST_FILES.fix-python+=        wx/tools/Editra/*.py
37 SUBST_FILES.fix-python+=        wx/tools/Editra/src/*.py
38 SUBST_FILES.fix-python+=        wx/tools/Editra/src/extern/*.py
39 SUBST_FILES.fix-python+=        wx/tools/Editra/tests/syntax/python.python
40 SUBST_FILES.fix-python+=        wx/tools/Editra/Editra*
41 SUBST_SED.fix-python+=          -e 's,/usr/bin/env python,${PYTHONBIN},'
42
43 CHECK_INTERPRETER_SKIP+=        wx/tools/Editra/tests/syntax/d.d
44 CHECK_INTERPRETER_SKIP+=        wx/tools/Editra/tests/syntax/octave.oct
45 CHECK_INTERPRETER_SKIP+=        wx/tools/Editra/tests/syntax/ruby.rb
46 CHECK_INTERPRETER_SKIP+=        wx/tools/Editra/tests/syntax/tcl_tk.tcl
47 CHECK_INTERPRETER_SKIP+=        wx/tools/Editra/tests/syntax/perl.pl
48
49 EGG_NAME=       ${DISTNAME:S/-src-/_common-/}
50 EGG_NAME2=      ${DISTNAME:S/-src-/-/}
51 PLIST_SUBST+=   EGG_FILE2=${EGG_NAME2}-py${PYVERSSUFFIX}.egg-info
52
53 .include "../../graphics/MesaLib/buildlink3.mk"
54 .include "../../lang/python/distutils.mk"
55 .include "../../graphics/glu/buildlink3.mk"
56 .include "../../x11/wxGTK28/buildlink3.mk"
57 .include "../../x11/wxGTK28-contrib/buildlink3.mk"
58 .include "../../mk/bsd.pkg.mk"