1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-22 20:41:26 +00:00
freebsd-ports/devel/py-sip/Makefile
Max Brazhnikov 2d8b5de9c8 Update PyQt4 ports to 4.4.4, new ports:
devel/py-qt4-help
multimedia/py-qt4-phonon
textproc/py-qt4-xmlpatterns
www/py-qt4-webkit

Update QScintilla2 to 2.3.2, PyQt3 to 3.17.6, PyKDE3 to 3.16.2.

Pass maintainership to kde@FreeBSD.org. Thanks Danny Ricin for his great work.

PR:		based on ports/130219
Submitted by:	Dima Panov" <fluffy at fluffy.khv.ru>
2009-02-14 22:58:55 +00:00

60 lines
1.5 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}
.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} && ${INSTALL_DATA}\
doc/sipref.txt doc/sipref.html\
NEWS LICENSE ${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>