aboutsummaryrefslogtreecommitdiff
path: root/devel/dbus-tcl/Makefile
blob: df51d4108b7791fa9a92c307b330b474195cbc28 (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
# Created by: gahr
# $FreeBSD$

PORTNAME=	dbus-tcl
PORTVERSION=	2.1
CATEGORIES=	devel
MASTER_SITES=	SF/${PORTNAME}/dbus/${PORTVERSION}/
DISTNAME=	dbus-${PORTVERSION}

MAINTAINER=	tcltk@FreeBSD.org
COMMENT=	Tcl interface to the D-Bus messaging system

LICENSE=	ISCL

LIB_DEPENDS=	libdbus-1.so:devel/dbus
BUILD_DEPENDS=	dtplite:devel/tcllib

OPTIONS_DEFINE=	DOCS
DOCSDIR=	${PREFIX}/share/doc/dbus
PORTDOCS=	*

TEST_TARGET=	do-test

USES=		pkgconfig tcl:85+,tea

PLIST_FILES=	lib/dbus/libdbus21.so.1 \
		lib/dbus/pkgIndex.tcl \
		man/mann/dbus.n.gz

post-patch:
	${REINPLACE_CMD} -e '/^INSTALL_PROGRAM/s|$$| -s|' \
	    ${WRKSRC}/Makefile.in

do-test:
	DBUS=$$(${LOCALBASE}/bin/dbus-daemon --session --print-address --fork --print-pid); \
	DBUS_ADDR=$$(echo $$DBUS | ${AWK} '{print $$1}'); \
	DBUS_PID=$$(echo $$DBUS | ${AWK} '{print $$2}'); \
	DBUS_ENV=DBUS_SESSION_BUS_ADDRESS=$$DBUS_ADDR; \
	${SETENV} ${MAKE_ENV} $$DBUS_ENV ${MAKE} -C ${WRKSRC} test; \
	kill $$DBUS_PID

.include <bsd.port.mk>