summaryrefslogblamecommitdiffstats
path: root/graphics/py-cairo/Makefile
blob: 05116958f8298f3f6b15a063307ec73deb1a03c7 (plain) (tree)
1
2
3
4
5
6
7
8
9




                                                          
                                                                                     


                     
                     
                               
                                                  



















                                                  









                                                                                    
# New ports collection makefile for:    py-cairo
# Date created:     2004-12-05
# Whom:         Michael Johnson <ahze@FreeBSD.org>
#
# $FreeBSD$
#   $MCom: ports/graphics/py-cairo/Makefile,v 1.19 2006/07/03 15:32:13 ahze Exp $
#

PORTNAME=   cairo
PORTVERSION=    1.2.2
CATEGORIES= graphics python
MASTER_SITES=   http://cairographics.org/releases/
PKGNAMEPREFIX=  ${PYTHON_PKGNAMEPREFIX}
DISTNAME=   py${PORTNAME}-${PORTVERSION}

MAINTAINER= gnome@FreeBSD.org
COMMENT=    Python bindings for Cairo

BUILD_DEPENDS=  ${PYNUMERIC}
LIB_DEPENDS=    cairo.2:${PORTSDIR}/graphics/cairo
RUN_DEPENDS=    ${PYNUMERIC}

USE_PYTHON= yes
USE_GMAKE=  yes
USE_GNOME=  gnometarget gnomehack
GNU_CONFIGURE=  yes
CONFIGURE_ARGS= --without-pygtk
CONFIGURE_ENV=  CPPFLAGS="-I${X11BASE}/include" \
        LDFLAGS="-L${X11BASE}/lib"

.include <bsd.port.pre.mk>

post-patch:
    @${REINPLACE_CMD} -e 's|$$(libdir)/pkgconfig|${PREFIX}/libdata/pkgconfig|; \
        s|SUBDIRS = cairo examples test|SUBDIRS = cairo examples|' \
        ${WRKSRC}/Makefile.in
.if ${OSVERSION} < 500000
    @${REINPLACE_CMD} -e 's|-std=c99||' \
        ${WRKSRC}/configure
.endif

.include <bsd.port.post.mk>