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 2015 Aurelien Larcher
17 include ..
/..
/..
/make-rules
/shared-macros.mk
18 include $(WS_MAKE_RULES
)/x11.mk
20 COMPONENT_NAME
= xorg-docs
21 COMPONENT_VERSION
= 1.7.3
22 COMPONENT_SUMMARY
= X.Org documentation for the X Window System
23 COMPONENT_ARCHIVE
= $(COMPONENT_SRC
).
tar.xz
24 COMPONENT_FMRI
= x11
/documentation
/xorg-docs
25 COMPONENT_ARCHIVE_HASH
= sha256
:28a2f2eeb5d9ff58b85961ff3ed7baaaf1ffa132e2a81f8b2bb97cb499bcddef
27 include $(WS_MAKE_RULES
)/common.mk
29 X11_DOC_DIR
= $(USRSHAREDOCDIR
)/X11
30 X11_SGML_DIR
= $(USRSHAREDIR
)/sgml
32 COMPONENT_PREP_ACTION
= \
33 find
$(@D
) -name
'*.xml' | xargs
$(PERL
) -i.orig
-p
-e \
34 's{SYSTEM ".*/X11/defs.ent"}{SYSTEM "$(X11_SGML_DIR)/X11/defs.ent"}'
36 CONFIGURE_OPTIONS
+= --docdir
='$(X11_DOC_DIR)' \
37 XORG_SGML_PATH
=$(PROTODIR
)$(X11_SGML_DIR
)
38 CONFIGURE_OPTIONS
+= --with-xmlto
39 CONFIGURE_OPTIONS
+= --without-xsltproc
41 COMPONENT_POST_INSTALL_ACTION
= \
42 ( $(MKDIR
) $(PROTO_DIR
)$(X11_DOC_DIR
); \
43 (cd
$(COMPONENT_DIR
)/src
&& tar -cf
- .
) | \
44 (cd
$(PROTO_DIR
)$(X11_DOC_DIR
) && tar -xf
- ); \
45 $(MV
) $(PROTO_DIR
)$(USRSHAREMAN7DIR
)/Consortium
.7 \
46 $(PROTO_DIR
)$(USRSHAREMAN7DIR
)/XConsortium
.7; \
47 $(MV
) $(PROTO_DIR
)$(USRSHAREMAN7DIR
)/Standards
.7 \
48 $(PROTO_DIR
)$(USRSHAREMAN7DIR
)/XStandards
.7 )
51 REQUIRED_PACKAGES
+= text
/xmlto
53 # Auto-generated dependencies