20 # |
20 # |
21 |
21 |
22 # |
22 # |
23 # Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved. |
23 # Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved. |
24 # |
24 # |
25 |
25 BUILD_BITS= 64_and_32 |
26 include ../../make-rules/shared-macros.mk |
26 include ../../make-rules/shared-macros.mk |
27 # Override PATH set in shared-macros.mk by setting the GNU PATH as default. |
27 # Override PATH set in shared-macros.mk by setting the GNU PATH as default. |
28 PATH=/usr/gnu/bin:/usr/bin |
28 PATH=$(GNUBIN):$(USRBINDIR) |
29 |
29 |
30 COMPONENT_NAME= avahi |
30 COMPONENT_NAME= avahi |
31 COMPONENT_VERSION= 0.6.30 |
31 COMPONENT_VERSION= 0.6.30 |
32 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION) |
|
33 COMPONENT_PROJECT_URL= http://www.avahi.org/ |
32 COMPONENT_PROJECT_URL= http://www.avahi.org/ |
34 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz |
|
35 COMPONENT_ARCHIVE_HASH= \ |
33 COMPONENT_ARCHIVE_HASH= \ |
36 sha256:f9e4316c2339d0020726edd846d01bee0c39980906db0c247479e5807457ff1f |
34 sha256:f9e4316c2339d0020726edd846d01bee0c39980906db0c247479e5807457ff1f |
37 COMPONENT_ARCHIVE_URL= http://www.avahi.org/download/$(COMPONENT_ARCHIVE) |
35 COMPONENT_ARCHIVE_URL= http://www.avahi.org/download/$(COMPONENT_ARCHIVE) |
38 COMPONENT_BUGDB= library/avahi |
36 COMPONENT_BUGDB= library/avahi |
39 |
37 |
40 TPNO= 7879 |
38 TPNO= 7879 |
41 |
|
42 include $(WS_MAKE_RULES)/prep.mk |
|
43 include $(WS_MAKE_RULES)/configure.mk |
|
44 |
39 |
45 # Depends on a Python module from Desktop that is only available 32-bit in S11. |
40 # Depends on a Python module from Desktop that is only available 32-bit in S11. |
46 ifeq ($(BUILD_TYPE), evaluation) |
41 ifeq ($(BUILD_TYPE), evaluation) |
47 BUILD_32_and_64= |
42 BUILD_32_and_64= |
48 INSTALL_32_and_64= |
43 INSTALL_32_and_64= |
49 PUBLISH_STAMP= |
44 PUBLISH_STAMP= |
50 endif |
45 endif |
51 |
46 |
52 include $(WS_MAKE_RULES)/ips.mk |
47 TEST_TARGET= $(NO_TESTS) |
|
48 include $(WS_MAKE_RULES)/common.mk |
53 |
49 |
54 # Set the pkg... path to search files in ./files/ dir (mainly the SMF manifests are there) |
50 CONFIGURE_SBINDIR.64 = $(CONFIGURE_BINDIR.64) |
55 PKG_PROTO_DIRS += $(COMPONENT_DIR) |
|
56 |
|
57 CONFIGURE_BINDIR.64 = $(CONFIGURE_PREFIX)/bin |
|
58 CONFIGURE_SBINDIR.64 = $(CONFIGURE_PREFIX)/bin |
|
59 CONFIGURE_OPTIONS += --enable-shared |
51 CONFIGURE_OPTIONS += --enable-shared |
60 CONFIGURE_OPTIONS += --disable-static |
52 CONFIGURE_OPTIONS += --disable-static |
61 CONFIGURE_OPTIONS += --sysconfdir=/etc |
53 CONFIGURE_OPTIONS += --sysconfdir=$(ETCDIR) |
62 CONFIGURE_OPTIONS += --with-avahi-user=daemon |
54 CONFIGURE_OPTIONS += --with-avahi-user=daemon |
63 CONFIGURE_OPTIONS += --with-avahi-group=other |
55 CONFIGURE_OPTIONS += --with-avahi-group=other |
64 CONFIGURE_OPTIONS += --localstatedir=/var/avahi |
56 CONFIGURE_OPTIONS += --localstatedir=$(VARDIR)/avahi |
65 CONFIGURE_OPTIONS += --with-distro=none |
57 CONFIGURE_OPTIONS += --with-distro=none |
66 CONFIGURE_OPTIONS += --disable-gtk3 |
58 CONFIGURE_OPTIONS += --disable-gtk3 |
67 CONFIGURE_OPTIONS += --disable-pygtk |
59 CONFIGURE_OPTIONS += --disable-pygtk |
68 CONFIGURE_OPTIONS += --disable-qt3 |
60 CONFIGURE_OPTIONS += --disable-qt3 |
69 CONFIGURE_OPTIONS += --disable-qt4 |
61 CONFIGURE_OPTIONS += --disable-qt4 |
76 # xmltoman is not available |
68 # xmltoman is not available |
77 CONFIGURE_OPTIONS += --disable-manpages |
69 CONFIGURE_OPTIONS += --disable-manpages |
78 CONFIGURE_OPTIONS.64 += --enable-doxygen-man |
70 CONFIGURE_OPTIONS.64 += --enable-doxygen-man |
79 CONFIGURE_OPTIONS.32 += --disable-doxygen-man |
71 CONFIGURE_OPTIONS.32 += --disable-doxygen-man |
80 CONFIGURE_OPTIONS += CPP="$(CC) -E" |
72 CONFIGURE_OPTIONS += CPP="$(CC) -E" |
81 CONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)" |
|
82 LDFLAGS += -ldns_sd |
73 LDFLAGS += -ldns_sd |
83 CONFIGURE_OPTIONS += LDFLAGS="$(LDFLAGS)" |
|
84 CONFIGURE_OPTIONS += PYTHON=$(PYTHON.$(PYTHON_VERSION)) |
74 CONFIGURE_OPTIONS += PYTHON=$(PYTHON.$(PYTHON_VERSION)) |
85 CONFIGURE_OPTIONS += am_cv_python_pythondir="$(PYTHON_VENDOR_PACKAGES)" |
75 CONFIGURE_OPTIONS += am_cv_python_pythondir="$(PYTHON_VENDOR_PACKAGES)" |
86 CONFIGURE_OPTIONS += am_cv_python_pyexecdir="$(PYTHON_VENDOR_PACKAGES)" |
76 CONFIGURE_OPTIONS += am_cv_python_pyexecdir="$(PYTHON_VENDOR_PACKAGES)" |
87 |
77 |
88 # NOCONFIGURE=yes -> do not execute "configure" directly from "autogen.sh" (/wo CONFIGURE_OPTIONS...) |
78 # NOCONFIGURE=yes -> do not execute "configure" directly from "autogen.sh" (/wo CONFIGURE_OPTIONS...) |
92 ( cd $(@D) ; set NOCONFIGURE=yes $(CONFIG_SHELL) autogen.sh ) |
82 ( cd $(@D) ; set NOCONFIGURE=yes $(CONFIG_SHELL) autogen.sh ) |
93 # g-i-r-scanner also need to have PATH to cc |
83 # g-i-r-scanner also need to have PATH to cc |
94 COMPONENT_BUILD_ENV += CC="$(CC)" |
84 COMPONENT_BUILD_ENV += CC="$(CC)" |
95 COMPONENT_BUILD_ENV += CFLAGS="$(CFLAGS)" |
85 COMPONENT_BUILD_ENV += CFLAGS="$(CFLAGS)" |
96 COMPONENT_BUILD_ENV += LDFLAGS="$(LDFLAGS)" |
86 COMPONENT_BUILD_ENV += LDFLAGS="$(LDFLAGS)" |
97 $(BUILD_32_and_64): PATH = $(SPRO_VROOT)/bin:/usr/gnu/bin:/usr/bin |
87 $(BUILD_32_and_64): PATH = $(SPRO_VROOT)/bin:$(GNUBIN):$(USRBINDIR) |
98 COMPONENT_POST_INSTALL_ACTION += \ |
88 COMPONENT_POST_INSTALL_ACTION += \ |
99 ( $(PYTHON.$(PYTHON_VERSION)) -m compileall $(PROTO_DIR)/$(PYTHON_VENDOR_PACKAGES) ) |
89 ( $(PYTHON.$(PYTHON_VERSION)) -m compileall $(PROTO_DIR)/$(PYTHON_VENDOR_PACKAGES) ) |
100 |
90 |
101 # Enable ASLR for this component |
91 # Enable ASLR for this component |
102 ASLR_MODE = $(ASLR_ENABLE) |
92 ASLR_MODE = $(ASLR_ENABLE) |
104 # build standalone sub-components only |
94 # build standalone sub-components only |
105 SUBDIRS = avahi-common avahi-core avahi-client avahi-glib avahi-gobject avahi-ui |
95 SUBDIRS = avahi-common avahi-core avahi-client avahi-glib avahi-gobject avahi-ui |
106 $(BUILD_32): COMPONENT_BUILD_TARGETS += SUBDIRS="$(SUBDIRS)" |
96 $(BUILD_32): COMPONENT_BUILD_TARGETS += SUBDIRS="$(SUBDIRS)" |
107 $(INSTALL_32): COMPONENT_INSTALL_TARGETS += SUBDIRS="$(SUBDIRS)" |
97 $(INSTALL_32): COMPONENT_INSTALL_TARGETS += SUBDIRS="$(SUBDIRS)" |
108 |
98 |
109 # common targets |
|
110 configure: $(CONFIGURE_32_and_64) |
|
111 |
|
112 build: $(BUILD_32_and_64) |
|
113 |
|
114 install: $(INSTALL_32_and_64) |
|
115 |
|
116 test: $(NO_TESTS) |
|
117 |
|
118 system-test: $(NO_TESTS) |
|
119 |
|
120 REQUIRED_PACKAGES += library/desktop/gtk2 |
99 REQUIRED_PACKAGES += library/desktop/gtk2 |
121 REQUIRED_PACKAGES += library/expat |
100 REQUIRED_PACKAGES += library/expat |
122 REQUIRED_PACKAGES += library/glib2 |
101 REQUIRED_PACKAGES += library/glib2 |
123 REQUIRED_PACKAGES += library/libdaemon |
102 REQUIRED_PACKAGES += library/libdaemon |
124 REQUIRED_PACKAGES += runtime/python-27 |
103 REQUIRED_PACKAGES += runtime/python-27 |
125 REQUIRED_PACKAGES += service/network/dns/mdns |
104 REQUIRED_PACKAGES += service/network/dns/mdns |
126 REQUIRED_PACKAGES += shell/ksh93 |
105 REQUIRED_PACKAGES += shell/ksh93 |
127 REQUIRED_PACKAGES += system/core-os |
106 REQUIRED_PACKAGES += system/core-os |
128 REQUIRED_PACKAGES += system/library |
|
129 REQUIRED_PACKAGES += system/library/dbus |
107 REQUIRED_PACKAGES += system/library/dbus |
130 REQUIRED_PACKAGES += system/library/libdbus |
108 REQUIRED_PACKAGES += system/library/libdbus |