1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-04 01:48:54 +00:00
freebsd-ports/graphics/py-cairo/Makefile
Colin Percival b51437f7d1 Do what was clearly intended: s/${ENV}/${SETENV}/
Prior to this change these ports fail when built under su(8) since that
results in ${ENV} being ~/.shrc.

Approved by:	kwm (maintainer, gnome@)
2013-10-07 20:56:22 +00:00

40 lines
954 B
Makefile

# Created by: Michael Johnson <ahze@FreeBSD.org>
# $FreeBSD$
# $MCom: ports/graphics/py-cairo/Makefile,v 1.28 2010/11/15 14:12:13 kwm Exp $
PORTNAME= cairo
PORTVERSION= 1.10.0
PORTREVISION= 1
CATEGORIES= graphics python
MASTER_SITES= http://cairographics.org/releases/
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
DISTNAME= py2${PORTNAME}-${PORTVERSION}
MAINTAINER= gnome@FreeBSD.org
COMMENT= Python 2 bindings for Cairo
USE_BZIP2= yes
USE_PYTHON= 2
USES= pkgconfig shebangfix
USE_GNOME= cairo
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
CONFIGURE_ENV= PYTHON=${LOCALBASE}/bin/python2 \
PREFIX=${PREFIX}
NO_STAGE= yes
python_OLD_CMD?= /usr/bin/env python
python_CMD?= ${LOCALBASE}/bin/python2
SHEBANG_FILES= examples/*.py examples/*/*.py waf test/*.py
do-configure:
@cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} ./waf configure
do-build:
@cd ${WRKSRC} && ./waf
do-install:
@cd ${WRKSRC} && ./waf install
.include <bsd.port.mk>