summaryrefslogtreecommitdiffstats
path: root/devel/anjuta/Makefile
blob: b4b81b6e56daaf8ea442f24fe1851ad1d6aa125c (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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
# Created by: Dmitry Sivachenko <demon@FreeBSD.org>
# $FreeBSD$
#   $MCom$

PORTNAME=   anjuta
PORTVERSION=    3.6.2
CATEGORIES= devel gnome
MASTER_SITES=   GNOME
DIST_SUBDIR=    gnome3

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

BUILD_DEPENDS=  glade>=3.12.0:${PORTSDIR}/devel/glade \
        valac:${PORTSDIR}/lang/vala \
        itstool:${PORTSDIR}/textproc/itstool
LIB_DEPENDS=    libpcre.so:${PORTSDIR}/devel/pcre \
        libgladeui-2.so:${PORTSDIR}/devel/glade \
        libgdl-3.so:${PORTSDIR}/x11-toolkits/gdl
RUN_DEPENDS=    ${LOCALBASE}/libdata/pkgconfig/gnome-icon-theme.pc:${PORTSDIR}/misc/gnome-icon-theme \
        autogen:${PORTSDIR}/devel/autogen \
        automake>=0:${PORTSDIR}/devel/automake \
        autoconf>=0:${PORTSDIR}/devel/autoconf \
        libtool>=2.4:${PORTSDIR}/devel/libtool \
        gdb>=7.3:${PORTSDIR}/devel/gdb \
        yelp>=3.0.0:${PORTSDIR}/x11/yelp
USE_XZ=     yes
USE_CSTD=   gnu89
USES=       bison desktop-file-utils gettext gmake pathfix perl5 \
        pkgconfig shared-mime-info shebangfix
SHEBANG_FILES=  plugins/project-wizard/templates/js_minimal/src/main.js \
        plugins/tools/scripts/find-fixmes.pl \
        plugins/tools/scripts/translation-status.pl \
        plugins/tools/scripts/prepare-changelog.pl
SHEBANG_LANG+=  gjs
gjs_OLD_CMD=    /usr/bin/gjs
gjs_CMD=    ${LOCALBASE}/bin/gjs
INSTALLS_ICONS= yes
USE_PYTHON= yes
USE_LDCONFIG=   yes
USE_GNOME=  gnomeprefix vte3 gtksourceview3 libgda5 libwnck3
GNU_CONFIGURE=  yes
CPPFLAGS+=  -I${LOCALBASE}/include
LDFLAGS+=   -L${LOCALBASE}/lib
CONFIGURE_ARGS= --with-symbol-db-shm=/tmp \
        --disable-packagekit \
        --enable-introspection=yes
DOCSDIR=    share/doc/libanjuta
GLIB_SCHEMAS=   org.gnome.anjuta.cvs.gschema.xml \
        org.gnome.anjuta.document-manager.gschema.xml \
        org.gnome.anjuta.file-manager.gschema.xml \
        org.gnome.anjuta.gschema.xml \
        org.gnome.anjuta.plugins.build.gschema.xml \
        org.gnome.anjuta.plugins.cpp.gschema.xml \
        org.gnome.anjuta.plugins.debug-manager.gschema.xml \
        org.gnome.anjuta.plugins.indent-c.gschema.xml \
        org.gnome.anjuta.plugins.indent-python.gschema.xml \
        org.gnome.anjuta.plugins.js.gschema.xml \
        org.gnome.anjuta.plugins.message-manager.gschema.xml \
        org.gnome.anjuta.plugins.parser-cxx.gschema.xml \
        org.gnome.anjuta.plugins.python.gschema.xml \
        org.gnome.anjuta.plugins.run.gschema.xml \
        org.gnome.anjuta.plugins.sourceview.gschema.xml \
        org.gnome.anjuta.plugins.vala.gschema.xml \
        org.gnome.anjuta.snippets.gschema.xml \
        org.gnome.anjuta.symbol-db.gschema.xml \
        org.gnome.anjuta.terminal.gschema.xml \
        org.gnome.anjuta.tools.gschema.xml

OPTIONS_DEFINE= SVN DEVHELP GRAPHVIZ VALA
OPTIONS_DEFAULT=DEVHELP GRAPHVIZ
SVN_DESC=   Subversion plugin
DEVHELP_DESC=   Devhelp plugin
GRAPHVIZ_DESC=  Inheritance plugin
VALA_DESC=  Vala support

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MSVN}
BUILD_DEPENDS+= svn:${PORTSDIR}/devel/subversion
LIB_DEPENDS+=   libapr-1.so:${PORTSDIR}/devel/apr1
LIB_DEPENDS+=   libneon.so:${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+=   libdevhelp-3.so:${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

.if ${PORT_OPTIONS:MVALA}
CONFIGURE_ARGS+=--enable-vala
BUILD_DEPENDS+= vala>=0.14.0:${PORTSDIR}/lang/vala
RUN_DEPENDS+=   vala>=0.14.0:${PORTSDIR}/lang/vala
PLIST_SUB+= VALA=""
.else
CONFIGURE_ARGS+=--disable-vala
PLIST_SUB+= VALA="@comment "
.endif

post-patch:
    @${REINPLACE_CMD} -e 's|"make|"gmake|g' \
        ${WRKSRC}/plugins/build-basic-autotools/plugin.c
    @${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${PREFIX}|g' \
        ${WRKSRC}/libanjuta/anjuta-utils.c
    @${REINPLACE_CMD} -e 's|ac_ct_CXX" = "x"|CXX" = "x"|g' \
        ${WRKSRC}/configure
    @${REINPLACE_CMD} -e 's|values.h|limits.h|g' \
        ${WRKSRC}/plugins/project-wizard/property.h \
        ${WRKSRC}/plugins/project-wizard/install.h
    @${REINPLACE_CMD} -e 's|-fprofile-arcs||g' \
        ${WRKSRC}/libanjuta/tests/Makefile.in \
        ${WRKSRC}/libanjuta/tests/Makefile.am

post-install:
    @${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/anjuta/lib*.so
    @${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/glade/modules/libgladeanjuta.so
    @${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libanjuta-3.so.0

.include <bsd.port.mk>