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
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 2014 Alexander Pyhalov. All rights reserved.
17 include ..
/..
/..
/make-rules
/shared-macros.mk
18 include $(WS_MAKE_RULES
)/x11.mk
20 COMPONENT_NAME
= libX11
21 COMPONENT_VERSION
= 1.7.5
22 COMPONENT_REVISION
= 1
23 COMPONENT_FMRI
= x11
/library
/libx11
24 COMPONENT_SUMMARY
= libX11
- X11 core protocol client library
25 COMPONENT_ARCHIVE
= $(COMPONENT_NAME
)-$(COMPONENT_VERSION
).
tar.xz
26 COMPONENT_ARCHIVE_HASH
= sha256
:5a1847e2e2c248e1a203a24a1338a5586d6f48472eac58f6f08539110a965151
27 COMPONENT_LICENSE_FILE
= COPYING
29 include $(WS_MAKE_RULES
)/common.mk
31 CPPFLAGS
+= -I
/usr
/include/freetype2
-I
/usr
/include/X11
-I
/usr
/include/xcb
32 CPPFLAGS
+= -DSUNSOFT
-DMOTIFBC
-DSUNSOFT_KBD
34 COMPONENT_PREP_ACTION
= ( cp
-r
$(COMPONENT_DIR
)/srcs
/* $(SOURCE_DIR
) && \
35 cd
$(@D
) && PATH
=$(PATH
) libtoolize
--copy
--force && \
40 # Missing files in build dir for configure without this.
41 COMPONENT_PRE_CONFIGURE_ACTION
= ($(CLONEY
) $(SOURCE_DIR
) $(@D
))
43 LOCALE_LIB_DIR
.32=/usr
/lib
/X11
/locale
44 LOCALE_LIB_DIR
.64=/usr
/lib
/X11
/locale
/$(MACH64
)
46 CONFIGURE_ENV
+= LIB_MAN_SUFFIX
=3x11
47 CONFIGURE_ENV
+= XLOCALEDIR
="/usr/share/X11/locale:/usr/X11/share/X11/locale"
48 CONFIGURE_ENV
+= XLOCALELIBDIR
="$(LOCALE_LIB_DIR.$(BITS))"
49 CONFIGURE_ENV
+= CPPFLAGS
="$(CPPFLAGS)"
51 CONFIGURE_OPTIONS
+= --without-xmlto
52 CONFIGURE_OPTIONS
+= --without-fop
53 CONFIGURE_OPTIONS
+= --localstatedir
=/var
54 CONFIGURE_OPTIONS
+= --enable-shared
=yes
55 CONFIGURE_OPTIONS
+= --enable-static
=no
56 CONFIGURE_OPTIONS
+= --without-lint
57 CONFIGURE_OPTIONS
+= --disable-lint-library
58 CONFIGURE_OPTIONS
+= --with-pic
59 CONFIGURE_OPTIONS
+= --enable-xthreads
60 CONFIGURE_OPTIONS
+= --enable-loadable-i18n
61 CONFIGURE_OPTIONS
+= --enable-xf86bigfont
62 CONFIGURE_OPTIONS
+= --enable-loadable-xcursor
63 CONFIGURE_OPTIONS
+= --enable-xcms
64 CONFIGURE_OPTIONS
+= --enable-xlocaledir
65 CONFIGURE_OPTIONS
+= --enable-xkb
66 CONFIGURE_OPTIONS
+= --with-locale-lib-dir
="$(LOCALE_LIB_DIR.$(BITS))"
68 COMPONENT_BUILD_ARGS
.64=ADD_libX11_LDFLAGS
="-Wl,-M$(COMPONENT_DIR)/mapfile-vers-64"
69 COMPONENT_BUILD_ARGS
+= $(COMPONENT_BUILD_ARGS.
$(BITS
))
71 REQUIRED_PACKAGES
+= x11
/library
/xtrans
73 # Auto-generated dependencies
74 REQUIRED_PACKAGES
+= system
/library
75 REQUIRED_PACKAGES
+= x11
/library
/libxau
76 REQUIRED_PACKAGES
+= x11
/library
/libxcb
77 REQUIRED_PACKAGES
+= x11
/library
/libxext