annotate src/util-linux.mk @ 7207:9ed6500e56d3 default tip @

maint: Merge release to default.
author Markus Mützel <markus.muetzel@gmx.de>
date Fri, 17 May 2024 20:16:41 +0200
parents a5cb9153fedd
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
4864
b0e1e4363cf0 util-linux: new package
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1 # This file is part of MXE.
b0e1e4363cf0 util-linux: new package
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2 # See index.html for further information.
b0e1e4363cf0 util-linux: new package
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3
b0e1e4363cf0 util-linux: new package
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4 PKG := util-linux
b0e1e4363cf0 util-linux: new package
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5 $(PKG)_VERSION := 2.32.1
b0e1e4363cf0 util-linux: new package
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6 $(PKG)_CHECKSUM := de9271fb93fb651d21c027e2efb0cf0ac80f2e9a
b0e1e4363cf0 util-linux: new package
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7 $(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)
b0e1e4363cf0 util-linux: new package
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8 $(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.xz
5002
a5cb9153fedd * src/util-linux.mk: show correct version number in update rule
John Donoghue
parents: 4864
diff changeset
9 $(PKG)_URL := https://www.kernel.org/pub/linux/utils/util-linux/v$(call SHORT_PKG_VERSION,$(PKG))/$($(PKG)_FILE)
4864
b0e1e4363cf0 util-linux: new package
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10 $(PKG)_DEPS :=
b0e1e4363cf0 util-linux: new package
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11
b0e1e4363cf0 util-linux: new package
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12 define $(PKG)_UPDATE
b0e1e4363cf0 util-linux: new package
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13 echo 'Warning: Updates are temporarily disabled for package $(PKG).' >&2;
5002
a5cb9153fedd * src/util-linux.mk: show correct version number in update rule
John Donoghue
parents: 4864
diff changeset
14 echo $($(PKG)_VERSION)
4864
b0e1e4363cf0 util-linux: new package
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15 endef
b0e1e4363cf0 util-linux: new package
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16
b0e1e4363cf0 util-linux: new package
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17 ## For now, we are only building libuuid.
b0e1e4363cf0 util-linux: new package
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18
b0e1e4363cf0 util-linux: new package
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19 ifeq ($(MXE_WINDOWS_BUILD),yes)
b0e1e4363cf0 util-linux: new package
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20 define $(PKG)_BUILD
b0e1e4363cf0 util-linux: new package
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21 endef
b0e1e4363cf0 util-linux: new package
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22 else
b0e1e4363cf0 util-linux: new package
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23 define $(PKG)_BUILD
b0e1e4363cf0 util-linux: new package
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24 mkdir '$(1)/.build'
b0e1e4363cf0 util-linux: new package
John W. Eaton <jwe@octave.org>
parents:
diff changeset
25 cd '$(1)' && autoreconf --force
b0e1e4363cf0 util-linux: new package
John W. Eaton <jwe@octave.org>
parents:
diff changeset
26 cd '$(1)/.build' && ../configure --disable-all-programs --disable-bash-completion --enable-libuuid \
b0e1e4363cf0 util-linux: new package
John W. Eaton <jwe@octave.org>
parents:
diff changeset
27 $(CONFIGURE_CPPFLAGS) $(CONFIGURE_LDFLAGS) \
b0e1e4363cf0 util-linux: new package
John W. Eaton <jwe@octave.org>
parents:
diff changeset
28 $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \
b0e1e4363cf0 util-linux: new package
John W. Eaton <jwe@octave.org>
parents:
diff changeset
29 $(ENABLE_SHARED_OR_STATIC) \
b0e1e4363cf0 util-linux: new package
John W. Eaton <jwe@octave.org>
parents:
diff changeset
30 --prefix='$(HOST_PREFIX)' \
b0e1e4363cf0 util-linux: new package
John W. Eaton <jwe@octave.org>
parents:
diff changeset
31 && $(CONFIGURE_POST_HOOK)
b0e1e4363cf0 util-linux: new package
John W. Eaton <jwe@octave.org>
parents:
diff changeset
32 $(MAKE) -C '$(1)/.build' -j '$(JOBS)' install DESTDIR='$(3)'
b0e1e4363cf0 util-linux: new package
John W. Eaton <jwe@octave.org>
parents:
diff changeset
33 endef
b0e1e4363cf0 util-linux: new package
John W. Eaton <jwe@octave.org>
parents:
diff changeset
34 endif