freebsd-ports/devel/py-sip/Makefile
Max Brazhnikov 99b882c241 Merge changes from area51 repository (SVN commit 8197 by avilla):
- Remove SIPFILES option, some ports (e.g., pykde4) require the files
  to be installed.
- Remove DEBUG and TRACING options, and merge them under WITH_DEBUG.
2012-06-09 00:41:21 +00:00

58 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+
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}
.if defined(WITH_DEBUG)
ARGS+= -u
.endif
PORTDOCS= *
.include "files/bsd.pyqt.mk"
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.mk>