openbsd-ports/x11/py-qt3/Makefile
2013-03-11 11:35:43 +00:00

64 lines
1.4 KiB
Makefile

# $OpenBSD: Makefile,v 1.15 2013/03/11 11:46:15 espie Exp $
SHARED_ONLY= Yes
COMMENT= python Qt3 bindings
# XXX: Upstream doesn't keep old files; if updating please mirror or ask sthen@
V= 3.18.1
DISTNAME= PyQt-x11-gpl-${V}
PKGNAME= py-qt3-${V}
REVISION= 5
CATEGORIES= x11 devel
HOMEPAGE= http://www.riverbankcomputing.co.uk/software/pyqt/intro
# GPL
PERMIT_PACKAGE_CDROM= Yes
WANTLIB= GL GLU X11 Xext Xmu c m pthread stdc++ qui
BUILD_DEPENDS= ${RUN_DEPENDS}
RUN_DEPENDS= devel/py-sip>=4.8.1
LIB_DEPENDS= x11/qt3
NO_TEST= Yes
MASTER_SITES= http://www.riverbankcomputing.co.uk/static/Downloads/PyQt3/ \
http://spacehopper.org/mirrors/
MODULES= x11/qt3 \
lang/python
CONFIGURE_STYLE=simple
CONFIGURE_SCRIPT=${MODPY_BIN} configure.py
CONFIGURE_ARGS= -w \
-b ${PREFIX}/bin \
-d ${MODPY_SITEPKG} \
-g ${MODQT_INCDIR} \
-l ${MODPY_INCDIR} \
-m ${MODQT_LIBDIR} \
-q ${MODQT3_LIBDIR} \
-v ${PREFIX}/share/sip \
-y qt-mt \
INCDIR_QT=${MODQT_INCDIR} \
LIBDIR=${LOCALBASE}/lib \
LIBDIR_QT=${MODQT_LIBDIR} \
CC=${CC} \
CXX=${CXX} \
CFLAGS="${CFLAGS}" \
CXXFLAGS="${CXXFLAGS}"
pre-configure:
perl -pi -e 's,ANY \*,void *,' ${WRKSRC}/sip/qt*/*.sip
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/py-qt3
cp -R ${WRKSRC}/doc/* ${PREFIX}/share/doc/py-qt3
chown -R ${SHAREOWN}:${SHAREGRP} ${PREFIX}/share/doc/py-qt3/*
.include <bsd.port.mk>