components/gnome/libgdata/Makefile
changeset 6672 bf764124d33c
child 7293 a449e2e641be
equal deleted inserted replaced
6671:ff9eef4eda6b 6672:bf764124d33c
       
     1 #
       
     2 # CDDL HEADER START
       
     3 #
       
     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.
       
     7 #
       
     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.
       
    12 #
       
    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]
       
    18 #
       
    19 # CDDL HEADER END
       
    20 #
       
    21 
       
    22 #
       
    23 # Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
       
    24 #
       
    25 
       
    26 BUILD_BITS =            64
       
    27 # All components using gobject-introspection must be built with gcc as
       
    28 # gobject-introspection does not produce correct results when using Studio.
       
    29 COMPILER=gcc
       
    30 include ../../../make-rules/shared-macros.mk
       
    31 
       
    32 COMPONENT_NAME=		libgdata
       
    33 COMPONENT_VERSION=	0.17.3
       
    34 COMPONENT_PROJECT_URL=	https://wiki.gnome.org/Projects/libgdata
       
    35 COMPONENT_ARCHIVE_HASH=	\
       
    36     sha256:ff280b031c50a99ed735c3fa18fbea9ae3e4cc5e3d7dd58ebae09994b01b513b
       
    37 COMPONENT_BUGDB=        gnome/libraries
       
    38 
       
    39 TPNO=			25082
       
    40 
       
    41 # Needs gobject-introspection, not available on S11.
       
    42 include $(WS_MAKE_RULES)/no-evaluation.mk
       
    43 
       
    44 include $(WS_MAKE_RULES)/gnome-component.mk
       
    45 
       
    46 # Documentation XML is malformed; skip building.
       
    47 CONFIGURE_OPTIONS += --disable-gtk-doc
       
    48 CONFIGURE_OPTIONS += --disable-static
       
    49 # Required for other components.
       
    50 CONFIGURE_OPTIONS += --enable-gnome
       
    51 CONFIGURE_OPTIONS += --enable-goa
       
    52 # Required for other components.
       
    53 CONFIGURE_OPTIONS += --enable-introspection
       
    54 # Required for other components.
       
    55 CONFIGURE_OPTIONS += --enable-vala
       
    56 CONFIGURE_OPTIONS += --with-pic
       
    57 
       
    58 CONFIGURE_ENV += PATH="$(GNUBIN):$(PATH)"
       
    59 
       
    60 # Delete once builds servers have goa installed
       
    61 GOA_BASE = $(WS_COMPONENTS)/gnome/gnome-online-accounts/build/prototype/$(MACH)
       
    62 PKG_CONFIG_PATHS += $(GOA_BASE)/usr/lib/$(MACH64)/pkgconfig
       
    63 
       
    64 LD_OPTIONS += -L $(GOA_BASE)$(USRLIB.$(BITS))
       
    65 
       
    66 CONFIGURE_ENV += GNOME_CFLAGS="-D_REENTRANT -I$(GOA_BASE)/usr/include/goa-1.0 -I$(GOA_BASE)/usr/lib/$(MACH64)/goa-1.0/include -I/usr/include/gcr-3 -I/usr/include/gck-1 -I/usr/include/p11-kit-1 -I/usr/include/libxml2 -I/usr/include/glib-2.0 -I/usr/lib/$(MACH64)/glib-2.0/include"
       
    67 
       
    68 COMPONENT_BUILD_ENV  += \
       
    69 	XDG_DATA_DIRS="$(GOA_BASE)/usr/share/:/usr/share/"
       
    70 
       
    71 COMPONENT_BUILD_ENV += LD_LIBRARY_PATH_64="$(GOA_BASE)$(USRLIB.$(BITS)):$(BUILD_DIR_64)/gdata/.libs"
       
    72 
       
    73 # The dependency isn't installed, so add it manually since pkgdepend
       
    74 # can't resolve them yet: 15708323
       
    75 DEPENDED += $(WS_TOP)/components/gnome/gnome-online-accounts/build/manifest-$(MACH)-gnome-online-accounts.depend
       
    76 
       
    77 # Temporary until dependencies are all on build machines
       
    78 REQUIRED_PACKAGES += $(shell $(GSED) -n 's/REQUIRED_PACKAGES +=//p' ../gnome-online-accounts/Makefile)
       
    79 #end Delete
       
    80 
       
    81 # for the tests
       
    82 unexport SHELLOPTS
       
    83 COMPONENT_TEST_ARGS =   -k -i
       
    84 COMPONENT_TEST_TRANSFORMS += \
       
    85         '-n ' \
       
    86         '-e "/TOTAL:/p" ' \
       
    87         '-e "/SKIP:/p" ' \
       
    88         '-e "/PASS:/p" ' \
       
    89         '-e "/FAIL:/p" ' \
       
    90         '-e "/ERROR:/p" '
       
    91 
       
    92 REQUIRED_PACKAGES += developer/vala
       
    93 REQUIRED_PACKAGES += library/desktop/gobject/gobject-introspection
       
    94 REQUIRED_PACKAGES += library/glib2
       
    95 REQUIRED_PACKAGES += library/gnome/gcr
       
    96 REQUIRED_PACKAGES += library/gnome/gnome-online-accounts
       
    97 REQUIRED_PACKAGES += library/json-glib
       
    98 REQUIRED_PACKAGES += library/liboauth
       
    99 REQUIRED_PACKAGES += library/libsoup
       
   100 REQUIRED_PACKAGES += library/libxml2
       
   101 REQUIRED_PACKAGES += library/uhttpmock
       
   102 REQUIRED_PACKAGES += system/library/gcc/gcc-c-runtime