aboutsummaryrefslogtreecommitdiffstats
path: root/devel/nemiver/Makefile
blob: ab4511949b4b4e8ca19b01bdb1543289dbdf81fd (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
# Created by: Romain Tartiere <romain@blogreen.org>
# $FreeBSD$

PORTNAME=   nemiver
PORTVERSION=    0.8.2
PORTREVISION=   8
CATEGORIES= devel
MASTER_SITES=   ${MASTER_SITE_GNOME}
MASTER_SITE_SUBDIR= sources/${PORTNAME}/${PORTVERSION:C/^([0-9]+\.[0-9]+).*/\1/}
DIST_SUBDIR=    gnome2

MAINTAINER= ports@FreeBSD.org
COMMENT=    C/C++ Debugger for GNOME

LIB_DEPENDS=    libboost_unit_test_framework.so:${PORTSDIR}/devel/boost-libs \
        libgtop-2.0.so:${PORTSDIR}/devel/libgtop \
        libsqlite3.so:${PORTSDIR}/databases/sqlite3 \
        libglademm-2.4.so:${PORTSDIR}/devel/libglademm24 \
        libgtksourceviewmm-2.so:${PORTSDIR}/x11-toolkits/libgtksourceviewmm
BUILD_DEPENDS=  ${LOCALBASE}/bin/gdb:${PORTSDIR}/devel/gdb
RUN_DEPENDS=    ${LOCALBASE}/bin/gdb:${PORTSDIR}/devel/gdb

OPTIONS_DEFINE= GHEX
GHEX_DESC=  Enable memory view

BROKEN=     Does not build with current environment, and some GTK3 bits are missing for an update

GNU_CONFIGURE=  yes
CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV=  ac_cv_path_GDB_PROG=${LOCALBASE}/bin/gdb
USE_GNOME=  gnomeprefix gnomehack intltool gnomedocutils gconf2 vte
USE_GCC=    yes
USE_LDCONFIG=   yes
USES=       gettext gmake pkgconfig
INSTALLS_OMF=   yes
INSTALLS_ICONS= yes
MAN1=       nemiver.1

NO_STAGE=   yes
.include <bsd.port.options.mk>

.if !exists(${LOCALBASE}/libdata/pkgconfig/gsettings-desktop-schemas.pc)
CONFIGURE_ARGS+=--enable-gsettings=no
PLIST_SUB+= GSETTINGS="@comment " GCONF=""
GCONF_SCHEMAS=  nemiver-workbench.schemas nemiver-dbgperspective.schemas
.else
# Technically, the port is already installed in this case so fill-in
# BUILD_DEPENDS for the sake of consistency only.
BUILD_DEPENDS+= ${LOCALBASE}/libdata/pkgconfig/gsettings-desktop-schemas.pc:${PORTSDIR}/devel/gsettings-desktop-schemas
RUN_DEPENDS+=   ${LOCALBASE}/libdata/pkgconfig/gsettings-desktop-schemas.pc:${PORTSDIR}/devel/gsettings-desktop-schemas
CONFIGURE_ARGS+=--enable-gsettings=yes
PLIST_SUB+= GSETTINGS="" GCONF="@comment "
GLIB_SCHEMAS=   org.nemiver.gschema.xml
.endif

.if ${PORT_OPTIONS:MGHEX}
CONFIGURE_ARGS+=--enable-memoryview
PLIST_SUB+= GHEX=""
LIB_DEPENDS+=   libgtkhex.so:${PORTSDIR}/editors/ghex
.else
CONFIGURE_ARGS+=--disable-memoryview
PLIST_SUB+= GHEX="@comment "
.endif

.include <bsd.port.mk>