fritzkink
2023-12-27 706019354bab81fc3f01995caf1ae1a2dfa346cf
commit | author | age
003972 1 # This file and its contents are supplied under the terms of the
AW 2 # Common Development and Distribution License ("CDDL"). You may
3 # only use this file in accordance with the terms of the CDDL.
4 #
5 # A full copy of the text of the CDDL should have accompanied this
6 # source. A copy of the CDDL is also available via the Internet at
7 # http://www.illumos.org/license/CDDL.
8 #
9
10 #
8c8e7c 11 # Copyright (c) 2022, Andreas Wacknitz. All rights reserved.
003972 12 #
8c8e7c 13
AW 14 BUILD_BITS= 64
15 BUILD_STYLE ?= configure
003972 16
AW 17 COMPONENT_VERSION=  $(COMPONENT_MJR_VERSION).$(COMPONENT_MNR_VERSION)
18 COMPONENT_PROJECT_URL=  https://www.mate-desktop.org
19 COMPONENT_ARCHIVE_URL=  https://pub.mate-desktop.org/releases/$(COMPONENT_MJR_VERSION)/$(COMPONENT_ARCHIVE)
20 COMPONENT_SRC=      $(COMPONENT_NAME)-$(COMPONENT_VERSION)
21 COMPONENT_ARCHIVE=  $(COMPONENT_SRC).tar.xz
22 COMPONENT_LICENSE=    GPLv2, LGPLv2, FDLv1.1
23
24 TEST_TARGET=        $(NO_TESTS)
25
26 PATH=$(PATH.gnu)
27
8c8e7c 28 ifeq   ($(strip $(BUILD_STYLE)),configure)
a60401 29 COMPONENT_PREP_ACTION= cd $(@D) && PATH="$(PATH)" NOCONFIGURE=1 /usr/bin/bash ./autogen.sh
8c8e7c 30 endif
003972 31
AW 32 CONFIGURE_OPTIONS+= --sysconfdir=/etc
9d8e01 33 CONFIGURE_OPTIONS+= --libexecdir=$(CONFIGURE_LIBDIR.$(BITS))/mate
8c8e7c 34 ifeq   ($(strip $(BUILD_STYLE)),configure)
003972 35 CONFIGURE_OPTIONS+= --disable-static
8c8e7c 36 endif
003972 37 CONFIGURE_OPTIONS+= --localstatedir=/var/lib
AW 38
39 CONFIGURE_ENV+= PYTHON="$(PYTHON)"
40
41 COMPONENT_BUILD_ENV += CC="$(CC)"
42 COMPONENT_BUILD_ENV += CFLAGS="$(CFLAGS)"
43
44 #
45 # Set defaults for Mate libraries
46 #
47 ifeq ($(strip $(MATE_CATEGORY)),LIB)
8c8e7c 48 COMPONENT_CLASSIFICATION ?=    System/Libraries
AW 49 COMPONENT_FMRI ?=             library/desktop/mate/$(COMPONENT_NAME)
003972 50 endif
AW 51
52 #
53 # Set defaults for Mate applications
54 #
55 ifeq ($(strip $(MATE_CATEGORY)),APP)
8c8e7c 56 # APPs don't have a common COMPONENT_CLASSIFICATION and thus need to define it separately.
AW 57 COMPONENT_FMRI ?=     desktop/mate/$(COMPONENT_NAME)
003972 58 endif
AW 59
60 # Default build dependencies
8c8e7c 61 ifeq   ($(strip $(BUILD_STYLE)),configure)
8203c7 62 USERLAND_REQUIRED_PACKAGES += developer/build/autoconf
8c8e7c 63 endif
8203c7 64 USERLAND_REQUIRED_PACKAGES += developer/build/pkg-config
MT 65 USERLAND_REQUIRED_PACKAGES += developer/documentation-tool/gtk-doc
66 USERLAND_REQUIRED_PACKAGES += library/desktop/mate/mate-common