illumos-gate: omit tagged pointers on SPARC, causes panic on UltraI/II systems
[oi-userland.git] / components / openindiana / nwam-manager / Makefile
blobcfa6d40966e58ac90ca60e847835ec452fd8c6c7
2 # This file and its contents are supplied under the terms of the
3 # Common Development and Distribution License ("CDDL)". You may
4 # only use this file in accordance with the terms of the CDDL.
6 # A full copy of the text of the CDDL should have accompanied this
7 # source. A copy of the CDDL is also available via the Internet at
8 # http://www.illumos.org/license/CDDL.
12 # Copyright 2013 Adam Stevko. All rights reserved.
13 # Copyright 2014 Alexander Pyhalov. All rights reserved.
14 # Copyright 2017 Gary Mills
17 BUILD_BITS= 64
18 include ../../../make-rules/shared-macros.mk
20 COMPONENT_NAME= nwam-manager
21 COMPONENT_SRC= $(COMPONENT_NAME)
22 COMPONENT_VERSION= 1.151.0
23 COMPONENT_LICENSE= CDDL
24 COMPONENT_LICENSE_FILE= COPYING
25 COMPONENT_FMRI= desktop/administration/nwam-manager
26 COMPONENT_CLASSIFICATION= System/Administration and Configuration
28 COMPONENT_REVISION=$(shell cd $(COMPONENT_SRC); git rev-list HEAD --count)
30 COMPONENT_SUMMARY= Network Auto-Magic User Interface
32 GIT=git
33 GIT_REPO=https://github.com/OpenIndiana/nwam-manager
34 GIT_BRANCH=oi/hipster
35 GIT_CHANGESET=HEAD
37 PATH = $(PATH.gnu)
39 COMPONENT_PREP_GIT=no
41 # The ugly hack with update-publish target is necessary to update
42 # source from git repository on each "gmake publish".
43 # publish: target should appear before inclusion of common.mk
44 publish: update-publish
46 include $(WS_MAKE_RULES)/common.mk
48 $(SOURCE_DIR)/.downloaded: $(ARCHIVES:%=$(USERLAND_ARCHIVES)%)
49 @[ -d $(SOURCE_DIR) ] || \
50 $(GIT) clone -b $(GIT_BRANCH) $(GIT_REPO) $(SOURCE_DIR)
51 @cd $(SOURCE_DIR) ; $(GIT) checkout $(GIT_BRANCH) ; $(GIT) pull \
52 $(GIT_REPO) ; $(GIT) log -1 --format=%H > .downloaded
54 COMPONENT_PREP_ACTION = \
55 (cd $(@D); $(MKDIR) m4 && \
56 libtoolize --copy --force && \
57 gnome-doc-prepare --force && \
58 intltoolize --force --copy --automake && \
59 aclocal -I m4 && \
60 autoheader && \
61 automake --add-missing --copy --force && \
62 autoconf)
64 # Missing include files in build dir without this.
65 COMPONENT_PRE_CONFIGURE_ACTION = ($(CLONEY) $(SOURCE_DIR) $(@D))
67 CONFIGURE_OPTIONS += --sysconfdir=/etc
68 CONFIGURE_OPTIONS += --libexecdir=/usr/lib
69 CONFIGURE_OPTIONS += --localstatedir=/var/lib
70 CONFIGURE_OPTIONS += --enable-private-nwam-headers
72 CONFIGURE_ENV += INTLTOOL_PERL="$(PERL)"
74 COMPONENT_INSTALL_ENV += GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
76 update-publish:
77 @[ -d $(SOURCE_DIR) ] || \
78 $(GIT) clone -b $(GIT_BRANCH) $(GIT_REPO) $(SOURCE_DIR)
79 cd $(SOURCE_DIR) ; $(GIT) pull $(GIT_REPO) ; \
80 [ "$$($(GIT) log -1 --format=%H)" == "$$(cat .downloaded)" ] || \
81 ( $(GIT) log -1 --format=%H > .downloaded && $(MAKE) -C $$OLDPWD publish )
83 $(SOURCE_DIR)/.prep: $(SOURCE_DIR)/.downloaded Makefile
85 download:: $(SOURCE_DIR)/.downloaded
87 # scrollkeeper-config is needed for building help
88 REQUIRED_PACKAGES += text/rarian
89 # XML::Parser is needed for i18n support
90 REQUIRED_PACKAGES += library/perl-5/xml-parser
92 # Auto-generated dependencies
93 REQUIRED_PACKAGES += gnome/config/gconf
94 REQUIRED_PACKAGES += library/desktop/atk
95 REQUIRED_PACKAGES += library/desktop/gdk-pixbuf
96 REQUIRED_PACKAGES += library/desktop/gtk2
97 REQUIRED_PACKAGES += library/glib2
98 REQUIRED_PACKAGES += library/libnotify
99 REQUIRED_PACKAGES += shell/ksh93
100 REQUIRED_PACKAGES += SUNWcs
101 REQUIRED_PACKAGES += system/library