summaryrefslogtreecommitdiffstats
path: root/graphics/libchamplain/Makefile
blob: 2a4d06d86f905aa399455f7afd71ecea189deee3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# New ports collection makefile for:   libchamplain
# Date Created:         04 Aug 2009
# Whom:             Koop Mast <kwm@FreeBSD.org>
#
# $FreeBSD$
#   $MCom: ports/graphics/libchamplain/Makefile,v 1.3 2009/08/24 16:29:37 kwm Exp $
#

PORTNAME=   libchamplain
PORTVERSION=    0.3.92
CATEGORIES= graphics
MASTER_SITES=   GNOME

MAINTAINER= gnome@FreeBSD.org
COMMENT=    A C library aimed to provide a Gtk+ widget to display rasterized maps and markers

BUILD_DEPENDS=  g-ir-scanner:${PORTSDIR}/devel/gobject-introspection
LIB_DEPENDS=    sqlite3.8:${PORTSDIR}/databases/sqlite3 \
        clutter-gtk-0.10.0:${PORTSDIR}/graphics/clutter-gtk \
        soup-gnome-2.4.1:${PORTSDIR}/devel/libsoup

USE_BZIP2=  yes
USE_GNOME=  pkgconfig gtk20 gnomehack
USE_GMAKE=  yes
GNU_CONFIGURE=  yes
USE_LDCONFIG=   yes
CONFIGURE_ENV=  CPPFLAGS="-I${LOCALBASE}/include" \
        LDFLAGS="-L${LOCALBASE}/lib"

# python bindings and mono need to be ported to clutter 1.0 first.
# And clutter 1.0 versions of py-clutter and clutter-sharp need to 
# get released upstream too.
CONFIGURE_ARGS+=--enable-managed=no

.if !defined(WITHOUT_PYTHON)
USE_PYTHON= yes
PYCLUTTER_GTK=      ${LOCALBASE}/libdata/pkgconfig/pyclutter-gtk-0.9.pc
BUILD_DEPENDS+=     ${PYCLUTTER_GTK}:${PORTSDIR}/graphics/py-clutter-gtk
RUN_DEPENDS+=       ${PYCLUTTER_GTK}:${PORTSDIR}/graphics/py-clutter-gtk
CONFIGURE_ARGS+=    --enable-python=yes
PLIST_SUB+=     PYTHON=""
.else
CONFIGURE_ARGS+=    --enable-python=no
PLIST_SUB+=     PYTHON="@comment "
.endif

.pre-everything:
    @${ECHO_CMD} ""
    @${ECHO_CMD} "Specify WITHOUT_PYTHON=yes to disable python bindings"
    @${ECHO_CMD} ""

.include <bsd.port.mk>