Marcel Telka
2022-01-31 b7ef23180b8258d99f0990e953e0eddbaaab32a5
commit | author | age
04ab33 1 #
AP 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.
6 #
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.
10 #
11
12 #
dd4c1f 13 # Copyright 2016 Marcel Telka <marcel@telka.sk>
04ab33 14 # Copyright 2014 Alexander Pyhalov.  All rights reserved.
a29382 15 # Copyright 2019 Michal Nowak
04ab33 16 #
AP 17
7c05ee 18 PREFERED_BITS= 64
AP 19 BUILD_BITS= 64
20
9d4492 21 include ../../../make-rules/shared-macros.mk
04ab33 22
AP 23 COMPONENT_NAME= gobject-introspection
24
a29382 25 COMPONENT_VERSION_MAJOR=1
MN 26 COMPONENT_VERSION_MINOR=60
27 COMPONENT_VERSION_MICRO=1
28 COMPONENT_VERSION_DL=    $(COMPONENT_VERSION_MAJOR).$(COMPONENT_VERSION_MINOR)
29 COMPONENT_VERSION=    $(COMPONENT_VERSION_DL).$(COMPONENT_VERSION_MICRO)
7c05ee 30 COMPONENT_REVISION=    1
a29382 31 COMPONENT_SUMMARY=    Introspection for GObject libraries
MN 32 COMPONENT_FMRI=        library/desktop/gobject/gobject-introspection
33 COMPONENT_SRC=        $(COMPONENT_NAME)-$(COMPONENT_VERSION)
34 COMPONENT_ARCHIVE=    $(COMPONENT_SRC).tar.xz
04ab33 35 COMPONENT_ARCHIVE_HASH= \
a29382 36     sha256:d844d1499ecd36f3ec8a3573616186d36626ec0c9a7981939e99aa02e9c824b3
04ab33 37 COMPONENT_ARCHIVE_URL= \
b7ef23 38     https://download.gnome.org/sources/$(COMPONENT_NAME)/$(COMPONENT_VERSION_DL)/$(COMPONENT_ARCHIVE)
a29382 39 COMPONENT_PROJECT_URL=    http://live.gnome.org/GObjectIntrospection
MN 40 COMPONENT_LICENSE_FILE=    gobject-introspection.license
41 COMPONENT_LICENSE=    GPLv2, LGPLv2
04ab33 42
7c05ee 43 include $(WS_MAKE_RULES)/common.mk
a29382 44
7c05ee 45 PYTHON_VERSION = 3.5
AP 46
47 CPPFLAGS += $(CC_BITS)
04ab33 48
AP 49 COMPONENT_POST_UNPACK_ACTION = \
50         /usr/bin/find $(SOURCE_DIR) -name *.py \
51                 -exec $(GSED) -i -e 's:/usr/bin/env python:$(PYTHON):' "{}" \; ;
52
a29382 53 COMPONENT_PREP_ACTION += \
MN 54     ( cd $(@D) && \
55     aclocal -I ./m4 && \
56     autoheader && \
57     automake -a -f -c --gnu && \
58     autoconf )
04ab33 59
AP 60 CONFIGURE_OPTIONS += --sysconfdir=/etc
61
a29382 62 CONFIGURE_ENV += PYTHON=$(PYTHON.$(PYTHON_VERSION).$(BITS))
7c05ee 63 CONFIGURE_ENV += CPPFLAGS="$(CPPFLAGS)"
04ab33 64
11cdab 65 COMPONENT_BUILD_ENV += CC="$(CC)"
AP 66
a29382 67 unexport SHELLOPTS
04ab33 68
7c05ee 69 REQUIRED_PACKAGES += library/python/markdown-35
a29382 70 REQUIRED_PACKAGES += developer/build/autoconf-archive
d8ffac 71 # Auto-generated dependencies
AL 72 REQUIRED_PACKAGES += library/glib2
73 REQUIRED_PACKAGES += library/libffi
74 REQUIRED_PACKAGES += system/library
75 REQUIRED_PACKAGES += system/library/math