Merge from vendor branch TNF:
[pkgsrcv2.git] / x11 / py-qt3-base / Makefile.common
1 # $NetBSD: Makefile.common,v 1.12 2009/06/17 07:11:03 hasso Exp $
2 #
3 # used by x11/py-qt3-base/Makefile
4 # used by x11/py-qt3-modules/Makefile
5 # used by x11/py-qt3-qscintilla/Makefile
6 #
7 # XXX: when updating version, be sure to update distinfo for both
8 # XXX: PyQt-mac-gpl and PyQt-x11-gpl in py-qt3-qscintilla,
9 # XXX: py-qt3-base, and py-qt3-modules.
10
11 PYQT_VERSION=           3.18.1
12 CATEGORIES=             x11 python
13 MASTER_SITES=           http://www.riverbankcomputing.com/static/Downloads/PyQt3/
14
15 MAINTAINER=             pkgsrc-users@NetBSD.org
16 HOMEPAGE=               http://www.riverbankcomputing.com/software/pyqt/intro
17
18 .include "../../mk/bsd.prefs.mk"
19
20 .if ${OPSYS} == "Darwin"
21 DISTNAME=               PyQt-mac-gpl-${PYQT_VERSION}
22 .else
23 DISTNAME=               PyQt-x11-gpl-${PYQT_VERSION}
24 .endif
25
26 USE_LIBTOOL=            yes
27 USE_TOOLS+=             gmake
28 USE_LANGUAGES=          c c++
29
30 CONFIGURE_ARGS+=        -b ${PREFIX}/bin
31 CONFIGURE_ARGS+=        -d ${PREFIX}/${PYSITELIB}
32 CONFIGURE_ARGS+=        -v ${PREFIX}/share/sip${PYVERSSUFFIX}
33
34 PY_PATCHPLIST=  yes
35 PLIST_SUBST+=   PYVERSSUFFIX=${PYVERSSUFFIX:Q}
36
37 do-configure:
38         (cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} \
39                 ${PYTHONBIN} configure.py ${CONFIGURE_ARGS})
40
41 .include "../../lang/python/extension.mk"