summaryrefslogtreecommitdiffstats
path: root/devel/anjuta/Makefile
blob: be36c504f2e7e11b0dae296bd00d8dbf6e93df2b (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:    anjuta
# Date created:             31 March 2001
# Whom:                 Dmitry Sivachenko <demon@FreeBSD.org>
#
# $FreeBSD: ports/devel/anjuta/Makefile,v 1.44 2007/03/11 19:41:32 krion Exp $
#   $MCom$
#

PORTNAME=   anjuta
PORTVERSION=    1.2.4
PORTREVISION=   7
CATEGORIES= devel gnome
MASTER_SITES=   ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= anjuta

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

LIB_DEPENDS=    pcre.0:${PORTSDIR}/devel/pcre
RUN_DEPENDS=    ${LOCALBASE}/gnu-autotools/bin/autoconf:${PORTSDIR}/devel/gnu-autoconf \
        ${LOCALBASE}/gnu-autotools/bin/automake:${PORTSDIR}/devel/gnu-automake \
        libtool:${PORTSDIR}/devel/libtool15

USE_AUTOTOOLS=  libtool:15
USE_X_PREFIX=   yes
USE_GMAKE=  yes
INSTALLS_OMF=   yes
USE_GNOME=  gnomeprefix gnomehack libgnomeprintui libgnomeui vte
USE_GETTEXT=    yes
GNU_CONFIGURE=  yes
USE_GCC=    3.4+
CONFIGURE_ENV=  CPPFLAGS="-I${LOCALBASE}/include" \
        LDFLAGS="-L${LOCALBASE}/lib"

MAN1=       anjuta.1 anjuta_launcher.1

.include <bsd.port.pre.mk>

.if ${OSVERSION} < 500000
IGNORE= uses symbols not available on 4.X
.endif

post-configure:
    @${SED} -e 's|%%LOCALBASE%%|${LOCALBASE}|g ; \
        s|%%PREFIX%%|${PREFIX}|g' < ${FILESDIR}/anjuta \
        > ${WRKDIR}/anjuta

post-install:
    ${INSTALL_DATA} ${WRKSRC}/pixmaps/applogo.png \
        ${PREFIX}/share/anjuta/glade
.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

.include <bsd.port.post.mk>