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 2019 Alexander Pyhalov
14 # Copyright 2023 Till Wegmüller
17 include ..
/..
/..
/make-rules
/shared-macros.mk
20 COMPONENT_SRC
= $(COMPONENT_NAME
)
21 COMPONENT_VERSION
= 1.3.1
22 COMPONENT_LICENSE
= CDDL
23 COMPONENT_LICENSE_FILE
= $(COMPONENT_NAME
).license
24 COMPONENT_FMRI
= diagnostic
/ddu
25 COMPONENT_CLASSIFICATION
= System
/Hardware
26 COMPONENT_LICENSE
= CDDL
,BSD3
27 COMPONENT_LICENSE_FILE
= $(COMPONENT_NAME
).license
28 COMPONENT_PROJECT_URL
= $(GIT_REPO
)
30 COMPONENT_REVISION
=$(shell cd
$(COMPONENT_SRC
); git rev-list HEAD
--count
)
32 COMPONENT_SUMMARY
= Device Driver Utility
(DDU
)
35 GIT_REPO
=https
://github.com
/OpenIndiana
/ddu
40 include $(WS_TOP
)/make-rules
/prep.mk
41 include $(WS_TOP
)/make-rules
/justmake.mk
43 # The ugly hack with update-publish target is necessary to update
44 # source from git repository on each "gmake publish".
45 # publish: target should appear before inclusion of ips.mk
46 publish
: update-publish
48 include $(WS_TOP
)/make-rules
/ips.mk
50 $(SOURCE_DIR
)/.downloaded
: $(ARCHIVES
:%=$(USERLAND_ARCHIVES
)%)
51 @
[ -d
$(SOURCE_DIR
) ] || \
52 $(GIT
) clone
-b
$(GIT_BRANCH
) $(GIT_REPO
) $(SOURCE_DIR
)
53 @cd
$(SOURCE_DIR
) ; $(GIT
) checkout
$(GIT_BRANCH
) ; $(GIT
) pull \
54 $(GIT_REPO
) ; $(GIT
) log
-1 --format
=%H
> .downloaded
57 @
[ -d
$(SOURCE_DIR
) ] || \
58 $(GIT
) clone
-b
$(GIT_BRANCH
) $(GIT_REPO
) $(SOURCE_DIR
)
59 cd
$(SOURCE_DIR
) ; $(GIT
) pull
$(GIT_REPO
) ; \
60 [ "$$($(GIT) log -1 --format=%H)" == "$$(cat .downloaded)" ] || \
61 ( $(GIT
) log
-1 --format
=%H
> .downloaded
&& $(MAKE
) -C
$$OLDPWD publish
)
63 COMPONENT_BUILD_TARGETS
= all
65 $(SOURCE_DIR
)/.prep
: $(SOURCE_DIR
)/.downloaded Makefile
67 COMPONENT_COPY_ACTION
= \
68 $(CP
) -a
$(SOURCE_DIR
)/* $(SOURCE_DIR
)/.
[^.
]* $(@D
)
72 COMPONENT_BUILD_ARGS
+= CC
=$(CC
) CFLAGS
="$(CFLAGS)" LDFLAGS
="$(LDFLAGS)"
73 COMPONENT_BUILD_ENV
+= PATH
="$(PATH)"
74 COMPONENT_INSTALL_ENV
+= PATH
="$(PATH)"
78 install: $(INSTALL_32
)
80 download
:: $(SOURCE_DIR
)/.downloaded
82 PKG_MACROS
+= PYVER
=$(PYTHON_VERSION
)
84 REQUIRED_PACKAGES
+= developer
/versioning
/git
85 REQUIRED_PACKAGES
+= system
/header
86 REQUIRED_PACKAGES
+= system
/library
/storage
/libmpapi
87 REQUIRED_PACKAGES
+= text
/locale
89 # Auto-generated dependencies
90 PYTHON_REQUIRED_PACKAGES
+= library
/python
/pygobject-3
91 PYTHON_REQUIRED_PACKAGES
+= library
/python
/simplejson
92 PYTHON_REQUIRED_PACKAGES
+= runtime
/python
93 REQUIRED_PACKAGES
+= SUNWcs
94 REQUIRED_PACKAGES
+= gnome
/help-viewer
/yelp
95 REQUIRED_PACKAGES
+= service
/hal
96 REQUIRED_PACKAGES
+= shell/ksh93
97 REQUIRED_PACKAGES
+= system
/library
98 REQUIRED_PACKAGES
+= system
/library
/libdbus