unixodbc: Fix dependency to library/readline-8 library/readline-8/32
[oi-userland.git] / make-rules / mate.mk
blobc189f836ac7dad8b43aed7834aba405897c0c902
1 # This file and its contents are supplied under the terms of the
2 # Common Development and Distribution License ("CDDL"). You may
3 # only use this file in accordance with the terms of the CDDL.
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.
11 # Copyright (c) 2022, Andreas Wacknitz. All rights reserved.
14 BUILD_BITS= 64
15 BUILD_STYLE ?= configure
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
24 TEST_TARGET= $(NO_TESTS)
26 PATH= $(PATH.gnu)
28 ifeq ($(strip $(BUILD_STYLE)),configure)
29 COMPONENT_PREP_ACTION= cd $(@D) && PATH="$(PATH)" NOCONFIGURE=1 /usr/bin/bash ./autogen.sh
30 endif
32 # We cannot override libexecdir thus we have to set them here
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)
40 ifeq ($(strip $(BUILD_STYLE)),configure)
41 CONFIGURE_OPTIONS+= --disable-static
42 endif
43 CONFIGURE_OPTIONS+= --localstatedir=$(VARDIR)
45 CONFIGURE_ENV+= PYTHON="$(PYTHON)"
47 COMPONENT_BUILD_ENV += CC="$(CC)"
48 COMPONENT_BUILD_ENV += CFLAGS="$(CFLAGS)"
51 # Set defaults for Mate libraries
53 ifeq ($(strip $(MATE_CATEGORY)),LIB)
54 COMPONENT_CLASSIFICATION ?= System/Libraries
55 COMPONENT_FMRI ?= library/desktop/mate/$(COMPONENT_NAME)
56 endif
59 # Set defaults for Mate applications
61 ifeq ($(strip $(MATE_CATEGORY)),APP)
62 # APPs don't have a common COMPONENT_CLASSIFICATION and thus need to define it separately.
63 COMPONENT_FMRI ?= desktop/mate/$(COMPONENT_NAME)
64 endif
66 # Default build dependencies
67 ifeq ($(strip $(BUILD_STYLE)),configure)
68 USERLAND_REQUIRED_PACKAGES += developer/build/autoconf
69 endif
70 USERLAND_REQUIRED_PACKAGES += developer/build/pkg-config
71 USERLAND_REQUIRED_PACKAGES += developer/documentation-tool/gtk-doc
72 USERLAND_REQUIRED_PACKAGES += library/desktop/mate/mate-common