summaryrefslogtreecommitdiffstats
path: root/editors/gedit-plugins3/Makefile
blob: aecdabfd2bdd43a29d1af45e8388225a2c1be02e (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
53
54
55
56
57
58
59
60
61
62
63
64
65
# New ports collection makefile for:    gedit-plugins
# Date created:             19 September 2003
# Whom:                 Adam Weinberger <adamw@FreeBSD.org>
#
# $FreeBSD$
#   $MCom: ports/editors/gedit-plugins3/Makefile,v 1.14 2011/09/18 10:22:20 kwm Exp $
#

PORTNAME=   gedit-plugins
PORTVERSION=    3.2.0
CATEGORIES= editors gnome
MASTER_SITES=   GNOME
DIST_SUBDIR=    gnome3

MAINTAINER= gnome@FreeBSD.org
COMMENT=    Plugins for GEdit 3

BUILD_DEPENDS=  gedit>=3.2.0:${PORTSDIR}/editors/gedit3
LIB_DEPENDS=    peas-1.0.0:${PORTSDIR}/devel/libpeas
RUN_DEPENDS=    gedit>=3.2.0:${PORTSDIR}/editors/gedit3

CONFLICTS=  gedit-plugins-2.[0-9]*

LATEST_LINK=    gedit-plugins3
USE_LDCONFIG=   yes
USE_XZ=     yes
USE_GMAKE=  yes
USE_GETTEXT=    yes
USE_AUTOTOOLS=  libtool
USE_GNOME=  gnomehack gnomeprefix intlhack gtk30 gtksourceview3
WANT_GNOME= yes
CPPFLAGS+=  -I${LOCALBASE}/include
LDFLAGS+=   -L${LOCALBASE}/lib

GLIB_SCHEMAS=   org.gnome.gedit.plugins.drawspaces.gschema.xml

OPTIONS=    PYTHON "Build plugins that depend on python" off

.if defined(PACKAGE_BUILDING)
.undef WITHOUT_GNOME
WITH_GNOME= yes
.endif

.include <bsd.port.options.mk>

#.if ${HAVE_GNOME:Mpygtksourceview}!="" && ${ARCH}!="sparc64" || defined(WITH_PYTHON)
.if defined(WITH_PYTHON)
USE_PYTHON= yes
BUILD_DEPENDS+= ${PYTHON_SITELIBDIR}/dbus/bus.py:${PORTSDIR}/devel/py-dbus
RUN_DEPENDS+=   ${PYTHON_SITELIBDIR}/dbus/bus.py:${PORTSDIR}/devel/py-dbus
#       gucharmap>=2.33.2:${PORTSDIR}/deskutils/gucharmap3
# the charmap plugin doesn't work, missing py-gucharmap stuff
CONFIGURE_ARGS+=--enable-python
GLIB_SCHEMAS+=  org.gnome.gedit.plugins.terminal.gschema.xml
PLIST_SUB+= PYTHON=""
.else
CONFIGURE_ARGS+=--disable-python
PLIST_SUB+= PYTHON="@comment "
.endif

post-patch:
    @${REINPLACE_CMD} -e 's| \\t\\r\\n\\f|[:space:]|g' \
            ${WRKSRC}/configure

.include <bsd.port.mk>