components/desktop/libical/Makefile
author Rich Burridge <rich.burridge@oracle.com>
Thu, 23 Feb 2017 13:46:52 -0800
changeset 7687 1093e2a9adbd
parent 7191 001012c619ce
permissions -rw-r--r--
25590368 Userland components should include "upstream" release tracking information
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
7191
001012c619ce 23245335 Move libical to Userland and update to 1.0.1
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
     1
#
001012c619ce 23245335 Move libical to Userland and update to 1.0.1
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
     2
# CDDL HEADER START
001012c619ce 23245335 Move libical to Userland and update to 1.0.1
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
     3
#
001012c619ce 23245335 Move libical to Userland and update to 1.0.1
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
     4
# The contents of this file are subject to the terms of the
001012c619ce 23245335 Move libical to Userland and update to 1.0.1
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
     5
# Common Development and Distribution License (the "License").
001012c619ce 23245335 Move libical to Userland and update to 1.0.1
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
     6
# You may not use this file except in compliance with the License.
001012c619ce 23245335 Move libical to Userland and update to 1.0.1
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
     7
#
001012c619ce 23245335 Move libical to Userland and update to 1.0.1
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
     8
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
001012c619ce 23245335 Move libical to Userland and update to 1.0.1
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
     9
# or http://www.opensolaris.org/os/licensing.
001012c619ce 23245335 Move libical to Userland and update to 1.0.1
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    10
# See the License for the specific language governing permissions
001012c619ce 23245335 Move libical to Userland and update to 1.0.1
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    11
# and limitations under the License.
001012c619ce 23245335 Move libical to Userland and update to 1.0.1
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    12
#
001012c619ce 23245335 Move libical to Userland and update to 1.0.1
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    13
# When distributing Covered Code, include this CDDL HEADER in each
001012c619ce 23245335 Move libical to Userland and update to 1.0.1
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    14
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
001012c619ce 23245335 Move libical to Userland and update to 1.0.1
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    15
# If applicable, add the following below this CDDL HEADER, with the
001012c619ce 23245335 Move libical to Userland and update to 1.0.1
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    16
# fields enclosed by brackets "[]" replaced with your own identifying
001012c619ce 23245335 Move libical to Userland and update to 1.0.1
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    17
# information: Portions Copyright [yyyy] [name of copyright owner]
001012c619ce 23245335 Move libical to Userland and update to 1.0.1
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    18
#
001012c619ce 23245335 Move libical to Userland and update to 1.0.1
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    19
# CDDL HEADER END
001012c619ce 23245335 Move libical to Userland and update to 1.0.1
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    20
#
7687
1093e2a9adbd 25590368 Userland components should include "upstream" release tracking information
Rich Burridge <rich.burridge@oracle.com>
parents: 7191
diff changeset
    21
# Copyright (c) 2015, 2017, Oracle and/or its affiliates. All rights reserved.
7191
001012c619ce 23245335 Move libical to Userland and update to 1.0.1
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    22
#
001012c619ce 23245335 Move libical to Userland and update to 1.0.1
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    23
001012c619ce 23245335 Move libical to Userland and update to 1.0.1
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    24
BUILD_BITS=		64_and_32
001012c619ce 23245335 Move libical to Userland and update to 1.0.1
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    25
# For now, all things built for C++11 require gcc.
001012c619ce 23245335 Move libical to Userland and update to 1.0.1
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    26
COMPILER= 		gcc
001012c619ce 23245335 Move libical to Userland and update to 1.0.1
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    27
include ../../../make-rules/shared-macros.mk
001012c619ce 23245335 Move libical to Userland and update to 1.0.1
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    28
001012c619ce 23245335 Move libical to Userland and update to 1.0.1
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    29
COMPONENT_NAME=		libical
001012c619ce 23245335 Move libical to Userland and update to 1.0.1
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    30
COMPONENT_VERSION=	1.0.1
001012c619ce 23245335 Move libical to Userland and update to 1.0.1
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    31
COMPONENT_PROJECT_URL=	http://libical.github.io/libical/
001012c619ce 23245335 Move libical to Userland and update to 1.0.1
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    32
COMPONENT_ARCHIVE_HASH= \
001012c619ce 23245335 Move libical to Userland and update to 1.0.1
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    33
	sha256:089ce3c42d97fbd7a5d4b3c70adbdd82115dd306349c1f5c46a8fb3f8c949592
001012c619ce 23245335 Move libical to Userland and update to 1.0.1
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    34
COMPONENT_ARCHIVE_URL=	https://github.com/$(COMPONENT_NAME)/$(COMPONENT_NAME)/releases/download/v$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)
001012c619ce 23245335 Move libical to Userland and update to 1.0.1
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    35
COMPONENT_BUGDB=	gnome/libraries
7687
1093e2a9adbd 25590368 Userland components should include "upstream" release tracking information
Rich Burridge <rich.burridge@oracle.com>
parents: 7191
diff changeset
    36
