python3: update to 3.11.10
[openadk.git] / package / dbus / Makefile
blob90ac2f089376eb174df0253584c375937e00871d
1 # This file is part of the OpenADK project. OpenADK is copyrighted
2 # material, please see the LICENCE file in the top-level directory.
4 include ${ADK_TOPDIR}/rules.mk
6 PKG_NAME:= dbus
7 PKG_VERSION:= 1.10.20
8 PKG_RELEASE:= 3
9 PKG_HASH:= e574b9780b5425fde4d973bb596e7ea0f09e00fe2edd662da9016e976c460b48
10 PKG_DESCR:= desktop bus daemon
11 PKG_SECTION:= sys/misc
12 PKG_DEPENDS:= libdbus libexpat
13 PKG_BUILDDEP:= expat util-linux
14 PKG_NEEDS:= threads
15 PKG_URL:= http://dbus.freedesktop.org/
16 PKG_SITES:= https://dbus.freedesktop.org/releases/dbus/
17 PKG_LIBNAME:= libdbus
18 PKG_OPTS:= dev
20 DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.gz
22 PKG_SUBPKGS:= DBUS LIBDBUS
23 PKGSD_LIBDBUS:= DBUS library
24 PKGSC_LIBDBUS:= libs/misc
25 PKGSS_LIBDBUS:= libexpat libuuid
27 include ${ADK_TOPDIR}/mk/package.mk
29 $(eval $(call PKG_template,DBUS,dbus,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
30 $(eval $(call PKG_template,LIBDBUS,libdbus,${PKG_VERSION}-${PKG_RELEASE},${PKGSS_LIBDBUS},${PKGSD_LIBDBUS},${PKGSC_LIBDBUS},${PKG_OPTS}))
32 TARGET_LDFLAGS+= -luuid
34 AUTOTOOL_STYLE:= autoreconf
35 CONFIGURE_ARGS+= --disable-systemd \
36 --disable-tests \
37 --disable-asserts \
38 --enable-abstract-sockets \
39 --with-dbus-user=dbus \
40 --with-system-socket=/run/dbus/system_bus_socket \
41 --with-system-pid-file=/run/dbus/dbus.pid \
42 --disable-verbose-mode \
43 --disable-apparmor \
44 --disable-kqueue \
45 --disable-selinux \
46 --disable-libaudit \
47 --disable-doxygen-docs \
48 --disable-xml-docs \
49 --without-x
51 pre-install:
52 ${INSTALL_DIR} $(STAGING_TARGET_DIR)/usr/include/dbus-1.0/dbus
53 $(CP) $(WRKBUILD)/dbus/dbus-arch-deps.h \
54 $(STAGING_TARGET_DIR)/usr/include/dbus-1.0/dbus
56 libdbus-install:
57 ${INSTALL_DIR} ${IDIR_LIBDBUS}/usr/lib
58 ${CP} ${WRKINST}/usr/lib/libdbus-1.so* ${IDIR_LIBDBUS}/usr/lib
60 dbus-install:
61 ${INSTALL_DIR} ${IDIR_DBUS}/etc ${IDIR_DBUS}/usr/share \
62 ${IDIR_DBUS}/usr/bin ${IDIR_DBUS}/usr/libexec
63 ${INSTALL_DIR} ${IDIR_DBUS}/var/lib/dbus ${IDIR_DBUS}/run/dbus
64 (cd ${IDIR_DBUS}/var/lib/dbus; ln -sf ../../../etc/machine-id .)
65 ${INSTALL_BIN} ${WRKINST}/usr/libexec/dbus-daemon-launch-helper \
66 ${IDIR_DBUS}/usr/libexec/
67 ${CP} ${WRKINST}/etc/dbus-1 ${IDIR_DBUS}/etc
68 ${CP} ${WRKINST}/usr/share/dbus-1 ${IDIR_DBUS}/usr/share
69 ${CP} ${WRKINST}/usr/bin/dbus-* ${IDIR_DBUS}/usr/bin
70 # workaround for dev subpackage
71 ${INSTALL_DIR} $(IDIR_DBUS_DEV)/usr/include/dbus-1.0/dbus
72 $(CP) $(WRKBUILD)/dbus/dbus-arch-deps.h \
73 $(IDIR_DBUS_DEV)/usr/include/dbus-1.0/dbus
75 include ${ADK_TOPDIR}/mk/pkg-bottom.mk