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