aboutsummaryrefslogtreecommitdiffstats
path: root/devel/geany/Makefile
blob: 5ee66d5f5a6e35788ae5eab3ec3f3d0e62d98fbd (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
# New ports collection Makefile for:    geany
# Date Created:             15 Jan 06
# Whom:                 Remington Lang <MrL0Lz@gmail.com>
#
# $FreeBSD$
#

PORTNAME=   geany
PORTVERSION=    0.10.2
CATEGORIES= devel
MASTER_SITES=   ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}

MAINTAINER= MrL0Lz@gmail.com
COMMENT=    A fast and lightweight GTK+ IDE

GNU_CONFIGURE=  yes
INSTALLS_ICONS= yes
USE_BZIP2=  yes
USE_GNOME=  gtk20
CONFIGURE_ENV=  CPPFLAGS="-I${LOCALBASE}/include" LDFLAGS="-L${LOCALBASE}/lib"
CONFIGURE_ARGS+=--mandir="${MANPREFIX}/man"

OPTIONS=    VTE "Enable Virtual Terminal Emulation support" on \
        NLS "Enable Native Language support"        on

MAN1=       geany.1

.include <bsd.port.pre.mk>

.if !defined(WITHOUT_NLS)
USE_GETTEXT=    yes
PLIST_SUB+= NLS=""
.else
CONFIGURE_ARGS+=--disable-nls
PLIST_SUB+= NLS="@comment "
.endif

.if !defined(WITHOUT_VTE)
USE_GNOME+= vte
CONFIGURE_ARGS+=--enable-vte
.else
CONFIGURE_ARGS+=--disable-vte
.endif

post-patch:
    @${REINPLACE_CMD} -e 's|gcc|${CC} ${CFLAGS}|' ${WRKSRC}/scintilla/Makefile.in
.if defined(NOPORTDOCS)
    @${REINPLACE_CMD} -e '/^SUBDIRS/ s|doc||' ${WRKSRC}/Makefile.in
.endif
.if defined(WITHOUT_NLS)
    @${REINPLACE_CMD} -e '/^SUBDIRS/ s|po||' ${WRKSRC}/Makefile.in
.endif

post-install:
    ${INSTALL_DATA} ${WRKSRC}/geany.desktop ${PREFIX}/share/applications
    ${INSTALL_MAN} ${WRKSRC}/doc/geany.1 ${MANPREFIX}/man/man1

.include <bsd.port.post.mk>