Import editors/gedit version 2.30.4_2
[dports.git] / editors / gedit / Makefile
1 # New ports collection makefile for:    gedit2
2 # Date created:                         14 May 2002
3 # Whom:                                 Joe Marcus Clarke <marcus@FreeBSD.org>
4 #
5 # $FreeBSD: ports/editors/gedit/Makefile,v 1.93 2012/11/17 05:57:13 svnexp Exp $
6 #   $MCom: ports/editors/gedit/Makefile,v 1.125 2010/09/30 19:58:54 kwm Exp $
7 #
8
9 PORTNAME=       gedit
10 PORTVERSION=    2.30.4
11 PORTREVISION=   2
12 CATEGORIES=     editors gnome
13 MASTER_SITES=   GNOME
14 DIST_SUBDIR=    gnome2
15
16 MAINTAINER=     gnome@FreeBSD.org
17 COMMENT=        A small but powerful text editor for GNOME 2 Desktop Environment
18
19 BUILD_DEPENDS=  ${LOCALBASE}/libdata/pkgconfig/iso-codes.pc:${PORTSDIR}/misc/iso-codes
20 LIB_DEPENDS=    enchant.1:${PORTSDIR}/textproc/enchant \
21                 soup-2.4.1:${PORTSDIR}/devel/libsoup
22 RUN_DEPENDS=    ${LOCALBASE}/libdata/pkgconfig/iso-codes.pc:${PORTSDIR}/misc/iso-codes
23
24 USE_XORG=       sm
25 USE_BZIP2=      yes
26 USE_GETTEXT=    yes
27 INSTALLS_OMF=   yes
28 USE_LDCONFIG=   yes
29 USE_GMAKE=      yes
30 USE_AUTOTOOLS=  libtool
31 USE_GNOME=      gnomeprefix gnomehack intlhack gconf2 gtksourceview2 \
32                 desktopfileutils gnomedocutils ltasneededhack
33 GNOME_DESKTOP_VERSION=2
34 WANT_GNOME=     yes
35 CPPFLAGS+=      -I${LOCALBASE}/include
36 LDFLAGS+=       -L${LOCALBASE}/lib
37 PLIST_SUB=      VERSION="2.20"
38
39 MAN1=           gedit.1
40 GCONF_SCHEMAS=  gedit.schemas gedit-file-browser.schemas
41
42 .if defined(PACKAGE_BUILDING)
43 .undef WITHOUT_GNOME
44 WITH_GNOME=     yes
45 .endif
46
47 .include <bsd.port.pre.mk>
48
49 .if ${HAVE_GNOME:Mpygtksourceview}!=""
50 USE_PYTHON=     yes
51 .include "${PORTSDIR}/Mk/bsd.python.mk"
52 USE_GNOME+=     pygtksourceview
53 CONFIGURE_ARGS+=--enable-python
54 PLIST_SUB+=     PYTHON=""
55 .else
56 CONFIGURE_ARGS+=--disable-python
57 PLIST_SUB+=     PYTHON="@comment "
58 .endif
59
60 #pre-build:
61 #       ${MKDIR} ${WRKSRC}/bindings/python/.deps
62 #.for ff in gedit_la-gedit.Plo gedit_la-geditcommands.Plo gedit_la-geditutils.Plo
63 #       ${TOUCH} ${WRKSRC}/bindings/python/.deps/${ff}
64 #.endfor
65
66 post-install:
67         @-update-desktop-database
68
69 .include <bsd.port.post.mk>