Lines 2-17
Link Here
|
2 |
# Date created: Tue Oct 8 09:51:22 SAST 2002 |
2 |
# Date created: Tue Oct 8 09:51:22 SAST 2002 |
3 |
# Whom: nbm |
3 |
# Whom: nbm |
4 |
# |
4 |
# |
5 |
# $FreeBSD: ports/devel/py-sip/Makefile,v 1.22 2005/08/15 18:46:36 pav Exp $ |
5 |
# $FreeBSD: ports/devel/py-sip/Makefile,v 1.21 2005/07/13 10:52:02 mich Exp $ |
6 |
|
6 |
|
7 |
PORTNAME= sip |
7 |
PORTNAME= sip |
8 |
PORTVERSION= 4.2.1 |
8 |
PORTVERSION= 4.3 |
9 |
PORTREVISION= 3 |
9 |
PORTREVISION= |
10 |
CATEGORIES= devel python |
10 |
CATEGORIES= devel python |
11 |
MASTER_SITES= http://www.river-bank.demon.co.uk/download/sip/ \ |
11 |
MASTER_SITES= http://www.river-bank.demon.co.uk/download/sip/ \ |
12 |
http://freebsd.ricin.com/ports/distfiles/ |
12 |
http://freebsd.ricin.com/ports/distfiles/ |
13 |
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} |
13 |
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} |
14 |
DISTNAME= sip-snapshot-20050709 |
14 |
DISTNAME= sip-${PORTVERSION} |
15 |
|
15 |
|
16 |
MAINTAINER= danny@ricin.com |
16 |
MAINTAINER= danny@ricin.com |
17 |
COMMENT= Python to C and C++ bindings generator |
17 |
COMMENT= Python to C and C++ bindings generator |
Lines 19-46
Link Here
|
19 |
BUILD_DEPENDS= qmake:${PORTSDIR}/devel/qmake |
19 |
BUILD_DEPENDS= qmake:${PORTSDIR}/devel/qmake |
20 |
|
20 |
|
21 |
USE_PYTHON= yes |
21 |
USE_PYTHON= yes |
22 |
USE_QT_VER= 3 |
|
|
23 |
|
22 |
|
|
|
23 |
OPTIONS= DEBUG "Build with debugging symbols" off \ |
24 |
DOCS "Install documentation" on \ |
25 |
QT "Enable Qt support" on |
26 |
|
27 |
DATADIR= ${PREFIX}/share/py-${PORTNAME} |
24 |
DOCSDIR= ${PREFIX}/share/doc/py-${PORTNAME} |
28 |
DOCSDIR= ${PREFIX}/share/doc/py-${PORTNAME} |
|
|
29 |
OPTIONSFILE= ${PORT_DBDIR}/py-${PORTNAME}/options |
30 |
|
31 |
SPEC= ${LOCALBASE}/share/qt/mkspecs/freebsd-g++ |
32 |
ARGS= -b ${PREFIX}/bin -d ${PYTHONPREFIX_SITELIBDIR} \ |
33 |
-e ${PYTHON_INCLUDEDIR} -v ${DATADIR} |
25 |
|
34 |
|
26 |
.include <bsd.port.pre.mk> |
35 |
.include <bsd.port.pre.mk> |
27 |
|
36 |
|
|
|
37 |
.if defined(NOPORTDOCS) || defined(WITHOUT_DOCS) |
38 |
PLIST_SUB+= DOCS="@comment " |
39 |
.else |
40 |
PLIST_SUB+= DOCS="" |
41 |
.endif |
42 |
.if defined(WITH_DEBUG) |
43 |
ARGS+= -u |
44 |
.endif |
45 |
.if defined(WITHOUT_QT) |
46 |
ARGS+= -x |
47 |
.else |
48 |
BUILD_DEPENDS+= moc:${PORTSDIR}/x11-toolkits/qt33 |
49 |
RUN_DEPENDS+= moc:${PORTSDIR}/x11-toolkits/qt33 |
50 |
.endif |
51 |
|
28 |
do-configure: |
52 |
do-configure: |
29 |
@( cd ${WRKSRC} && ${SETENV} QTDIR=${X11BASE} \ |
53 |
( cd ${WRKSRC} && ${SETENV} QTDIR=${X11BASE} QMAKESPEC=${SPEC} \ |
30 |
QMAKESPEC=${LOCALBASE}/share/qt/mkspecs/freebsd-g++ \ |
54 |
${PYTHON_CMD} configure.py ${ARGS} ) |
31 |
${PYTHON_CMD} configure.py \ |
|
|
32 |
-b ${PREFIX}/bin -d ${PYTHONPREFIX_SITELIBDIR} \ |
33 |
-e ${PYTHON_INCLUDEDIR} -v ${DATADIR} ) |
34 |
|
55 |
|
35 |
post-install: |
56 |
post-install: |
36 |
.if !defined(NOPORTDOCS) |
57 |
.if !defined(NOPORTDOCS) && !defined(WITHOUT_DOCS) |
37 |
@( ${MKDIR} ${DOCSDIR} && cd ${WRKSRC} && ${INSTALL_DATA} \ |
58 |
( ${MKDIR} -m 0755 ${DOCSDIR} && cd ${WRKSRC} && ${INSTALL_DATA} \ |
38 |
doc/default.css doc/sipref.txt NEWS LICENSE ${DOCSDIR} && \ |
59 |
doc/default.css doc/sipref.txt NEWS LICENSE ${DOCSDIR} ) |
39 |
${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${DOCSDIR} ) |
|
|
40 |
.endif |
60 |
.endif |
41 |
@# pyqt/pykde use this |
61 |
( ${MKDIR} -m 0755 ${DATADIR} && \ |
42 |
@${MKDIR} ${DATADIR} |
62 |
${PYTHON_CMD} -c "import sipconfig" && \ |
43 |
@${PYTHON_CMD} -c "import sipconfig" |
63 |
${PYTHON_CMD} -O -c "import sipconfig" ) |
44 |
@${PYTHON_CMD} -O -c "import sipconfig" |
|
|
45 |
|
64 |
|
46 |
.include <bsd.port.post.mk> |
65 |
.include <bsd.port.post.mk> |