openbsd-ports/devel/py-sip/Makefile
dcoppa 3b46dbc2b5 Update to sip-4.12.2.
Tested in a bulk build by landry@
OK landry@, sthen@
2011-05-17 08:29:45 +00:00

50 lines
1.3 KiB
Makefile

# $OpenBSD: Makefile,v 1.20 2011/05/17 08:29:45 dcoppa Exp $
# XXX: Don't forget to update x11/py-qt{3,4} when updating this port.
# XXX: Upstream doesn't keep old files; if updating please mirror or ask sthen@
SHARED_ONLY= Yes
COMMENT= automatically generate Python bindings for C and C++ libs
DISTNAME= sip-4.12.2
PKGNAME= py-${DISTNAME}
CATEGORIES= devel
HOMEPAGE= http://www.riverbankcomputing.co.uk/software/sip/intro
# SIP license (Python like)
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
WANTLIB= m c stdc++
MASTER_SITES= http://www.riverbankcomputing.co.uk/static/Downloads/sip4/ \
http://spacehopper.org/mirrors/ \
http://distfiles.nl/
MODULES= lang/python
CONFIGURE_STYLE=simple
CONFIGURE_SCRIPT=${MODPY_BIN} configure.py
CONFIGURE_ARGS= -b ${PREFIX}/bin \
-d ${MODPY_SITEPKG} \
-e ${MODPY_INCDIR} \
-v ${PREFIX}/share/sip \
INCDIR=${LOCALBASE}/include \
LIBDIR=${LOCALBASE}/lib \
CC=${CC} CXX=${CXX} \
CFLAGS="${CFLAGS}" \
CXXFLAGS="${CXXFLAGS}"
NO_REGRESS= Yes
post-install:
${MODPY_BIN} ${MODPY_LIBDIR}/compileall.py ${WRKINST}${MODPY_SITEPKG}
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/py-sip
${INSTALL_DATA} ${WRKSRC}/doc/html/_sources/* ${PREFIX}/share/doc/py-sip
.include <bsd.port.mk>