# # This file and its contents are supplied under the terms of the # Common Development and Distribution License ("CDDL"), version 1.0. # You may only use this file in accordance with the terms of version # 1.0 of the CDDL. # # A full copy of the text of the CDDL should have accompanied this # source. A copy of the CDDL is also available via the Internet at # http://www.illumos.org/license/CDDL. # # # Copyright 2014 Alexander Pyhalov. All rights reserved. # Copyright 2023 Andreas Wacknitz # BUILD_BITS= 32_and_64 USE_DEFAULT_TEST_TRANSFORMS= yes include ../../../make-rules/shared-macros.mk COMPONENT_NAME= avahi COMPONENT_VERSION= 0.7 COMPONENT_REVISION= 7 COMPONENT_SUMMARY= Avahi client and bridge to pkg://service/network/dns/mdns COMPONENT_PROJECT_URL= https://avahi.org COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION) COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz COMPONENT_ARCHIVE_URL= https://github.com/lathiat/avahi/releases/download/v0.7/$(COMPONENT_ARCHIVE) COMPONENT_ARCHIVE_HASH= sha256:57a99b5dfe7fdae794e3d1ee7a62973a368e91e414bd0dfa5d84434de5b14804 COMPONENT_FMRI= system/network/avahi COMPONENT_CLASSIFICATION= Applications/Internet COMPONENT_LICENSE= LGPLv2.1 COMPONENT_LICENSE_FILE= LICENSE include $(WS_MAKE_RULES)/common.mk COMPONENT_PREP_ACTION += ( \ cd $(@D) && \ aclocal -I common && \ automake --add-missing && \ autoconf ) # Need this to build service-type-database COMPONENT_PRE_CONFIGURE_ACTION= ( $(CP) -r $(SOURCE_DIR)/* $(@D) ) LDFLAGS += -ldns_sd CONFIGURE_OPTIONS += --disable-static CONFIGURE_OPTIONS += --with-avahi-user=daemon CONFIGURE_OPTIONS += --with-avahi-group=other CONFIGURE_OPTIONS += --sysconfdir=/etc CONFIGURE_OPTIONS += --localstatedir=/var CONFIGURE_OPTIONS += --with-distro=none CONFIGURE_OPTIONS += --disable-gtk3 CONFIGURE_OPTIONS += --disable-qt3 CONFIGURE_OPTIONS += --disable-qt4 CONFIGURE_OPTIONS += --disable-mono CONFIGURE_OPTIONS += --disable-monodoc CONFIGURE_OPTIONS += --enable-tests CONFIGURE_OPTIONS += --disable-compat-howl CONFIGURE_OPTIONS += --disable-compat-libdns_sd CONFIGURE_OPTIONS += --disable-autoipd CONFIGURE_OPTIONS += --disable-gdbm CONFIGURE_OPTIONS += --enable-dbm # We don't want 32 bit gui CONFIGURE_OPTIONS.32 += --disable-gtk CONFIGURE_OPTIONS.32 += --disable-gtk3 CONFIGURE_OPTIONS.32 += --disable-pygobject CONFIGURE_ENV += XGETTEXT=/usr/gnu/bin/xgettext CONFIGURE_ENV += MSGFMT=/usr/gnu/bin/msgfmt CONFIGURE_ENV += am_cv_python_pythondir="$(PYTHON_VENDOR_PACKAGES)" CONFIGURE_ENV += am_cv_python_pyexecdir="$(PYTHON_VENDOR_PACKAGES)" CONFIGURE_ENV += PYTHON="$(PYTHON)" # CFLAGS are not passed to compiler when g-ir-scanner is used COMPONENT_BUILD_ENV += CFLAGS="$(CFLAGS)" COMPONENT_BUILD_ENV += CC="$(CC)" unexport SHELLOPTS # Manually added build dependencies REQUIRED_PACKAGES += text/xmltoman # Auto-generated dependencies PYTHON_REQUIRED_PACKAGES += library/python/pygobject PYTHON_REQUIRED_PACKAGES += library/python/python-dbus PYTHON_REQUIRED_PACKAGES += runtime/python REQUIRED_PACKAGES += $(GCC_RUNTIME_PKG) REQUIRED_PACKAGES += SUNWcs REQUIRED_PACKAGES += library/desktop/gtk2 REQUIRED_PACKAGES += library/expat REQUIRED_PACKAGES += library/glib2 REQUIRED_PACKAGES += library/libdaemon REQUIRED_PACKAGES += service/network/dns/mdns REQUIRED_PACKAGES += shell/ksh93 REQUIRED_PACKAGES += system/library REQUIRED_PACKAGES += system/library/dbus REQUIRED_PACKAGES += system/library/libdbus