summaryrefslogtreecommitdiff
path: root/sysutils/dbus/Makefile.common
blob: f942ca359e055af8b68a6ab0ac4b64c088a30b99 (plain)
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
# $NetBSD: Makefile.common,v 1.12 2006/02/11 14:30:29 rxg Exp $
#

# XXX Do not update to 0.30 or above yet.  The API in the 0.2x series is
# XXX the most commonly used ATM.

DBUS_VERSION=	0.23.4

DISTNAME=	dbus-${DBUS_VERSION}
CATEGORIES=	sysutils
MASTER_SITES=	http://freedesktop.org/software/dbus/releases/

MAINTAINER=	jmmv@NetBSD.org
HOMEPAGE=	http://www.freedesktop.org/Software/dbus
COMMENT=	Message bus system

DISTINFO_FILE=	${.CURDIR}/../../sysutils/dbus/distinfo
PATCHDIR=	${.CURDIR}/../../sysutils/dbus/patches

GNU_CONFIGURE=		YES
USE_TOOLS+=		gmake pkg-config
USE_LIBTOOL=		YES

PKGCONFIG_OVERRIDE=	dbus-1.pc
PKGCONFIG_OVERRIDE+=	dbus-glib-1.pc
PKGCONFIG_OVERRIDE+=	dbus-sharp.pc

CONFIGURE_ARGS+=	--disable-qt
CONFIGURE_ARGS+=	--disable-glib
CONFIGURE_ARGS+=	--disable-gtk
CONFIGURE_ARGS+=	--disable-xml-docs
CONFIGURE_ARGS+=	--disable-doxygen-docs
CONFIGURE_ARGS+=	--disable-gcj
CONFIGURE_ARGS+=	--disable-mono
CONFIGURE_ARGS+=	--disable-mono-docs
CONFIGURE_ARGS+=	--disable-python
CONFIGURE_ARGS+=	--disable-selinux
CONFIGURE_ARGS+=	--enable-checks
CONFIGURE_ARGS+=	--localstatedir=${VARBASE:Q}
CONFIGURE_ARGS+=	--sysconfdir=${PKG_SYSCONFDIR:Q}
CONFIGURE_ARGS+=	--with-xml=expat
CONFIGURE_ARGS+=	--without-x

PKG_SYSCONFSUBDIR=	dbus-1

# gcc 2.95 does not understand -Wfloat-equal
BUILDLINK_TRANSFORM+=	rm:-Wfloat-equal

.if defined(DBUS_INTERFACE)
DBUS_ARGS?=		${DBUS_INTERFACE}
DBUS_DIRS?=		${DBUS_INTERFACE}

PKGNAME?=		${DISTNAME:S/dbus/dbus-${DBUS_INTERFACE}/}
COMMENT+=		(${DBUS_INTERFACE} interface)

SUBST_CLASSES+=		paths
SUBST_STAGE.paths=	pre-configure
SUBST_MESSAGE.paths=	"Fixing paths to installed dbus\' libraries."
SUBST_SED.paths=	-e 's|$$(top_builddir)/dbus/libdbus-1.la|${BUILDLINK_PREFIX.dbus}/lib/libdbus-1.la|g'
SUBST_FILES.paths=

BUILD_DIRS=
INSTALL_DIRS=

.  for f in ${DBUS_ARGS}
CONFIGURE_ARGS:=	${CONFIGURE_ARGS:S/--disable-${f}/--enable-${f}/}
.  endfor

.  for f in ${DBUS_DIRS}
BUILD_DIRS+=		${WRKSRC}/${f}
INSTALL_DIRS+=		${WRKSRC}/${f}
SUBST_FILES.paths+=	${f}/Makefile.in
.  endfor

BUILDLINK_DEPENDS.dbus+=	dbus>=${DBUS_VERSION}
.  include "../../sysutils/dbus/buildlink3.mk"
.endif

.include "../../textproc/expat/buildlink3.mk"