summaryrefslogtreecommitdiffstats
path: root/editors/gedit-plugins/Makefile
blob: 4c5e2e96e515f733c731e0bed7ecce31477af6ee (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
# Created by: Adam Weinberger <adamw@FreeBSD.org>
# $FreeBSD$
#   $MCom: ports/trunk/editors/gedit-plugins/Makefile 18610 2013-06-30 16:33:05Z marcus $

PORTNAME=   gedit-plugins
PORTVERSION=    2.32.0
PORTREVISION=   3
CATEGORIES= editors gnome
MASTER_SITES=   GNOME
DIST_SUBDIR=    gnome2

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

BUILD_DEPENDS=  gedit:${PORTSDIR}/editors/gedit \
        gucharmap:${PORTSDIR}/deskutils/gucharmap
RUN_DEPENDS=    gedit:${PORTSDIR}/editors/gedit \
        gucharmap:${PORTSDIR}/deskutils/gucharmap

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

USE_LDCONFIG=   yes
USE_BZIP2=  yes
USES=       gettext gmake pathfix pkgconfig
USE_AUTOTOOLS=  libtool
USE_GNOME=  gnomeprefix intlhack gnomevfs2
WANT_GNOME= yes
CPPFLAGS+=  -I${LOCALBASE}/include
LDFLAGS+=   -L${LOCALBASE}/lib

GCONF_SCHEMAS=  gedit-show-tabbar-plugin.schemas \
        gedit-drawspaces.schemas

OPTIONS_DEFINE= PYTHON
PYTHON_DESC=    Build python plugins

.if defined(PACKAGE_BUILDING)
OPTIONS_DEFAULT=PYTHON
.endif

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MPYTHON}
USE_PYTHON= yes
USE_GNOME+= pygtksourceview
BUILD_DEPENDS+= ${PYTHON_SITELIBDIR}/gtk-2.0/vtemodule.so:${PORTSDIR}/x11-toolkits/py-vte \
        ${PYTHON_SITELIBDIR}/dbus/bus.py:${PORTSDIR}/devel/py-dbus \
        ${PYTHON_SITELIBDIR}/gtksourceview2.so:${PORTSDIR}/x11-toolkits/py-gtksourceview
RUN_DEPENDS+=   ${PYTHON_SITELIBDIR}/gtk-2.0/vtemodule.so:${PORTSDIR}/x11-toolkits/py-vte \
        ${PYTHON_SITELIBDIR}/dbus/bus.py:${PORTSDIR}/devel/py-dbus \
        ${PYTHON_SITELIBDIR}/gtksourceview2.so:${PORTSDIR}/x11-toolkits/py-gtksourceview
CONFIGURE_ARGS+=--enable-python
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>