components/desktop/libical/Makefile
changeset 7191 001012c619ce
child 7687 1093e2a9adbd
equal deleted inserted replaced
7190:995b487a3de3 7191:001012c619ce
       
     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 # Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
       
    22 #
       
    23 
       
    24 BUILD_BITS=		64_and_32
       
    25 # For now, all things built for C++11 require gcc.
       
    26 COMPILER= 		gcc
       
    27 include ../../../make-rules/shared-macros.mk
       
    28 
       
    29 COMPONENT_NAME=		libical
       
    30 COMPONENT_VERSION=	1.0.1
       
    31 COMPONENT_PROJECT_URL=	http://libical.github.io/libical/
       
    32 COMPONENT_ARCHIVE_HASH= \
       
    33 	sha256:089ce3c42d97fbd7a5d4b3c70adbdd82115dd306349c1f5c46a8fb3f8c949592
       
    34 COMPONENT_ARCHIVE_URL=	https://github.com/$(COMPONENT_NAME)/$(COMPONENT_NAME)/releases/download/v$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)
       
    35 COMPONENT_BUGDB=	gnome/libraries
       
    36 
       
    37 TPNO=			24898
       
    38 
       
    39 TEST_TARGET = $(NO_TESTS)
       
    40 
       
    41 # Uses gobject-introspection, not available on S11.
       
    42 include $(WS_MAKE_RULES)/no-evaluation.mk
       
    43 
       
    44 BUILD_STYLE= cmake
       
    45 include $(WS_MAKE_RULES)/common.mk
       
    46 
       
    47 # Use project's own optimisation flags instead.
       
    48 gcc_OPT=
       
    49 
       
    50 # Requires __EXTENSIONS__ for access to various non-standard time functions.
       
    51 CFLAGS += -D__EXTENSIONS__
       
    52 CXXFLAGS += -std=c++11 -D__EXTENSIONS__
       
    53 
       
    54 CMAKE_OPTIONS += -DSHARED_ONLY=true
       
    55 # Required for other components.
       
    56 CMAKE_OPTIONS += -DGOBJECT_INTROSPECTION=true
       
    57 # Always use Solaris-provided timezone data.
       
    58 CMAKE_OPTIONS += -DUSE_BUILTIN_TZDATA=false
       
    59 
       
    60 # Workaround g-ir-scanner breakage.
       
    61 LD_Z_IGNORE=
       
    62 
       
    63 # Required for gobject-introspection invocation.
       
    64 COMPONENT_BUILD_ENV += CC="$(CC)"
       
    65 COMPONENT_BUILD_ENV += CFLAGS="$(CFLAGS)"
       
    66 COMPONENT_BUILD_ENV += CXX="$(CXX)"
       
    67 COMPONENT_BUILD_ENV += CXXFLAGS="$(CXXFLAGS)"
       
    68 
       
    69 # Tell g-ir-scanner not to cache results in homedir of user running the build
       
    70 COMPONENT_BUILD_ENV += GI_SCANNER_DISABLE_CACHE=""
       
    71 
       
    72 REQUIRED_PACKAGES += library/desktop/gobject/gobject-introspection