ORBit2: Fix dependency to library/glib2/32
[oi-userland.git] / components / library / uhttpmock / Makefile
blob6a0b3123777c1cb346f56f490955c03f3a5e0ba9
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
21 # Copyright (c) 2015, 2017, Oracle and/or its affiliates. All rights reserved.
24 include ../../../make-rules/shared-macros.mk
26 COMPONENT_NAME= uhttpmock
27 COMPONENT_VERSION= 0.5.3
28 COMPONENT_REVISION= 2
29 COMPONENT_SUMMARY= A library for mocking web service APIs which use HTTP or HTTPS
30 COMPONENT_PROJECT_URL= https://gitlab.com/uhttpmock/
31 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
32 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.xz
33 COMPONENT_ARCHIVE_HASH= sha256:90843223c3a30bdb7f1eb3442373a03fee425af85a9df289cd687698ccff112f
34 COMPONENT_ARCHIVE_URL= https://tecnocode.co.uk/downloads/$(COMPONENT_NAME)/$(COMPONENT_ARCHIVE)
35 COMPONENT_CLASSIFICATION= System/Libraries
36 COMPONENT_FMRI= library/uhttpmock
37 COMPONENT_LICENSE= LGPLv2.1
38 COMPONENT_LICENSE_FILE= COPYING
40 include $(WS_MAKE_RULES)/common.mk
42 COMPONENT_PREP_ACTION = (cd $(@D) && autoreconf -fi)
44 # Tell g-ir-scanner not to cache results in homedir of user running the build
45 COMPONENT_BUILD_ENV += GI_SCANNER_DISABLE_CACHE=""
47 CONFIGURE_OPTIONS += --disable-static
48 CONFIGURE_OPTIONS += --enable-gtk-doc
49 # Required for other components.
50 CONFIGURE_OPTIONS += --enable-introspection
51 CONFIGURE_OPTIONS += --enable-shared
52 # Required for other components.
53 CONFIGURE_OPTIONS += --enable-vala
54 CONFIGURE_OPTIONS += --with-pic
56 COMPONENT_BUILD_ENV += CC="$(CC)"
57 COMPONENT_BUILD_ENV += CFLAGS="$(CFLAGS)"
59 COMPONENT_TEST_ARGS = -k -i
60 COMPONENT_TEST_TRANSFORMS += \
61 '-n ' \
62 '-e "/TOTAL:/p" ' \
63 '-e "/SKIP:/p" ' \
64 '-e "/PASS:/p" ' \
65 '-e "/FAIL:/p" ' \
66 '-e "/ERROR:/p" ' \
67 '-e "/ \//p" ' \
69 # Build dependencies
70 REQUIRED_PACKAGES += developer/documentation-tool/gtk-doc
71 REQUIRED_PACKAGES += library/desktop/gobject/gobject-introspection
73 # Auto-generated dependencies
74 REQUIRED_PACKAGES += library/glib2
75 REQUIRED_PACKAGES += library/libsoup
76 REQUIRED_PACKAGES += system/library