1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-26 00:55:14 +00:00
freebsd-ports/graphics/py-cairo/Makefile

46 lines
1.4 KiB
Makefile
Raw Normal View History

2013-09-02 16:21:38 +00:00
# Created by: Michael Johnson <ahze@FreeBSD.org>
2004-12-05 23:22:02 +00:00
# $FreeBSD$
# $MCom: ports/graphics/py-cairo/Makefile,v 1.28 2010/11/15 14:12:13 kwm Exp $
2004-12-05 23:22:02 +00:00
PORTNAME= cairo
2013-10-02 15:03:50 +00:00
PORTVERSION= 1.10.0
PORTREVISION= 2
2004-12-05 23:22:02 +00:00
CATEGORIES= graphics python
MASTER_SITES= http://cairographics.org/releases/
2004-12-05 23:22:02 +00:00
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
DISTNAME= py2${PORTNAME}-${PORTVERSION}
2004-12-05 23:22:02 +00:00
2005-09-04 23:58:08 +00:00
MAINTAINER= gnome@FreeBSD.org
COMMENT= Python 2 bindings for Cairo
2004-12-05 23:22:02 +00:00
USE_PYTHON= 2
USES= pkgconfig shebangfix tar:bzip2
USE_GNOME= cairo
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
CONFIGURE_ENV= PYTHON=${LOCALBASE}/bin/${PYTHON_CMD} \
PREFIX=${PREFIX}
2004-12-05 23:22:02 +00:00
python_OLD_CMD?= /usr/bin/env python
python_CMD?= ${LOCALBASE}/bin/python2
SHEBANG_FILES= examples/*.py examples/*/*.py test/*.py
2013-10-02 15:03:50 +00:00
do-configure:
@cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} ${PYTHON_CMD} \
./waf configure
2013-10-02 15:03:50 +00:00
do-build:
@cd ${WRKSRC} && ${PYTHON_CMD} ./waf
2013-10-02 15:03:50 +00:00
do-install:
cd ${WRKSRC} && ${PYTHON_CMD} ./waf install --destdir=${STAGEDIR}
post-install:
@cd ${STAGEDIR}${PREFIX} && ${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py \
-d ${PYTHONPREFIX_SITELIBDIR} -f ${PYTHONPREFIX_SITELIBDIR:S;${PREFIX}/;;}
@cd ${STAGEDIR}${PREFIX} && ${PYTHON_CMD} -O ${PYTHON_LIBDIR}/compileall.py \
-d ${PYTHONPREFIX_SITELIBDIR} -f ${PYTHONPREFIX_SITELIBDIR:S;${PREFIX}/;;}
@${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/cairo/_cairo.so
2005-11-05 06:06:59 +00:00
.include <bsd.port.mk>