COMPONENT_ANITYA_ID=	1637
7191
001012c619ce 23245335 Move libical to Userland and update to 1.0.1
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    37
001012c619ce 23245335 Move libical to Userland and update to 1.0.1
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    38
TPNO=			24898
001012c619ce 23245335 Move libical to Userland and update to 1.0.1
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    39
001012c619ce 23245335 Move libical to Userland and update to 1.0.1
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    40
TEST_TARGET = $(NO_TESTS)
001012c619ce 23245335 Move libical to Userland and update to 1.0.1
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    41
001012c619ce 23245335 Move libical to Userland and update to 1.0.1
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    42
# Uses gobject-introspection, not available on S11.
001012c619ce 23245335 Move libical to Userland and update to 1.0.1
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    43
include $(WS_MAKE_RULES)/no-evaluation.mk
001012c619ce 23245335 Move libical to Userland and update to 1.0.1
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    44
001012c619ce 23245335 Move libical to Userland and update to 1.0.1
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    45
BUILD_STYLE= cmake
001012c619ce 23245335 Move libical to Userland and update to 1.0.1
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    46
include $(WS_MAKE_RULES)/common.mk
001012c619ce 23245335 Move libical to Userland and update to 1.0.1
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    47
001012c619ce 23245335 Move libical to Userland and update to 1.0.1
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    48
# Use project's own optimisation flags instead.
001012c619ce 23245335 Move libical to Userland and update to 1.0.1
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    49
gcc_OPT=
001012c619ce 23245335 Move libical to Userland and update to 1.0.1
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    50
001012c619ce 23245335 Move libical to Userland and update to 1.0.1
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    51
# Requires __EXTENSIONS__ for access to various non-standard time functions.
001012c619ce 23245335 Move libical to Userland and update to 1.0.1
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    52
CFLAGS += -D__EXTENSIONS__
001012c619ce 23245335 Move libical to Userland and update to 1.0.1
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    53
CXXFLAGS += -std=c++11 -D__EXTENSIONS__
001012c619ce 23245335 Move libical to Userland and update to 1.0.1
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    54
001012c619ce 23245335 Move libical to Userland and update to 1.0.1
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    55
CMAKE_OPTIONS += -DSHARED_ONLY=true
001012c619ce 23245335 Move libical to Userland and update to 1.0.1
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    56
# Required for other components.
001012c619ce 23245335 Move libical to Userland and update to 1.0.1
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    57
CMAKE_OPTIONS += -DGOBJECT_INTROSPECTION=true
001012c619ce 23245335 Move libical to Userland and update to 1.0.1
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    58
# Always use Solaris-provided timezone data.
001012c619ce 23245335 Move libical to Userland and update to 1.0.1
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    59
CMAKE_OPTIONS += -DUSE_BUILTIN_TZDATA=false
001012c619ce 23245335 Move libical to Userland and update to 1.0.1
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    60
001012c619ce 23245335 Move libical to Userland and update to 1.0.1
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    61
# Workaround g-ir-scanner breakage.
001012c619ce 23245335 Move libical to Userland and update to 1.0.1
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    62
LD_Z_IGNORE=
001012c619ce 23245335 Move libical to Userland and update to 1.0.1
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    63
001012c619ce 23245335 Move libical to Userland and update to 1.0.1
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    64
# Required for gobject-introspection invocation.
001012c619ce 23245335 Move libical to Userland and update to 1.0.1
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    65
COMPONENT_BUILD_ENV += CC="$(CC)"
001012c619ce 23245335 Move libical to Userland and update to 1.0.1
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    66
COMPONENT_BUILD_ENV += CFLAGS="$(CFLAGS)"
001012c619ce 23245335 Move libical to Userland and update to 1.0.1
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    67
COMPONENT_BUILD_ENV += CXX="$(CXX)"
001012c619ce 23245335 Move libical to Userland and update to 1.0.1
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    68
COMPONENT_BUILD_ENV += CXXFLAGS="$(CXXFLAGS)"
001012c619ce 23245335 Move libical to Userland and update to 1.0.1
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    69
001012c619ce 23245335 Move libical to Userland and update to 1.0.1
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    70
# Tell g-ir-scanner not to cache results in homedir of user running the build
001012c619ce 23245335 Move libical to Userland and update to 1.0.1
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    71
COMPONENT_BUILD_ENV += GI_SCANNER_DISABLE_CACHE=""
001012c619ce 23245335 Move libical to Userland and update to 1.0.1
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    72
001012c619ce 23245335 Move libical to Userland and update to 1.0.1
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    73
REQUIRED_PACKAGES += library/desktop/gobject/gobject-introspection