aboutsummaryrefslogtreecommitdiffstats
path: root/editors/gedit-plugins/Makefile
blob: f3b9067d69f9e60bb2c702f381826b7f681ad97f (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
# New ports collection makefile for:    gedit-plugins
# Date created:             19 September 2003
# Whom:                 Adam Weinberger <adamw@FreeBSD.org>
#
# $FreeBSD$
#   $MCom: ports/editors/gedit-plugins/Makefile,v 1.24 2007/09/30 17:15:47 mezz Exp $
#

PORTNAME=   gedit-plugins
PORTVERSION=    2.20.0
CATEGORIES= editors gnome
MASTER_SITES=   ${MASTER_SITE_GNOME}
MASTER_SITE_SUBDIR= sources/${PORTNAME}/${PORTVERSION:C/^([0-9]+\.[0-9]+).*/\1/}
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

USE_LDCONFIG=   yes
USE_BZIP2=  yes
USE_XLIB=   yes
USE_GMAKE=  yes
USE_GETTEXT=    yes
GNU_CONFIGURE=  yes
USE_GNOME=  gnomehack gnomeprefix gnometarget intlhack
WANT_GNOME= yes
CONFIGURE_ENV=  CPPFLAGS="-I${LOCALBASE}/include" \
        LDFLAGS="-L${LOCALBASE}/lib"

GCONF_SCHEMAS=  gedit-show-tabbar-plugin.schemas

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

.include <bsd.port.pre.mk>

.if ${HAVE_GNOME:Mpygtksourceview}!="" && ${ARCH}!="sparc64"
USE_PYTHON= yes
.include "${PORTSDIR}/Mk/bsd.python.mk"
USE_GNOME+= pygtksourceview
BUILD_DEPENDS+= ${PYTHON_SITELIBDIR}/gtk-2.0/vtemodule.so:${PORTSDIR}/x11-toolkits/py-vte
RUN_DEPENDS+=   ${PYTHON_SITELIBDIR}/gtk-2.0/vtemodule.so:${PORTSDIR}/x11-toolkits/py-vte
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.post.mk>