2013-09-02 16:21:38 +00:00
|
|
|
# Created by: Michael Johnson <ahze@FreeBSD.org>
|
2004-12-05 23:22:02 +00:00
|
|
|
# $FreeBSD$
|
2010-11-20 15:37:08 +00:00
|
|
|
# $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
|
2014-04-15 20:53:04 +00:00
|
|
|
PORTREVISION= 2
|
2004-12-05 23:22:02 +00:00
|
|
|
CATEGORIES= graphics python
|
Presenting GNOME 2.18 for FreeBSD. GNOME 2.18 is a departure from recent GNOME
releases in that it focuses more on stability and functionality than on
new features. Not that it doesn't have its share of new and exciting
items. See http://www.gnome.org/start/2.18/ for all the goodies in
this release.
GNOME 2.18 for FreeBSD would not have been possible without the hard work
of the FreeBSD GNOME Team and our intrepid band of testers including
J. W. Ballantine, Pawel Worach, Yasuda Keisuke, Pascal Hofstee, miwi,
Yoshihiro Ota, Vladimir Grebenschikov, Jukka A. Ukkonen,
Phillip Neumann, Franz Klammer, and Neal Delmonico.
2007-03-19 05:14:07 +00:00
|
|
|
MASTER_SITES= http://cairographics.org/releases/
|
2004-12-05 23:22:02 +00:00
|
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
2010-11-20 15:37:08 +00:00
|
|
|
DISTNAME= py2${PORTNAME}-${PORTVERSION}
|
2004-12-05 23:22:02 +00:00
|
|
|
|
2005-09-04 23:58:08 +00:00
|
|
|
MAINTAINER= gnome@FreeBSD.org
|
2013-09-30 21:03:23 +00:00
|
|
|
COMMENT= Python 2 bindings for Cairo
|
2004-12-05 23:22:02 +00:00
|
|
|
|
2013-09-30 21:03:23 +00:00
|
|
|
USE_PYTHON= 2
|
2014-04-15 20:53:04 +00:00
|
|
|
USES= pkgconfig shebangfix tar:bzip2
|
2013-09-30 21:03:23 +00:00
|
|
|
USE_GNOME= cairo
|
2011-09-23 22:26:39 +00:00
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
2014-04-15 20:53:04 +00:00
|
|
|
CONFIGURE_ENV= PYTHON=${LOCALBASE}/bin/${PYTHON_CMD} \
|
2013-10-03 07:29:52 +00:00
|
|
|
PREFIX=${PREFIX}
|
2004-12-05 23:22:02 +00:00
|
|
|
|
2013-09-30 21:03:23 +00:00
|
|
|
python_OLD_CMD?= /usr/bin/env python
|
|
|
|
python_CMD?= ${LOCALBASE}/bin/python2
|
2014-04-15 20:53:04 +00:00
|
|
|
SHEBANG_FILES= examples/*.py examples/*/*.py test/*.py
|
2013-09-30 21:03:23 +00:00
|
|
|
|
2013-10-02 15:03:50 +00:00
|
|
|
do-configure:
|
2014-04-15 20:53:04 +00:00
|
|
|
@cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} ${PYTHON_CMD} \
|
|
|
|
./waf configure
|
2013-10-02 15:03:50 +00:00
|
|
|
|
|
|
|
do-build:
|
2014-04-15 20:53:04 +00:00
|
|
|
@cd ${WRKSRC} && ${PYTHON_CMD} ./waf
|
2013-10-02 15:03:50 +00:00
|
|
|
|
|
|
|
do-install:
|
2014-04-15 20:53:04 +00:00
|
|
|
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
|
|
|
|
2007-10-04 01:14:50 +00:00
|
|
|
.include <bsd.port.mk>
|