1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-07 06:40:06 +00:00
freebsd-ports/devel/py-sip/Makefile
Martin Wilke f037f3f08c - Update py-qt4 to py-qt4.5.4
- Update qscintilla-2* to 2.4
- Update py-sip to 4.8.2
- Update py-kde to 1.16.3
- Update py-qt to 1.18.1

The KDE FreeBSD team would like to say thanks to all the helpers
and submitters

New Port:
devel/py-qt4-scripttools
2009-08-04 19:18:49 +00:00

61 lines
1.4 KiB
Makefile

# New ports collection makefile for: py-sip
# Date created: Tue Oct 8 09:51:22 SAST 2002
# Whom: nbm
#
# $FreeBSD$
PORTNAME= sip
PORTVERSION= ${SIP_VERSION}
PORTEPOCH= 1
CATEGORIES= devel python
MASTER_SITES= ${MASTER_SITES_SIP} ${MASTER_SITE_LOCAL}
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
DISTNAME= ${SIP_DISTNAME}
MAINTAINER= kde@FreeBSD.org
COMMENT= Python to C and C++ bindings generator
USE_PYTHON= 2.5+
OPTIONS= DEBUG "Build with debugging symbols" off
DATADIR= ${PREFIX}/share/py-${PORTNAME}
DOCSDIR= ${PREFIX}/share/doc/py-${PORTNAME}
OPTIONSFILE= ${PORT_DBDIR}/py-${PORTNAME}/options
ARGS= -b ${PREFIX}/bin -d ${PYTHONPREFIX_SITELIBDIR}\
-e ${PYTHONPREFIX_INCLUDEDIR} -v ${DATADIR}
PORTDOCS= *
.include "files/bsd.pyqt.mk"
.include <bsd.port.pre.mk>
.if defined(WITH_DEBUG)
ARGS+= -u
.endif
do-configure:
cd ${WRKSRC} && ${PYTHON_CMD} configure.py ${ARGS}
post-configure:
.for item in sipgen siplib
${REINPLACE_CMD} -e 's|CC = gcc|CC = ${CC}|'\
-e 's|CXX = g++|CXX = ${CXX}|'\
-e 's|LINK = g++|LINK = ${CXX}|'\
${WRKSRC}/${item}/Makefile
.endfor
post-install:
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR} && cd ${WRKSRC}/doc/html && \
${COPYTREE_SHARE} \. ${DOCSDIR}
.endif
${MKDIR} ${DATADIR} &&\
cd ${PYTHONPREFIX_SITELIBDIR} &&\
${PYTHON_CMD} -c "import sipconfig" &&\
${PYTHON_CMD} -O -c "import sipconfig" &&\
${PYTHON_CMD} -c "import sipdistutils" &&\
${PYTHON_CMD} -O -c "import sipdistutils"
.include <bsd.port.post.mk>