summaryrefslogtreecommitdiff
path: root/package/dbus/Makefile
blob: 9b897054edc3ceb712c06ddac94d60987a588abe (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
# This file is part of the OpenADK project. OpenADK is copyrighted
# material, please see the LICENCE file in the top-level directory.

include ${ADK_TOPDIR}/rules.mk

PKG_NAME:=		dbus
PKG_VERSION:=		1.10.0
PKG_RELEASE:=		1
PKG_HASH:=		1dfb9745fb992f1ccd43c920490de8caddf6726a6222e8b803be6098293f924b
PKG_DESCR:=		desktop bus daemon
PKG_SECTION:=		sys/misc
PKG_DEPENDS:=		libdbus libexpat
PKG_BUILDDEP:=		expat util-linux
PKG_NEEDS:=		threads
PKG_URL:=		http://dbus.freedesktop.org/
PKG_SITES:=		http://dbus.freedesktop.org/releases/dbus/
PKG_LIBNAME:=		libdbus
PKG_OPTS:=		dev

DISTFILES:=		${PKG_NAME}-${PKG_VERSION}.tar.gz

PKG_SUBPKGS:=		DBUS LIBDBUS
PKGSD_LIBDBUS:=		DBUS library
PKGSC_LIBDBUS:=		libs/misc
PKGSS_LIBDBUS:=		libexpat libuuid

include ${ADK_TOPDIR}/mk/package.mk

$(eval $(call PKG_template,DBUS,dbus,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
$(eval $(call PKG_template,LIBDBUS,libdbus,${PKG_VERSION}-${PKG_RELEASE},${PKGSS_LIBDBUS},${PKGSD_LIBDBUS},${PKGSC_LIBDBUS},${PKG_OPTS}))

TARGET_LDFLAGS+=	-luuid
CONFIGURE_ARGS+=	--disable-tests \
			--disable-abstract-sockets \
			--enable-checks \
			--disable-verbose-mode \
			--with-session-socket-dir=/var/tmp \
			--disable-kqueue \
			--disable-systemd \
			--disable-xml-docs \
			--without-x \
			--disable-doxygen-docs
CONFIGURE_ENV+=		ac_cv_have_abstract_sockets=no

pre-install:
	${INSTALL_DIR} $(STAGING_TARGET_DIR)/usr/include/dbus-1.0/dbus
	$(CP) $(WRKBUILD)/dbus/dbus-arch-deps.h \
		$(STAGING_TARGET_DIR)/usr/include/dbus-1.0/dbus

libdbus-install:
	${INSTALL_DIR} ${IDIR_LIBDBUS}/usr/lib
	${CP} ${WRKINST}/usr/lib/libdbus-1.so* ${IDIR_LIBDBUS}/usr/lib

dbus-install:
	${INSTALL_DIR} ${IDIR_DBUS}/etc \
		${IDIR_DBUS}/usr/bin ${IDIR_DBUS}/usr/libexec
	${INSTALL_BIN} ${WRKINST}/usr/libexec/dbus-daemon-launch-helper \
		${IDIR_DBUS}/usr/libexec/
	${CP} ${WRKINST}/etc/dbus-1 ${IDIR_DBUS}/etc
	${INSTALL_BIN} ${WRKINST}/usr/bin/dbus-daemon ${IDIR_DBUS}/usr/bin
	${INSTALL_BIN} ${WRKINST}/usr/bin/dbus-launch ${IDIR_DBUS}/usr/bin
	${INSTALL_BIN} ${WRKINST}/usr/bin/dbus-uuidgen ${IDIR_DBUS}/usr/bin
	${INSTALL_BIN} ${WRKINST}/usr/bin/dbus-send ${IDIR_DBUS}/usr/bin
	${INSTALL_BIN} ${WRKINST}/usr/bin/dbus-monitor ${IDIR_DBUS}/usr/bin
	# workaround for dev subpackage
	${INSTALL_DIR} $(IDIR_DBUS_DEV)/usr/include/dbus-1.0/dbus
	$(CP) $(WRKBUILD)/dbus/dbus-arch-deps.h \
		$(IDIR_DBUS_DEV)/usr/include/dbus-1.0/dbus

include ${ADK_TOPDIR}/mk/pkg-bottom.mk