components/avahi/Makefile
changeset 5257 0da26ce015ab
child 5259 165add577cba
equal deleted inserted replaced
5256:1c3e20e70cc3 5257:0da26ce015ab
       
     1 #
       
     2 # CDDL HEADER START
       
     3 #
       
     4 # The contents of this file are subject to the terms of the
       
     5 # Common Development and Distribution License (the "License").
       
     6 # You may not use this file except in compliance with the License.
       
     7 #
       
     8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
       
     9 # or http://www.opensolaris.org/os/licensing.
       
    10 # See the License for the specific language governing permissions
       
    11 # and limitations under the License.
       
    12 #
       
    13 # When distributing Covered Code, include this CDDL HEADER in each
       
    14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
       
    15 # If applicable, add the following below this CDDL HEADER, with the
       
    16 # fields enclosed by brackets "[]" replaced with your own identifying
       
    17 # information: Portions Copyright [yyyy] [name of copyright owner]
       
    18 #
       
    19 # CDDL HEADER END
       
    20 #
       
    21 
       
    22 #
       
    23 # Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
       
    24 #
       
    25 
       
    26 include ../../make-rules/shared-macros.mk
       
    27 # Override PATH set in shared-macros.mk by setting the GNU PATH as default.
       
    28 PATH=/usr/gnu/bin:/usr/bin
       
    29 
       
    30 COMPONENT_NAME=		avahi
       
    31 COMPONENT_VERSION=	0.6.30
       
    32 COMPONENT_SRC=		$(COMPONENT_NAME)-$(COMPONENT_VERSION)
       
    33 COMPONENT_PROJECT_URL=	http://www.avahi.org/
       
    34 COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tar.gz
       
    35 COMPONENT_ARCHIVE_HASH=	\
       
    36 	sha256:f9e4316c2339d0020726edd846d01bee0c39980906db0c247479e5807457ff1f
       
    37 COMPONENT_ARCHIVE_URL=	http://www.avahi.org/download/$(COMPONENT_ARCHIVE)
       
    38 COMPONENT_BUGDB=	library/avahi
       
    39 
       
    40 TPNO=			7879
       
    41 
       
    42 include $(WS_MAKE_RULES)/prep.mk
       
    43 include $(WS_MAKE_RULES)/configure.mk
       
    44 include $(WS_MAKE_RULES)/ips.mk
       
    45 
       
    46 # Set the pkg... path to search files in ./files/ dir (mainly the SMF manifests are there)
       
    47 PKG_PROTO_DIRS += $(COMPONENT_DIR)
       
    48 
       
    49 CONFIGURE_BINDIR.64 =	$(CONFIGURE_PREFIX)/bin
       
    50 CONFIGURE_SBINDIR.64 =	$(CONFIGURE_PREFIX)/bin
       
    51 CONFIGURE_OPTIONS	+=	--enable-shared
       
    52 CONFIGURE_OPTIONS	+=	--disable-static
       
    53 CONFIGURE_OPTIONS	+=	--sysconfdir=/etc
       
    54 CONFIGURE_OPTIONS	+=	--with-avahi-user=daemon
       
    55 CONFIGURE_OPTIONS	+=	--with-avahi-group=other
       
    56 CONFIGURE_OPTIONS	+=	--localstatedir=/var/avahi
       
    57 CONFIGURE_OPTIONS	+=	--with-distro=none
       
    58 CONFIGURE_OPTIONS	+=	--disable-gtk3
       
    59 CONFIGURE_OPTIONS	+=	--disable-qt3
       
    60 CONFIGURE_OPTIONS	+=	--disable-qt4
       
    61 CONFIGURE_OPTIONS	+=	--disable-mono
       
    62 CONFIGURE_OPTIONS	+=	--disable-monodoc
       
    63 CONFIGURE_OPTIONS	+=	--enable-tests
       
    64 CONFIGURE_OPTIONS	+=	--enable-expat
       
    65 CONFIGURE_OPTIONS	+=	--disable-autoipd
       
    66 CONFIGURE_OPTIONS	+=	--disable-gdbm
       
    67 CONFIGURE_OPTIONS	+=	--enable-dbm
       
    68 # xmltoman is not available
       
    69 CONFIGURE_OPTIONS	+=	--disable-manpages
       
    70 CONFIGURE_OPTIONS.64	+=	--enable-doxygen-man
       
    71 CONFIGURE_OPTIONS.32	+=	--disable-doxygen-man
       
    72 CONFIGURE_OPTIONS	+=	CPP="$(CC) -E"
       
    73 CONFIGURE_OPTIONS	+=	CFLAGS="$(CFLAGS)"
       
    74 LDFLAGS	+=	-ldns_sd
       
    75 CONFIGURE_OPTIONS	+=	LDFLAGS="$(LDFLAGS)"
       
    76 CONFIGURE_OPTIONS	+=	PYTHON=$(PYTHON.$(PYTHON_VERSION))
       
    77 CONFIGURE_OPTIONS	+=	am_cv_python_pythondir="$(PYTHON_VENDOR_PACKAGES)"
       
    78 CONFIGURE_OPTIONS	+=	am_cv_python_pyexecdir="$(PYTHON_VENDOR_PACKAGES)"
       
    79 
       
    80 # NOCONFIGURE=yes -> do not execute "configure" directly from "autogen.sh" (/wo CONFIGURE_OPTIONS...)
       
    81 # running of configure /wo CONFIGURE_OPTIONS + ENV -> configure will fail (on --with-distro=none is missing)
       
    82 # because "sunos" is not among the distros known to avahi.
       
    83 COMPONENT_PREP_ACTION += \
       
    84  ( cd $(@D) ; set NOCONFIGURE=yes $(CONFIG_SHELL) autogen.sh )
       
    85 # g-i-r-scanner also need to have PATH to cc
       
    86 COMPONENT_BUILD_ENV += CC="$(CC)"
       
    87 COMPONENT_BUILD_ENV += CFLAGS="$(CFLAGS)"
       
    88 COMPONENT_BUILD_ENV += LDFLAGS="$(LDFLAGS)"
       
    89 $(BUILD_32_and_64): PATH = $(SPRO_VROOT)/bin:/usr/gnu/bin:/usr/bin
       
    90 COMPONENT_POST_INSTALL_ACTION += \
       
    91  ( $(PYTHON.$(PYTHON_VERSION)) -m compileall $(PROTO_DIR)/$(PYTHON_VENDOR_PACKAGES) )
       
    92 
       
    93 # Enable ASLR for this component
       
    94 ASLR_MODE = $(ASLR_ENABLE)
       
    95 
       
    96 # build standalone sub-components only
       
    97 SUBDIRS = avahi-common avahi-core avahi-client avahi-glib avahi-gobject avahi-ui
       
    98 $(BUILD_32):	COMPONENT_BUILD_TARGETS		+=	SUBDIRS="$(SUBDIRS)"
       
    99 $(INSTALL_32):	COMPONENT_INSTALL_TARGETS	+=	SUBDIRS="$(SUBDIRS)"
       
   100 
       
   101 # common targets
       
   102 configure:	$(CONFIGURE_32_and_64)
       
   103 
       
   104 build:		$(BUILD_32_and_64)
       
   105 
       
   106 install:	$(INSTALL_32_and_64)
       
   107 
       
   108 test:		$(NO_TESTS)
       
   109 
       
   110 system-test:	$(NO_TESTS)
       
   111 
       
   112 REQUIRED_PACKAGES += library/desktop/gtk2
       
   113 REQUIRED_PACKAGES += library/expat
       
   114 REQUIRED_PACKAGES += library/glib2
       
   115 REQUIRED_PACKAGES += library/libdaemon
       
   116 REQUIRED_PACKAGES += runtime/python-27
       
   117 REQUIRED_PACKAGES += service/network/dns/mdns
       
   118 REQUIRED_PACKAGES += shell/ksh93
       
   119 REQUIRED_PACKAGES += system/core-os
       
   120 REQUIRED_PACKAGES += system/library
       
   121 REQUIRED_PACKAGES += system/library/dbus
       
   122 REQUIRED_PACKAGES += system/library/libdbus