summaryrefslogtreecommitdiff
path: root/sysutils/dbus-glib/Makefile
blob: 6c4f2691ec8ec1a8a599e10340b04e00d04c42c6 (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
# $NetBSD: Makefile,v 1.7 2006/04/08 20:50:35 reed Exp $
#

DBUS_INTERFACE=	glib
DBUS_DIRS=	dbus bus glib tools

.include "../../sysutils/dbus/Makefile.common"
CONFIGURE_ARGS+=--enable-tests
# We can't install from within the 'dbus' nor 'tools' directory automatically
# because we'd get a lot of other stuff installed (overriding files in the
# dbus package).
INSTALL_DIRS=	${WRKSRC}/glib

INSTALLATION_DIRS=	bin lib/pkgconfig ${PKGMANDIR}/man1

PRINT_PLIST_AWK+=	/^@dirrm include\/dbus-1.0\/dbus$$/ \
				{ print "@comment in dbus: " $$0; next; }

post-install:
	${INSTALL_DATA_DIR} ${PREFIX}/include/dbus-1.0/dbus
	${INSTALL_DATA} ${WRKSRC}/dbus/dbus-glib*.h \
		${PREFIX}/include/dbus-1.0/dbus
	${INSTALL_DATA} ${WRKSRC}/tools/dbus-glib-bindings.h \
		${PREFIX}/include/dbus-1.0/dbus
	${INSTALL_DATA} ${WRKSRC}/dbus-glib-1.pc \
		${PREFIX}/lib/pkgconfig/dbus-glib-1.pc
	cd ${WRKSRC}/tools && ${LIBTOOL} --mode=install \
		${INSTALL_PROGRAM} dbus-monitor ${PREFIX}/bin/dbus-monitor
	${INSTALL_DATA} ${WRKSRC}/tools/dbus-monitor.1 \
		${PREFIX}/${PKGMANDIR}/man1/dbus-monitor.1

.include "../../devel/glib2/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"