Changeset View
Changeset View
Standalone View
Standalone View
head/graphics/py3-cairo/Makefile
Show All 12 Lines | |||||
MAINTAINER= gnome@FreeBSD.org | MAINTAINER= gnome@FreeBSD.org | ||||
COMMENT= Python 3 bindings for Cairo | COMMENT= Python 3 bindings for Cairo | ||||
USES= pkgconfig python:3 shebangfix tar:bzip2 waf | USES= pkgconfig python:3 shebangfix tar:bzip2 waf | ||||
USE_GNOME= cairo | USE_GNOME= cairo | ||||
CPPFLAGS+= -I${LOCALBASE}/include | CPPFLAGS+= -I${LOCALBASE}/include | ||||
LDFLAGS+= -L${LOCALBASE}/lib | LDFLAGS+= -L${LOCALBASE}/lib | ||||
python_OLD_CMD?= /usr/bin/env python | |||||
python_CMD?= ${LOCALBASE}/bin/python${PYTHON_VER} | |||||
SHEBANG_FILES= examples/*.py examples/*/*.py test/*.py | SHEBANG_FILES= examples/*.py examples/*/*.py test/*.py | ||||
PLIST_SUB+= PYTVER=${PYTHON_VER:S/.//} | PLIST_SUB+= PYTVER=${PYTHON_VER:S/.//} | ||||
post-patch: | post-patch: | ||||
@${REINPLACE_CMD} -e 's|python %s|${PYTHON_CMD} %s|g' \ | @${REINPLACE_CMD} -e 's|python %s|${PYTHON_CMD} %s|g' \ | ||||
${WRKSRC}/test/examples_test.py | ${WRKSRC}/test/examples_test.py | ||||
pre-configure: | pre-configure: | ||||
Show All 14 Lines |