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 |
|
597164
|
24 |
TEST_TARGET= $(NO_TESTS) |
003972
|
25 |
|
597164
|
26 |
PATH= $(PATH.gnu) |
003972
|
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 |
|
9d209f
|
32 |
# We cannot override libexecdir thus we have to set them here |
AW |
33 |
CONFIGURE_DEFAULT_DIRS= no |
|
34 |
CONFIGURE_OPTIONS += --mandir=$(CONFIGURE_MANDIR) |
|
35 |
CONFIGURE_OPTIONS += --bindir=$(CONFIGURE_BINDIR.$(BITS)) |
|
36 |
CONFIGURE_OPTIONS += --libdir=$(CONFIGURE_LIBDIR.$(BITS)) |
|
37 |
CONFIGURE_OPTIONS += --libexecdir=$(CONFIGURE_LIBEXECDIR.$(BITS))/mate |
|
38 |
CONFIGURE_OPTIONS += --sbindir=$(CONFIGURE_SBINDIR.$(BITS)) |
|
39 |
CONFIGURE_OPTIONS += --sysconfdir=$(ETCDIR) |
8c8e7c
|
40 |
ifeq ($(strip $(BUILD_STYLE)),configure) |
003972
|
41 |
CONFIGURE_OPTIONS+= --disable-static |
8c8e7c
|
42 |
endif |
597164
|
43 |
CONFIGURE_OPTIONS+= --localstatedir=$(VARDIR) |
003972
|
44 |
|
AW |
45 |
CONFIGURE_ENV+= PYTHON="$(PYTHON)" |
|
46 |
|
|
47 |
COMPONENT_BUILD_ENV += CC="$(CC)" |
|
48 |
COMPONENT_BUILD_ENV += CFLAGS="$(CFLAGS)" |
|
49 |
|
|
50 |
# |
|
51 |
# Set defaults for Mate libraries |
|
52 |
# |
|
53 |
ifeq ($(strip $(MATE_CATEGORY)),LIB) |
8c8e7c
|
54 |
COMPONENT_CLASSIFICATION ?= System/Libraries |
AW |
55 |
COMPONENT_FMRI ?= library/desktop/mate/$(COMPONENT_NAME) |
003972
|
56 |
endif |
AW |
57 |
|
|
58 |
# |
|
59 |
# Set defaults for Mate applications |
|
60 |
# |
|
61 |
ifeq ($(strip $(MATE_CATEGORY)),APP) |
8c8e7c
|
62 |
# APPs don't have a common COMPONENT_CLASSIFICATION and thus need to define it separately. |
AW |
63 |
COMPONENT_FMRI ?= desktop/mate/$(COMPONENT_NAME) |
003972
|
64 |
endif |
AW |
65 |
|
|
66 |
# Default build dependencies |
8c8e7c
|
67 |
ifeq ($(strip $(BUILD_STYLE)),configure) |
8203c7
|
68 |
USERLAND_REQUIRED_PACKAGES += developer/build/autoconf |
8c8e7c
|
69 |
endif |
8203c7
|
70 |
USERLAND_REQUIRED_PACKAGES += developer/build/pkg-config |
MT |
71 |
USERLAND_REQUIRED_PACKAGES += developer/documentation-tool/gtk-doc |
|
72 |
USERLAND_REQUIRED_PACKAGES += library/desktop/mate/mate-common |