summaryrefslogblamecommitdiffstats
path: root/devel/anjuta/Makefile
blob: c9f53b527eb23378c941b1b626562efc4f9ea40c (plain) (tree)
1
2
3
4
5
6
7
                                                   
           
                                                                            


                        
                 









                                                                           



                                                            








































                                                                                                      



                                    
 
                              
 
                        
                                                

                                            






                                                

                                                   








                                                                        
                             



















                                                                           
                         







                                                                
                      
# Created by: Dmitry Sivachenko <demon@FreeBSD.org>
# $FreeBSD$
#   $MCom: ports/devel/anjuta/Makefile,v 1.71 2012/09/03 16:30:19 mezz Exp $

PORTNAME=   anjuta
PORTVERSION=    2.32.1.1
PORTREVISION=   5
CATEGORIES= devel gnome
MASTER_SITES=   GNOME
DIST_SUBDIR=    gnome2

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

BUILD_DEPENDS=  autogen:${PORTSDIR}/devel/autogen \
        bash:${PORTSDIR}/shells/bash \
        p5-Locale-gettext>=1.05:${PORTSDIR}/devel/p5-Locale-gettext
LIB_DEPENDS=    pcre:${PORTSDIR}/devel/pcre \
        gladeui-1:${PORTSDIR}/devel/glade3 \
        unique-1.0:${PORTSDIR}/x11-toolkits/unique \
        gdl-1:${PORTSDIR}/x11-toolkits/gdl
RUN_DEPENDS=    bash:${PORTSDIR}/shells/bash \
        autogen:${PORTSDIR}/devel/autogen \
        ${LOCALBASE}/share/autotools:${PORTSDIR}/devel/autotools \
        p5-Locale-gettext>=1.05:${PORTSDIR}/devel/p5-Locale-gettext \
        ${LOCALBASE}/libdata/pkgconfig/gnome-icon-theme.pc:${PORTSDIR}/misc/gnome-icon-theme \
        exctags:${PORTSDIR}/devel/ctags \
        gdb66:${PORTSDIR}/devel/gdb66 \
        yelp:${PORTSDIR}/x11/yelp

CONFLICTS=  anjuta-3.[0-9]*

USE_BZIP2=  yes
USE_GMAKE=  yes
USE_GETTEXT=    yes
INSTALLS_OMF=   yes
INSTALLS_ICONS= yes
USE_PERL5=  yes
USE_PYTHON= yes
USE_GNOME=  gnomeprefix gnomehack vte gtksourceview2 libgda4
GNU_CONFIGURE=  yes
CPPFLAGS+=  -I${LOCALBASE}/include
LDFLAGS+=   -L${LOCALBASE}/lib
CONFIGURE_ARGS= --with-symbol-db-shm=/tmp \
        --disable-vala \
        --enable-introspection=no
USE_LDCONFIG=   yes
GCONF_SCHEMAS=  anjuta-build-basic-autotools-plugin.schemas \
        anjuta-cvs-plugin.schemas \
        anjuta-debug-manager.schemas \
        anjuta-document-manager.schemas \
        anjuta-editor-sourceview.schemas \
        anjuta-language-cpp-java.schemas \
        anjuta-message-manager-plugin.schemas \
        anjuta-symbol-db.schemas \
        anjuta-terminal-plugin.schemas \
        file-manager.schemas \
        preferences.schemas \
        python-plugin-properties.schemas

MAN1=       anjuta.1 anjuta-launcher.1

OPTIONS_DEFINE= SVN DEVHELP GRAPHVIZ
OPTIONS_DEFAULT=DEVHELP GRAPHVIZ
DEVHELP_DESC=   Devhelp support
GRAPHVIZ_DESC=  inheritance plugin

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MSVN}
BUILD_DEPENDS+= svn:${PORTSDIR}/devel/subversion
LIB_DEPENDS+=   apr-1:${PORTSDIR}/devel/apr1
LIB_DEPENDS+=   neon:${PORTSDIR}/www/neon29
RUN_DEPENDS+=   svn:${PORTSDIR}/devel/subversion
PLIST_SUB+= SVN=""
.else
CONFIGURE_ARGS+=--disable-plugin-subversion
PLIST_SUB+= SVN="@comment "
.endif

.if ${PORT_OPTIONS:MDEVHELP}
LIB_DEPENDS+=   devhelp-2:${PORTSDIR}/devel/devhelp
PLIST_SUB+= DEVHELP=""
.else
CONFIGURE_ARGS+=--disable-plugin-devhelp
# XXX Even if we disable the devhelp plugin it gets build and installed.
# See if versions beyond 2.26.1.0 still do this.
#PLIST_SUB+=    DEVHELP="@comment "
PLIST_SUB+= DEVHELP=""
.endif

.if ${PORT_OPTIONS:MGRAPHVIZ}
CONFIGURE_ARGS+=--enable-graphviz
BUILD_DEPENDS+= neato:${PORTSDIR}/graphics/graphviz
RUN_DEPENDS+=   neato:${PORTSDIR}/graphics/graphviz
PLIST_SUB+= GRAPHVIZ=""
.else
CONFIGURE_ARGS+=--disable-graphviz
PLIST_SUB+= GRAPHVIZ="@comment "
.endif

post-patch:
    @${RM} ${WRKSRC}/plugins/debug-manager/anjuta-debug-manager.schemas

post-configure:
    @${REINPLACE_CMD} -e 's|"make|"gmake|g' \
        ${WRKSRC}/plugins/build-basic-autotools/plugin.c
    @${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g' \
            ${WRKSRC}/plugins/symbol-db/plugin.h \
        ${WRKSRC}/plugins/symbol-db/symbol-db-prefs.h

post-install:
.if ${PORT_OPTIONS:MDOCS}
    ${MKDIR} ${DOCSDIR}
.for f in AUTHORS COPYING ChangeLog FUTURE INSTALL NEWS README \
    doc/ScintillaDoc.html TODO
    ${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
.endfor
.endif
    @-update-mime-database ${PREFIX}/share/mime

.include <bsd.port.mk>