Marcel Telka
2022-08-23 cfb9319aeb57b9935660c6a1db61e4871fff1b90
commit | author | age
576329 1 #
AP 2 # This file and its contents are supplied under the terms of the
3 # Common Development and Distribution License ("CDDL)". You may
4 # only use this file in accordance with the terms of the CDDL.
5 #
6 # A full copy of the text of the CDDL should have accompanied this
7 # source. A copy of the CDDL is also available via the Internet at
8 # http://www.illumos.org/license/CDDL.
9 #
10
11 #
fab211 12 # Copyright 2021 Gary Mills
0e345d 13 # Copyright 2016 Alexander Pyhalov
576329 14 #
fab211 15
0e345d 16 include ../../../make-rules/shared-macros.mk
576329 17
AP 18 COMPONENT_NAME=        gtk-doc
fab211 19 COMPONENT_MAJOR_VERSION=        1.33
GM 20 COMPONENT_MINOR_VERSION=        2
21 COMPONENT_VERSION=      $(COMPONENT_MAJOR_VERSION).$(COMPONENT_MINOR_VERSION)
cfb931 22 COMPONENT_REVISION=    3
576329 23 COMPONENT_PROJECT_URL=    http://www.gtk.org/gtk-doc/
AP 24 COMPONENT_SUMMARY=    GTK+ DocBook Documentation Generator
25 COMPONENT_SRC=        $(COMPONENT_NAME)-$(COMPONENT_VERSION)
26 COMPONENT_ARCHIVE=    $(COMPONENT_SRC).tar.xz
27 COMPONENT_ARCHIVE_HASH=    \
fab211 28     sha256:cc1b709a20eb030a278a1f9842a362e00402b7f834ae1df4c1998a723152bf43
b7ef23 29 COMPONENT_ARCHIVE_URL=    https://download.gnome.org/sources/$(COMPONENT_NAME)/$(COMPONENT_MAJOR_VERSION)/$(COMPONENT_ARCHIVE)
576329 30
fab211 31 # Set python version used by this product
GM 32 PYTHON_VERSION=        3.7
33
34 # The built-in tests assume the package has already been installed
35 TEST_TARGET=        $(NO_TESTS)
36
37 include $(WS_MAKE_RULES)/common.mk
0e345d 38
1248bd 39 PATH=$(PATH.gnu)
576329 40
fab211 41 # Build configure script
GM 42 COMPONENT_PREP_ACTION += (cd $(@D); autoreconf -fiv)
43
5f4c81 44 # pkgdepend doesn't like the first line of a Python script to be:
NP 45 # '#!/usr/bin/env python3' so turn it into '#!/usr/bin/python$(PYTHON_VERSION)'
46 #
47 COMPONENT_POST_INSTALL_ACTION += \
48     $(GSED) -i -e 's?env python3?python$(PYTHON_VERSION)?' \
49         $(PROTOUSRSHAREDIR)/gtk-doc/python/gtkdoc/highlight.py;
50 COMPONENT_POST_INSTALL_ACTION += \
51     $(GSED) -i -e 's?env python3?python$(PYTHON_VERSION)?' \
52         $(PROTOUSRSHAREDIR)/gtk-doc/python/gtkdoc/mkhtml2.py;
53
fab211 54 CONFIGURE_OPTIONS+=    --bindir=$(USRBINDIR)
GM 55 CONFIGURE_OPTIONS+=    --sbindir=$(USRSBINDIR)
56 CONFIGURE_OPTIONS+=    --sysconfdir=$(ETCDIR)
576329 57 CONFIGURE_ENV+=        PYTHON=$(PYTHON)
AP 58
5f4c81 59 # Manually added dependencies
0e345d 60 REQUIRED_PACKAGES += SUNWcs
5f4c81 61 REQUIRED_PACKAGES += text/itstool
fab211 62 REQUIRED_PACKAGES += runtime/python-37
4beb30 63 REQUIRED_PACKAGES += library/python/pygments-37
cfb931 64
MT 65 # Auto-generated dependencies