View | Details | Raw Unified | Return to bug 97044
Collapse All | Expand All

(-)devel/py-sip/Makefile (-13 / +3 lines)
Lines 6-11 Link Here
6
6
7
PORTNAME=	sip
7
PORTNAME=	sip
8
PORTVERSION=	4.4.3
8
PORTVERSION=	4.4.3
9
PORTREVISION=	1
9
CATEGORIES=	devel python
10
CATEGORIES=	devel python
10
MASTER_SITES=	http://www.riverbankcomputing.com/Downloads/sip4/ \
11
MASTER_SITES=	http://www.riverbankcomputing.com/Downloads/sip4/ \
11
		http://freebsd.ricin.com/ports/distfiles/
12
		http://freebsd.ricin.com/ports/distfiles/
Lines 15-33 Link Here
15
MAINTAINER=	danny@ricin.com
16
MAINTAINER=	danny@ricin.com
16
COMMENT=	Python to C and C++ bindings generator
17
COMMENT=	Python to C and C++ bindings generator
17
18
18
BUILD_DEPENDS=	qmake:${PORTSDIR}/devel/qmake
19
20
USE_PYTHON=	yes
19
USE_PYTHON=	yes
21
20
22
OPTIONS=	DEBUG "Build with debugging symbols" off \
21
OPTIONS=	DEBUG "Build with debugging symbols" off \
23
		DOCS "Install documentation" on \
22
		DOCS "Install documentation" on
24
		QT "Enable Qt support" on
25
23
26
DATADIR=	${PREFIX}/share/py-${PORTNAME}
24
DATADIR=	${PREFIX}/share/py-${PORTNAME}
27
DOCSDIR=	${PREFIX}/share/doc/py-${PORTNAME}
25
DOCSDIR=	${PREFIX}/share/doc/py-${PORTNAME}
28
OPTIONSFILE=	${PORT_DBDIR}/py-${PORTNAME}/options
26
OPTIONSFILE=	${PORT_DBDIR}/py-${PORTNAME}/options
29
27
30
SPEC=		${LOCALBASE}/share/qt/mkspecs/freebsd-g++
31
ARGS=		-b ${PREFIX}/bin -d ${PYTHONPREFIX_SITELIBDIR} \
28
ARGS=		-b ${PREFIX}/bin -d ${PYTHONPREFIX_SITELIBDIR} \
32
		-e ${PYTHONPREFIX_INCLUDEDIR} -v ${DATADIR}
29
		-e ${PYTHONPREFIX_INCLUDEDIR} -v ${DATADIR}
33
30
Lines 41-56 Link Here
41
.if defined(WITH_DEBUG)
38
.if defined(WITH_DEBUG)
42
ARGS+=		-u
39
ARGS+=		-u
43
.endif
40
.endif
44
.if defined(WITHOUT_QT)
45
ARGS+=		-x
46
.else
47
BUILD_DEPENDS+=	moc:${PORTSDIR}/x11-toolkits/qt33
48
RUN_DEPENDS+=	moc:${PORTSDIR}/x11-toolkits/qt33
49
.endif
50
41
51
do-configure:
42
do-configure:
52
	( cd ${WRKSRC} && ${SETENV} QTDIR=${X11BASE} QMAKESPEC=${SPEC} \
43
	( cd ${WRKSRC} && ${PYTHON_CMD} configure.py ${ARGS} )
53
		${PYTHON_CMD} configure.py ${ARGS} )
54
44
55
post-install:
45
post-install:
56
.if !defined(NOPORTDOCS) && !defined(WITHOUT_DOCS)
46
.if !defined(NOPORTDOCS) && !defined(WITHOUT_DOCS)

Return to bug 97044