blob: 135072a9b306d717fd22516a69c2e6cc1b12e1b7 (
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
|
# New ports collection makefile for: D-BUS
# Date Created: 22 June 2004
# Whom: Joe Marcus Clarke <marcus@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= dbus
PORTVERSION?= 1.2.4
PORTREVISION?= 0
CATEGORIES= devel gnome
MASTER_SITES= http://dbus.freedesktop.org/releases/dbus/
MAINTAINER= gnome@FreeBSD.org
COMMENT= A message bus system for inter-application communication
LIB_DEPENDS= expat.6:${PORTSDIR}/textproc/expat2
USE_GNOME?= gnomehack libxml2 ltverhack
USE_GMAKE= yes
USE_AUTOTOOLS= libtool:15
USE_LDCONFIG= yes
CONFIGURE_ARGS=--localstatedir=/var \
--with-test-socket-dir=${WRKDIR} \
--with-system-pid-file=/var/run/dbus/dbus.pid \
--with-system-socket=/var/run/dbus/system_bus_socket \
--with-session-socket-dir=/var/tmp \
--disable-doxygen-docs \
--disable-xml-docs
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib ${PTHREAD_LIBS}" \
PTHREAD_LIBS="${PTHREAD_LIBS}"
.if !defined(DBUS_SLAVE)
USE_RC_SUBR= dbus
USE_GNOME_SUBR= yes
PLIST_SUB= VERSION="1.0"
MAN1= dbus-cleanup-sockets.1 dbus-daemon.1 dbus-launch.1 \
dbus-monitor.1 dbus-send.1 dbus-uuidgen.1
.if !defined(WITHOUT_X11)
USE_XORG= x11
.else
CONFIGURE_ARGS+=--without-x
.endif
.endif
.include <bsd.port.pre.mk>
post-patch:
@${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|g' \
${WRKSRC}/dbus/dbus-sysdeps-unix.c
@${REINPLACE_CMD} -e 's|/lib/dbus/machine-id|/db/dbus/machine-id|g' \
${WRKSRC}/dbus/Makefile.in \
${WRKSRC}/tools/Makefile.in
.if !defined(DBUS_SLAVE)
post-install:
.if !defined(PACKAGE_BUILDING)
@${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
.endif
${MKDIR} ${PREFIX}/share/dbus-1/interfaces
.endif
.include <bsd.port.post.mk>
|