openbsd-ports/graphics/py-cairo/Makefile
2007-10-08 08:22:38 +00:00

42 lines
892 B
Makefile

# $OpenBSD: Makefile,v 1.12 2007/10/08 08:22:41 steven Exp $
SHARED_ONLY= Yes
COMMENT= cairo bindings for Python
V= 1.4.0
DISTNAME= pycairo-${V}
PKGNAME= py-cairo-${V}p0
CATEGORIES= graphics
HOMEPAGE= http://cairographics.org/introduction/
MAINTAINER= Eric Faurot <eric.faurot@gmail.com>
# LGPL
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
MASTER_SITES= http://cairographics.org/releases/
WANTLIB= X11 Xrender Xau Xdmcp expat fontconfig freetype m z glitz png
MODULES= lang/python
LIB_DEPENDS= cairo.>=6::graphics/cairo
USE_LIBTOOL= Yes
USE_X11= Yes
CONFIGURE_STYLE=gnu
CONFIGURE_ENV= PYTHON=${MODPY_BIN}
pre-install:
perl -pi -e "s,!!MODPY_BIN!!,${MODPY_BIN}," ${WRKSRC}/test/test.test
do-regress: fake
cd ${WRKSRC}/test && env PYTHONPATH=${WRKINST}${MODPY_SITEPKG} \
${MODPY_BIN} ./test.py
.include <bsd.port.mk>