pulseaudio: fix dependencies for openssl-3
[oi-userland.git] / components / x11 / xdm / Makefile
blob659920a92e9d8767c51eccb00fcc7a377d40f80e
2 # This file and its contents are supplied under the terms of the
3 # Common Development and Distribution License ("CDDL"), version 1.0.
4 # You may only use this file in accordance with the terms of version
5 # 1.0 of the CDDL.
7 # A full copy of the text of the CDDL should have accompanied this
8 # source. A copy of the CDDL is also available via the Internet at
9 # http://www.illumos.org/license/CDDL.
13 # Copyright 2015 Alexander Pyhalov
16 BUILD_BITS= 64
17 include ../../../make-rules/shared-macros.mk
19 COMPONENT_NAME= xdm
20 COMPONENT_VERSION= 1.1.14
21 COMPONENT_SUMMARY= the X Display Manager (xdm) server
22 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
23 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.xz
24 COMPONENT_ARCHIVE_HASH= sha256:3e9bf25636797ec9e595286dd6820ecc33901439f07705eaf608ecda012c3d5f
25 COMPONENT_ARCHIVE_URL= https://xorg.freedesktop.org/archive/individual/app/$(COMPONENT_ARCHIVE)
26 COMPONENT_PROJECT_URL= https://www.freedesktop.org/wiki/
27 COMPONENT_FMRI= system/display-manager/xdm
28 COMPONENT_CLASSIFICATION= System/X11
29 COMPONENT_LICENSE= MIT
30 COMPONENT_LICENSE_FILE= COPYING
32 PATH= $(PATH.gnu)
34 TEST_TARGET= $(NO_TESTS)
35 include $(WS_MAKE_RULES)/common.mk
37 COMPONENT_PREP_ACTION= ( \
38 cd $(@D) && \
39 libtoolize --force && \
40 aclocal -I . && \
41 autoheader && \
42 automake -a -c -f && \
43 autoconf )
45 SAMPLE_CONFIGS = $(BUILD_DIR)/.sample-configs
47 # Only build shared greeter module, not static
48 CONFIGURE_OPTIONS += --enable-shared=yes
49 CONFIGURE_OPTIONS += --enable-static=no
50 CONFIGURE_OPTIONS += --enable-xdmshell
51 CONFIGURE_OPTIONS += --sysconfdir=/etc
52 CONFIGURE_OPTIONS += --localstatedir=/var
53 CONFIGURE_OPTIONS += --with-xdmconfigdir=/etc/X11/xdm
54 CONFIGURE_OPTIONS += --with-piddir=/var/run/xdm
55 CONFIGURE_OPTIONS += --with-authdir=/var/run/xdm
56 CONFIGURE_OPTIONS += --bindir=/usr/sbin
57 CONFIGURE_OPTIONS += --with-xrdb=/usr/bin/xrdb
58 CONFIGURE_OPTIONS += --with-default-session=command='/usr/bin/xterm -ls'
60 CONFIGURE_ENV += DEF_SERVER=/usr/bin/X
61 CONFIGURE_ENV += DEF_USER_PATH=/usr/bin:/usr/sbin
62 CONFIGURE_ENV += DEF_SYSTEM_PATH=/usr/bin:/usr/sbin
64 XDM_CONFIG_FILES= Xaccess Xresources Xservers xdm-config
66 $(SAMPLE_CONFIGS): $(INSTALL_64)
67 for config in $(XDM_CONFIG_FILES); do \
68 COMMENT_CHAR=$$(head -n 1 $(PROTO_DIR)/etc/X11/xdm/$${config}); \
69 $(GSED) -e "s:;:$${COMMENT_CHAR}:" -e "s:FILE:$${config}:" $(COMPONENT_DIR)/files/header > $(PROTO_DIR)/usr/lib/$(MACH64)/X11/xdm/$${config} ; \
70 cat $(PROTO_DIR)/etc/X11/xdm/$${config}>> $(PROTO_DIR)/usr/lib/$(MACH64)/X11/xdm/$${config} ; \
71 done
72 $(TOUCH) $@
74 install: $(SAMPLE_CONFIGS)
76 # Auto-generated dependencies
77 REQUIRED_PACKAGES += SUNWcs
78 REQUIRED_PACKAGES += shell/ksh93
79 REQUIRED_PACKAGES += system/library
80 REQUIRED_PACKAGES += system/library/fontconfig
81 REQUIRED_PACKAGES += x11/library/libx11
82 REQUIRED_PACKAGES += x11/library/libxau
83 REQUIRED_PACKAGES += x11/library/libxdmcp
84 REQUIRED_PACKAGES += x11/library/libxext
85 REQUIRED_PACKAGES += x11/library/libxft
86 REQUIRED_PACKAGES += x11/library/libxinerama
87 REQUIRED_PACKAGES += x11/library/libxmu
88 REQUIRED_PACKAGES += x11/library/libxpm
89 REQUIRED_PACKAGES += x11/library/libxrender
90 REQUIRED_PACKAGES += x11/library/toolkit/libxaw7
91 REQUIRED_PACKAGES += x11/library/toolkit/libxt
92 REQUIRED_PACKAGES += x11/server/xserver-common