summaryrefslogtreecommitdiffstats
path: root/devel/anjuta-devel/Makefile
blob: e504ee452bfe5c0e48e8afea186000c5a3762c98 (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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
# New ports collection makefile for:    anjuta
# Date created:             31 March 2001
# Whom:                 Dmitry Sivachenko <demon@FreeBSD.org>
#
# $FreeBSD$
#   $MCom: ports/devel/anjuta-devel/Makefile,v 1.11 2006/03/02 20:31:33 mezz Exp $
#

PORTNAME=   anjuta
PORTVERSION=    2.0.1
PORTREVISION=   2
CATEGORIES= devel gnome
MASTER_SITES=   ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= anjuta

MAINTAINER= gnome@FreeBSD.org
COMMENT=    Integrated Development Environment for C and C++

BUILD_DEPENDS=  autogen:${PORTSDIR}/devel/autogen \
        bash:${PORTSDIR}/shells/bash2 \
        dotneato-config:${PORTSDIR}/graphics/graphviz
LIB_DEPENDS=    pcre.0:${PORTSDIR}/devel/pcre \
        gbf-1.0:${PORTSDIR}/devel/gnomebuild \
        gladeui-1.0:${PORTSDIR}/devel/glade3 \
        devhelp-1.0:${PORTSDIR}/devel/devhelp
RUN_DEPENDS=    ${LOCALBASE}/gnu-autotools/bin/autoconf:${PORTSDIR}/devel/gnu-autoconf \
        ${LOCALBASE}/gnu-autotools/bin/automake:${PORTSDIR}/devel/gnu-automake \
        ${LOCALBASE}/gnu-autotools/bin/libtool:${PORTSDIR}/devel/gnu-libtool \
        autogen:${PORTSDIR}/devel/autogen \
        dotneato-config:${PORTSDIR}/graphics/graphviz

CONFLICTS=  anjuta-1.2.*

USE_XLIB=   yes
USE_GMAKE=  yes
USE_GETTEXT=    yes
INSTALLS_OMF=   yes
USE_GNOME=  gnomeprefix gnomehack libgnomeprintui libgnomeui vte
GNU_CONFIGURE=  yes
CONFIGURE_ENV=  CPPFLAGS="-I${LOCALBASE}/include" \
        LDFLAGS="-L${LOCALBASE}/lib"
INSTALLS_SHLIB= yes

OPTIONS=    SVN "Build subversion plugins" off

.include <bsd.port.pre.mk>

.if defined(WITH_SVN)
BUILD_DEPENDS+= ${APXS}:${PORTSDIR}/www/apache2 \
        svn:${PORTSDIR}/devel/subversion
RUN_DEPENDS+=   ${APXS}:${PORTSDIR}/www/apache2 \
        svn:${PORTSDIR}/devel/subversion

CONFIGURE_ARGS+=--with-subversion-dir=${LOCALBASE}/bin \
        --with-svn-include=${LOCALBASE}/include \
        --with-svn-lib=${LOCALBASE}/lib \
        --with-apr-config=${LOCALBASE}/bin/apr-1-config \
        --with-apu-config=${LOCALBASE}/bin/apu-1-config
PLIST_SUB+= SVN=""
.else
CONFIGURE_ARGS+=--without-subversion-dir \
        --without-apr-config \
        --without-apu-config
PLIST_SUB+= SVN="@comment "
.endif

MAN1=       anjuta.1 anjuta_launcher.1

post-configure:
    @${SED} -e 's|%%LOCALBASE%%|${LOCALBASE}|g ; \
        s|%%PREFIX%%|${PREFIX}|g' < ${FILESDIR}/anjuta \
        > ${WRKDIR}/anjuta
    @${REINPLACE_CMD} -e 's|subversion||g' ${WRKSRC}/plugins/Makefile
    @${REINPLACE_CMD} -e 's|/bin/sh|${LOCALBASE}/bin/bash|g' \
        ${WRKSRC}/global-tags/create_global_tags.sh

post-build:
    @cd ${WRKSRC}/global-tags && ${SETENV} PKG_CONFIG_PATH="${PREFIX}/libdata/pkgconfig:${LOCALBASE}/libdata/pkgconfig:${X11BASE}/libdata/pkgconfig" bash create_global_tags.sh

post-install:
.if !defined(NOPORTDOCS)
    ${MKDIR} ${DOCSDIR}
.for f in AUTHORS COPYING ChangeLog FUTURE INSTALL NEWS README \
    doc/ScintillaDoc.html TODO
    ${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
.endfor
.endif
    ${MV} ${PREFIX}/bin/anjuta ${PREFIX}/bin/anjuta-bin
    ${INSTALL_SCRIPT} ${WRKDIR}/anjuta ${PREFIX}/bin
    @-update-mime-database ${PREFIX}/share/mime

.include <bsd.port.post.mk>