transset: update to 1.0.4
[oi-userland.git] / components / library / libpeas / Makefile
blob4ff2ce565e92e30fb87cbc1619be282b668d053b
2 # CDDL HEADER START
4 # The contents of this file are subject to the terms of the
5 # Common Development and Distribution License (the "License").
6 # You may not use this file except in compliance with the License.
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 # or http://www.opensolaris.org/os/licensing.
10 # See the License for the specific language governing permissions
11 # and limitations under the License.
13 # When distributing Covered Code, include this CDDL HEADER in each
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 # If applicable, add the following below this CDDL HEADER, with the
16 # fields enclosed by brackets "[]" replaced with your own identifying
17 # information: Portions Copyright [yyyy] [name of copyright owner]
19 # CDDL HEADER END
23 # Copyright 2022 Gary Mills
24 # Copyright (c) 2015, 2017, Oracle and/or its affiliates. All rights reserved.
27 # requires gobject-introspection
29 include ../../../make-rules/shared-macros.mk
31 COMPONENT_NAME= libpeas
32 COMPONENT_SUMMARY= A gobject-based plugins engine for GNOME
33 COMPONENT_DESCRIPTION= libpeas is a gobject-based plugins engine, and is targeted\
34 at giving every application the chance to assume its own extensibility.
35 COMPONENT_VERSION= 1.20.0
36 COMPONENT_REVISION= 5
37 COMPONENT_PROJECT_URL= https://wiki.gnome.org/Projects/Libpeas
38 COMPONENT_MAJOR_MINOR= $(basename $(COMPONENT_VERSION))
39 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
40 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.xz
41 COMPONENT_ARCHIVE_URL= https://download.gnome.org/sources/$(COMPONENT_NAME)/$(COMPONENT_MAJOR_MINOR)/$(COMPONENT_ARCHIVE)
42 COMPONENT_ARCHIVE_HASH= \
43 sha256:f392fffe2dc00072a51bb2a1b274224a06bdc5f9c3b3c0ac4816909e9933d354
44 COMPONENT_CLASSIFICATION= Desktop (GNOME)/Libraries
45 COMPONENT_FMRI= library/desktop/libpeas
46 COMPONENT_LICENSE= LGPLv2.1
47 COMPONENT_LICENSE_FILE= COPYING
49 include $(WS_MAKE_RULES)/common.mk
51 CONFIGURE_ENV += PYTHON=$(PYTHON)
52 CONFIGURE_ENV += PYTHON3_CONFIG=/usr/bin/python$(PYTHON_VERSION)-config
54 CONFIGURE_OPTIONS += --disable-static
55 CONFIGURE_OPTIONS += --enable-gtk
56 CONFIGURE_OPTIONS += --enable-lua5.2
57 CONFIGURE_OPTIONS += --disable-luajit
58 CONFIGURE_OPTIONS += --disable-python2
59 CONFIGURE_OPTIONS += --enable-python3
60 CONFIGURE_OPTIONS += --enable-shared
61 CONFIGURE_OPTIONS += --with-pic
63 # Assumes GNU xgettext in PATH
64 PATH = $(PATH.gnu)
66 # gobject introspection
67 COMPONENT_BUILD_ENV += CC="$(CC)"
68 COMPONENT_BUILD_ENV += CFLAGS="$(CFLAGS)"
70 # Required due to patches.
71 COMPONENT_PREP_ACTION += (cd $(@D); PATH="$(PATH)" autoreconf -fiv);
73 # for the tests
74 unexport SHELLOPTS
75 COMPONENT_TEST_ARGS = -k -i
76 # Strip pids from test output, since they're always different
77 COMPONENT_TEST_TRANSFORMS += '-e "s% (pid=[0-9]*)%%"'
78 COMPONENT_TEST_TRANSFORMS += \
79 '-n ' \
80 '-e "/TEST:/p" ' \
81 '-e "/PASS:/p" ' \
82 '-e "/FAIL:/p" '
84 # Build dependencies
85 PYTHON_REQUIRED_PACKAGES += library/python/pygobject-3
86 REQUIRED_PACKAGES += developer/ui-designer/glade
87 REQUIRED_PACKAGES += developer/documentation-tool/gtk-doc
88 REQUIRED_PACKAGES += library/desktop/gdk-pixbuf
89 REQUIRED_PACKAGES += library/lua/lgi-52
90 REQUIRED_PACKAGES += text/xmlto
92 # Auto-generated dependencies
93 PYTHON_REQUIRED_PACKAGES += runtime/python
94 REQUIRED_PACKAGES += library/desktop/gobject/gobject-introspection
95 REQUIRED_PACKAGES += library/desktop/gtk3
96 REQUIRED_PACKAGES += library/glib2
97 REQUIRED_PACKAGES += runtime/lua
98 REQUIRED_PACKAGES += system/library