# 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) 2017, Aurelien Larcher. All rights reserved. # # All X11 components should now prefer 64-bits unless specified PREFERRED_BITS=64 # # General macros # PKG_X11_VERSION=7.7 X11_COMPONENTS_DIR = $(WS_COMPONENTS)/x11 # # Provide macros for commonly used urls # XORG_PROJECT_URL = https://www.x.org/ XORG_BASE_URL = https://www.x.org/releases/individual SOLARIS_XORG_URL = https://github.com/oracle/solaris-userland XORG_APP_BASE_URL = $(XORG_BASE_URL)/app XORG_DATA_BASE_URL = $(XORG_BASE_URL)/data XORG_DOC_BASE_URL = $(XORG_BASE_URL)/doc XORG_DRIVER_BASE_URL = $(XORG_BASE_URL)/driver XORG_FONT_BASE_URL = $(XORG_BASE_URL)/font XORG_LIB_BASE_URL = $(XORG_BASE_URL)/lib XORG_PROTO_BASE_URL = $(XORG_BASE_URL)/proto XORG_TEST_BASE_URL = $(XORG_BASE_URL)/test XORG_UTIL_BASE_URL = $(XORG_BASE_URL)/util XORG_XCB_BASE_URL = $(XORG_BASE_URL)/xcb XORG_XSERVER_BASE_URL = $(XORG_BASE_URL)/xserver # # Default X11 component values # COMPONENT_X11_DEFAULTS?= yes ifeq ($(COMPONENT_X11_DEFAULTS),yes) COMPONENT_PROJECT_URL ?= $(XORG_PROJECT_URL) COMPONENT_SRC ?= $(COMPONENT_NAME)-$(COMPONENT_VERSION) COMPONENT_ARCHIVE_EXTENSION ?= .tar.bz2 COMPONENT_ARCHIVE ?= $(COMPONENT_SRC)$(COMPONENT_ARCHIVE_EXTENSION) ifneq ($(strip $(X11_CATEGORY)),) COMPONENT_ARCHIVE_URL ?= $(XORG_$(X11_CATEGORY)_BASE_URL)/$(COMPONENT_ARCHIVE) endif endif # # Set defaults for X11 applications # ifeq ($(strip $(X11_CATEGORY)),APP) BUILD_BITS = 64 PATH=$(PATH.gnu) COMPONENT_CLASSIFICATION = System/X11 COMPONENT_LICENSE = MIT License endif # # Set defaults for X11 utilities # ifeq ($(strip $(X11_CATEGORY)),UTIL) BUILD_BITS = 64 PATH=$(PATH.gnu) COMPONENT_CLASSIFICATION = System/X11 COMPONENT_LICENSE = MIT License endif # # Set defaults for X11 documentation # ifeq ($(strip $(X11_CATEGORY)),DOC) BUILD_BITS = 64 PATH=$(PATH.gnu) COMPONENT_CLASSIFICATION = System/X11 COMPONENT_LICENSE = MIT License endif # # Set defaults for X11 libraries # ifeq ($(strip $(X11_CATEGORY)),LIB) BUILD_BITS = 32_and_64 PATH=$(PATH.gnu) COMPONENT_CLASSIFICATION = System/X11 COMPONENT_LICENSE = MIT License endif # # Set defaults for X11 drivers # ifeq ($(strip $(X11_CATEGORY)),DRIVER) BUILD_BITS = 64 PATH=$(PATH.gnu) ifneq (,$(findstring video,$(COMPONENT_NAME))) COMPONENT_CLASSIFICATION = Drivers/Display else COMPONENT_CLASSIFICATION = Drivers/Other Peripherals endif COMPONENT_LICENSE = MIT License COMPONENT_LICENSE_FILE = COPYING COMPONENT_PREP_ACTION = ( cd $(@D) && \ PATH="$(PATH)" libtoolize --automake --copy --force && \ aclocal && \ autoheader && \ automake -a -f -c && \ autoconf ) endif # # Set no test target by default # TEST_TARGET = $(NO_TESTS) # # Define library and modules install paths # XORG_LIBDIR.32 = $(USRLIBDIR)/xorg XORG_LIBDIR.64 = $(USRLIBDIR)/xorg/$(MACH64) XORG_LIBDIR = $(XORG_LIBDIR.$(BITS)) X11_SERVERMOD_SUBDIR.32= X11_SERVERMOD_SUBDIR.64=/$(MACH64) X11_SERVERMOD_SUBDIR=$(X11_SERVERMOD_SUBDIR.$(BITS)) X11_SERVERLIBS_DIR = $(USRLIBDIR)/xorg$(X11_SERVERMOD_SUBDIR) X11_SERVERMODS_DIR = $(USRLIBDIR)/xorg/modules$(X11_SERVERMOD_SUBDIR) X11_SERVERMODS_DRI_DIR = $(USRLIBDIR)/xorg/modules/dri$(X11_SERVERMOD_SUBDIR) X11_SERVERMODS_DRIVERS_DIR = $(USRLIBDIR)/xorg/modules/drivers$(X11_SERVERMOD_SUBDIR) X11_SERVERMODS_EXTENSIONS_DIR = $(USRLIBDIR)/xorg/modules/extensions$(X11_SERVERMOD_SUBDIR) x11_SERVERMODS_INPUT_DIR = $(USRLIBDIR)/xorg/modules/input$(X11_SERVERMOD_SUBDIR) X11_SERVERMODS_MULTIMEDIA_DIR = $(USRLIBDIR)/xorg/modules/multimedia$(X11_SERVERMOD_SUBDIR) # # Define MESA paths # MESA_XSERVERLIBS_DIR = $(USRLIBDIR)/mesa$(X11_SERVERMOD_SUBDIR) MESA_XSERVERMODS_DIR = $(USRLIBDIR)/mesa/modules$(X11_SERVERMOD_SUBDIR) MESA_XSERVERMODS_EXTENSIONS_DIR = $(USRLIBDIR)/mesa/modules/extensions$(X11_SERVERMOD_SUBDIR) # # Define PKG macros # PKG_MACROS += X11PKGVERS=$(PKG_X11_VERSION) # # Default build dependencies # USERLAND_REQUIRED_PACKAGES += x11/header/x11-protocols USERLAND_REQUIRED_PACKAGES += developer/build/autoconf/xorg-macros