freebsd-ports/graphics/libchamplain/Makefile
Koop Mast ad9848c828 Force regenerate of a .c file to fix the python bindings. This file was empty.
PR:		ports/148239
Submitted by:	Ruslan Mahmatkhanov <cvs-src@yandex.ru>
Feature safe:	yes
2010-07-03 12:27:52 +00:00

60 lines
1.7 KiB
Makefile

# 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.17 2010/03/29 10:55:48 kwm Exp $
#
PORTNAME= libchamplain
PORTVERSION= 0.4.6
PORTREVISION= 1
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
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 ltverhack:1
USE_AUTOTOOLS= libtool:22
USE_GMAKE= yes
GNU_CONFIGURE= yes
USE_LDCONFIG= yes
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
# clutter-sharp need to get released.
CONFIGURE_ARGS+=--enable-managed=no
PLIST_SUB= VERSION=${PORTVERSION:C/^([0-9]+\.[0-9]+).*/\1/}
.if !defined(WITHOUT_PYTHON)
USE_PYTHON= yes
PYCLUTTER_GTK= ${LOCALBASE}/libdata/pkgconfig/pyclutter-gtk-0.10.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} ""
post-patch:
@${REINPLACE_CMD} -e 's|pyclutter-gtk-0.9|pyclutter-gtk-0.10|g' \
${WRKSRC}/configure
# Fix python bindings, can be safely removed after 0.4.7 release
@${RM} -f ${WRKSRC}/bindings/python/champlain/pychamplain.c
.include <bsd.port.mk>