blob: 49d9677b94b9b9a37a561d45879d219858d66d62 [file] [log] [blame]
include $(COMMON_BASE_MK)
NAME=dbus
SRC_DIR=dbus-1.8.20
SRC_TAR=dbus-1.8.20.tar.gz
INSTALL_DIR=$(LIB_DIR)/$(NAME)/install
BUILD_DIR=build
GEN_MAKEFILE=$(SRC_DIR)/Makefile
CONFIG_OPTS = --target=arm-buildroot-linux-uclibcgnueabi --host=arm-buildroot-linux-uclibcgnueabi --build=x86_64-unknown-linux-gnu
#CONFIG_OPTS += --exec-prefix=/usr
CONFIG_OPTS += --sysconfdir=/etc_rw_mbb/etc_rw
CONFIG_OPTS += --localstatedir=/var
CONFIG_OPTS += --program-prefix=
CONFIG_OPTS += --disable-gtk-doc
CONFIG_OPTS += --disable-gtk-doc-html
CONFIG_OPTS += --disable-doc
CONFIG_OPTS += --disable-docs
CONFIG_OPTS += --disable-documentation
CONFIG_OPTS += --with-xmlto=no
CONFIG_OPTS += --with-fop=no
CONFIG_OPTS += --disable-dependency-tracking
CONFIG_OPTS += --enable-ipv6
CONFIG_OPTS += --disable-nls
CONFIG_OPTS += --enable-static
CONFIG_OPTS += --enable-shared
CONFIG_OPTS += --with-dbus-user=dbus
CONFIG_OPTS += --disable-tests
CONFIG_OPTS += --disable-asserts
CONFIG_OPTS += --enable-abstract-sockets
CONFIG_OPTS += --disable-selinux
CONFIG_OPTS += --disable-xml-docs
CONFIG_OPTS += --disable-doxygen-docs
CONFIG_OPTS += --disable-dnotify
CONFIG_OPTS += --with-xml=expat
CONFIG_OPTS += --with-system-socket=/var/run/dbus/system_bus_socket
CONFIG_OPTS += --with-system-pid-file=/var/run/messagebus.pid
CONFIG_OPTS += --disable-selinux
CONFIG_OPTS += --disable-libaudit
CONFIG_OPTS += --without-x
CONFIG_OPTS += --disable-systemd
export ac_cv_have_abstract_sockets=yes
export CFLAGS := -I$(LIB_DIR)/expat/install/include
export LIBS := -lexpat
export LDFLAGS := -L$(LIB_DIR)/expat/install/lib
export PKG_CONFIG_PATH=$(CROSS_COMPILE_SYSROOT)/usr/lib/pkgconfig:$(LIB_DIR)/expat/install/lib/pkgconfig
all: $(GEN_MAKEFILE)
make -C $(SRC_DIR) all
make -C $(SRC_DIR) install DESTDIR=$(INSTALL_DIR)
$(GEN_MAKEFILE):
mkdir -p $(BUILD_DIR)
sha256sum -c $(NAME).sig
tar xf $(TOPDIR_AP)/downloads/$(SRC_TAR)
cd $(SRC_DIR); ./configure --prefix=/ $(CONFIG_OPTS)
clean:
-make -C $(SRC_DIR) distclean
-rm -fr $(BUILD_DIR) $(INSTALL_DIR) $(SRC_DIR)
romfs:
cd $(INSTALL_DIR)/lib; \
for i in *.so*; do \
if [ -L $$i ]; then \
$(ROMFSINST) -s `find $$i -printf %l` /lib/$$i; \
elif [ -f $$i ]; then \
$(ROMFSINST) /lib/$$i; \
fi; \
done
$(ROMFSINST) $(INSTALL_DIR)/bin/dbus-cleanup-sockets /bin/dbus-cleanup-sockets
$(ROMFSINST) $(INSTALL_DIR)/bin/dbus-daemon /bin/dbus-daemon
$(ROMFSINST) $(INSTALL_DIR)/bin/dbus-launch /bin/dbus-launch
$(ROMFSINST) $(INSTALL_DIR)/bin/dbus-monitor /bin/dbus-monitor
$(ROMFSINST) $(INSTALL_DIR)/bin/dbus-run-session /bin/dbus-run-session
$(ROMFSINST) $(INSTALL_DIR)/bin/dbus-send /bin/dbus-send
$(ROMFSINST) $(INSTALL_DIR)/bin/dbus-uuidgen /bin/dbus-uuidgen
populate_sdk:
cp -afvp $(INSTALL_DIR)/include/* $(CROSS_COMPILE_SYSROOT)/usr/include/
cp -afvp $(INSTALL_DIR)/lib/* $(CROSS_COMPILE_SYSROOT)/usr/lib/
cp -afvp $(INSTALL_DIR)/bin/* $(CROSS_COMPILE_SYSROOT)/usr/bin/