diff options
Diffstat (limited to 'devel/py-gi/Makefile')
-rw-r--r-- | devel/py-gi/Makefile | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/devel/py-gi/Makefile b/devel/py-gi/Makefile new file mode 100644 index 000000000..96e106540 --- /dev/null +++ b/devel/py-gi/Makefile @@ -0,0 +1,46 @@ +# New ports collection makefile for: py-gi +# Date Created: 7 Juni 2010 +# Whom: Koop Mast <kwm@FreeBSD.org> +# +# $FreeBSD$ +# $MCom$ +# + +PORTNAME= gi +PORTVERSION= 0.6.0 +CATEGORIES= devel +MASTER_SITES= GNOME +MASTER_SITE_SUBDIR= sources/pygi/${PORTVERSION:C/^([0-9]+\.[0-9]+).*/\1/} +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} +DISTNAME= pygi-${PORTVERSION} +DIST_SUBDIR= gnome2 + +MAINTAINER= gnome@FreeBSD.org +COMMENT= Python bindings based on GObject-Introspection + +BUILD_DEPENDS= g-ir-scanner:${PORTSDIR}/devel/gobject-introspection \ + ${LOCALBASE}/libdata/pkgconfig/pycairo.pc:${PORTSDIR}/graphics/py-cairo \ + ${LOCALBASE}/libdata/pkgconfig/pygobject-2.0.pc:${PORTSDIR}/devel/py-gobject +LIB_DEPENDS= ffi.5:${PORTSDIR}/devel/libffi +RUN_DEPENDS= g-ir-scanner:${PORTSDIR}/devel/gobject-introspection \ + ${LOCALBASE}/libdata/pkgconfig/pycairo.pc:${PORTSDIR}/graphics/py-cairo \ + ${LOCALBASE}/libdata/pkgconfig/pygobject-2.0.pc:${PORTSDIR}/devel/py-gobject + +USE_BZIP2= yes +#USE_GETTEXT= yes +USE_GMAKE= yes +USE_GNOME= gnomehack gnomehier intlhack gtk20 +GNU_CONFIGURE= yes +USE_PYTHON= 2.5+ +CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ + LDFLAGS="-L${LOCALBASE}/lib" + +.include <bsd.port.pre.mk> + +post-patch: + ${CHMOD} +x ${WRKSRC}/install-sh + +#pre-install: +# ${MKDIR} ${PYTHON_SITELIBDIR}/gtk-2.0/gi/repository + +.include <bsd.port.post.mk> |