components/rrdtool/Makefile
author Rich Burridge <rich.burridge@oracle.com>
Thu, 23 Feb 2017 13:46:52 -0800
changeset 7687 1093e2a9adbd
parent 6689 e63eef58eda3
permissions -rw-r--r--
25590368 Userland components should include "upstream" release tracking information
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
3960
9e7316c31217 20035678 Migrate rrdtool from Desktop consolidation to Userland
Yamei Feng <yamei.feng@oracle.com>
parents:
diff changeset
     1
#
9e7316c31217 20035678 Migrate rrdtool from Desktop consolidation to Userland
Yamei Feng <yamei.feng@oracle.com>
parents:
diff changeset
     2
# CDDL HEADER START
9e7316c31217 20035678 Migrate rrdtool from Desktop consolidation to Userland
Yamei Feng <yamei.feng@oracle.com>
parents:
diff changeset
     3
#
9e7316c31217 20035678 Migrate rrdtool from Desktop consolidation to Userland
Yamei Feng <yamei.feng@oracle.com>
parents:
diff changeset
     4
# The contents of this file are subject to the terms of the
9e7316c31217 20035678 Migrate rrdtool from Desktop consolidation to Userland
Yamei Feng <yamei.feng@oracle.com>
parents:
diff changeset
     5
# Common Development and Distribution License (the "License").
9e7316c31217 20035678 Migrate rrdtool from Desktop consolidation to Userland
Yamei Feng <yamei.feng@oracle.com>
parents:
diff changeset
     6
# You may not use this file except in compliance with the License.
9e7316c31217 20035678 Migrate rrdtool from Desktop consolidation to Userland
Yamei Feng <yamei.feng@oracle.com>
parents:
diff changeset
     7
#
9e7316c31217 20035678 Migrate rrdtool from Desktop consolidation to Userland
Yamei Feng <yamei.feng@oracle.com>
parents:
diff changeset
     8
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9e7316c31217 20035678 Migrate rrdtool from Desktop consolidation to Userland
Yamei Feng <yamei.feng@oracle.com>
parents:
diff changeset
     9
# or http://www.opensolaris.org/os/licensing.
9e7316c31217 20035678 Migrate rrdtool from Desktop consolidation to Userland
Yamei Feng <yamei.feng@oracle.com>
parents:
diff changeset
    10
# See the License for the specific language governing permissions
9e7316c31217 20035678 Migrate rrdtool from Desktop consolidation to Userland
Yamei Feng <yamei.feng@oracle.com>
parents:
diff changeset
    11
# and limitations under the License.
9e7316c31217 20035678 Migrate rrdtool from Desktop consolidation to Userland
Yamei Feng <yamei.feng@oracle.com>
parents:
diff changeset
    12
#
9e7316c31217 20035678 Migrate rrdtool from Desktop consolidation to Userland
Yamei Feng <yamei.feng@oracle.com>
parents:
diff changeset
    13
# When distributing Covered Code, include this CDDL HEADER in each
9e7316c31217 20035678 Migrate rrdtool from Desktop consolidation to Userland
Yamei Feng <yamei.feng@oracle.com>
parents:
diff changeset
    14
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
9e7316c31217 20035678 Migrate rrdtool from Desktop consolidation to Userland
Yamei Feng <yamei.feng@oracle.com>
parents:
diff changeset
    15
# If applicable, add the following below this CDDL HEADER, with the
9e7316c31217 20035678 Migrate rrdtool from Desktop consolidation to Userland
Yamei Feng <yamei.feng@oracle.com>
parents:
diff changeset
    16
# fields enclosed by brackets "[]" replaced with your own identifying
9e7316c31217 20035678 Migrate rrdtool from Desktop consolidation to Userland
Yamei Feng <yamei.feng@oracle.com>
parents:
diff changeset
    17
# information: Portions Copyright [yyyy] [name of copyright owner]
9e7316c31217 20035678 Migrate rrdtool from Desktop consolidation to Userland
Yamei Feng <yamei.feng@oracle.com>
parents:
diff changeset
    18
#
9e7316c31217 20035678 Migrate rrdtool from Desktop consolidation to Userland
Yamei Feng <yamei.feng@oracle.com>
parents:
diff changeset
    19
# CDDL HEADER END
9e7316c31217 20035678 Migrate rrdtool from Desktop consolidation to Userland
Yamei Feng <yamei.feng@oracle.com>
parents:
diff changeset
    20
#
9e7316c31217 20035678 Migrate rrdtool from Desktop consolidation to Userland
Yamei Feng <yamei.feng@oracle.com>
parents:
diff changeset
    21
9e7316c31217 20035678 Migrate rrdtool from Desktop consolidation to Userland
Yamei Feng <yamei.feng@oracle.com>
parents:
diff changeset
    22
#
7687
1093e2a9adbd 25590368 Userland components should include "upstream" release tracking information
Rich Burridge <rich.burridge@oracle.com>
parents: 6689
diff changeset
    23
# Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved.
3960
9e7316c31217 20035678 Migrate rrdtool from Desktop consolidation to Userland
Yamei Feng <yamei.feng@oracle.com>
parents:
diff changeset
    24
#
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5638
diff changeset
    25
BUILD_BITS= 64_and_32
3960
9e7316c31217 20035678 Migrate rrdtool from Desktop consolidation to Userland
Yamei Feng <yamei.feng@oracle.com>
parents:
diff changeset
    26
include ../../make-rules/shared-macros.mk
9e7316c31217 20035678 Migrate rrdtool from Desktop consolidation to Userland
Yamei Feng <yamei.feng@oracle.com>
parents:
diff changeset
    27
9e7316c31217 20035678 Migrate rrdtool from Desktop consolidation to Userland
Yamei Feng <yamei.feng@oracle.com>
parents:
diff changeset
    28
COMPONENT_NAME=         rrdtool
6433
f772255f6791 23185092 Upgrade rrdtool to 1.6.0
Yamei Feng <yamei.feng@oracle.com>
parents: 5682
diff changeset
    29
COMPONENT_VERSION=      1.6.0
f772255f6791 23185092 Upgrade rrdtool to 1.6.0
Yamei Feng <yamei.feng@oracle.com>
parents: 5682
diff changeset
    30
COMPONENT_ARCHIVE_HASH= sha256:cd948e89cd2d8825fab4a6fb0323f810948d934af7d92c9ee8b5e9e1350e52d7
3960
9e7316c31217 20035678 Migrate rrdtool from Desktop consolidation to Userland
Yamei Feng <yamei.feng@oracle.com>
parents:
diff changeset
    31
COMPONENT_ARCHIVE_URL=  http://oss.oetiker.ch/rrdtool/pub/$(COMPONENT_ARCHIVE)
9e7316c31217 20035678 Migrate rrdtool from Desktop consolidation to Userland
Yamei Feng <yamei.feng@oracle.com>
parents:
diff changeset
    32
COMPONENT_PROJECT_URL=  http://oss.oetiker.ch/rrdtool/
6433
f772255f6791 23185092 Upgrade rrdtool to 1.6.0
Yamei Feng <yamei.feng@oracle.com>
parents: 5682
diff changeset
    33
TPNO=                   29102 
7687
1093e2a9adbd 25590368 Userland components should include "upstream" release tracking information
Rich Burridge <rich.burridge@oracle.com>
parents: 6689
diff changeset
    34
COMPONENT_ANITYA_ID=	4214
3960
9e7316c31217 20035678 Migrate rrdtool from Desktop consolidation to Userland
Yamei Feng <yamei.feng@oracle.com>
parents:
diff changeset
    35
4605
62d61ce27a05 20839720 Enable python module in rrdtool
Yamei Feng <yamei.feng@oracle.com>
parents: 4339
diff changeset
    36
PYTHON_VERSION=         2.7
62d61ce27a05 20839720 Enable python module in rrdtool
Yamei Feng <yamei.feng@oracle.com>
parents: 4339
diff changeset
    37
PYTHON_VERSIONS=        2.7
62d61ce27a05 20839720 Enable python module in rrdtool
Yamei Feng <yamei.feng@oracle.com>
parents: 4339
diff changeset
    38
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5638
diff changeset
    39
TEST_TARGET= $(NO_TESTS)
6689
e63eef58eda3 24516306 do not publish rrdtool when BUILD_TYPE=evaluation
John Beck <John.Beck@Oracle.COM>
parents: 6433
diff changeset
    40
e63eef58eda3 24516306 do not publish rrdtool when BUILD_TYPE=evaluation
John Beck <John.Beck@Oracle.COM>
parents: 6433
diff changeset
    41
# Depends on newer cairo, which cannot be updated in S11.
e63eef58eda3 24516306 do not publish rrdtool when BUILD_TYPE=evaluation
John Beck <John.Beck@Oracle.COM>
parents: 6433
diff changeset
    42
include $(WS_MAKE_RULES)/no-evaluation.mk
e63eef58eda3 24516306 do not publish rrdtool when BUILD_TYPE=evaluation
John Beck <John.Beck@Oracle.COM>
parents: 6433
diff changeset
    43
e63eef58eda3 24516306 do not publish rrdtool when BUILD_TYPE=evaluation
John Beck <John.Beck@Oracle.COM>
parents: 6433
diff changeset
    44
include $(WS_MAKE_RULES)/common.mk
3960
9e7316c31217 20035678 Migrate rrdtool from Desktop consolidation to Userland
Yamei Feng <yamei.feng@oracle.com>
parents:
diff changeset
    45
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5638
diff changeset
    46
PATH=$(dir $(CC)):$(USRBINDIR):$(USRSBINDIR):$(GNUBIN)
3960
9e7316c31217 20035678 Migrate rrdtool from Desktop consolidation to Userland
Yamei Feng <yamei.feng@oracle.com>
parents:
diff changeset
    47
9e7316c31217 20035678 Migrate rrdtool from Desktop consolidation to Userland
Yamei Feng <yamei.feng@oracle.com>
parents:
diff changeset
    48
COMPONENT_PRE_CONFIGURE_ACTION = \
9e7316c31217 20035678 Migrate rrdtool from Desktop consolidation to Userland
Yamei Feng <yamei.feng@oracle.com>
parents:
diff changeset
    49
	($(CLONEY) $(SOURCE_DIR) $(@D))
9e7316c31217 20035678 Migrate rrdtool from Desktop consolidation to Userland
Yamei Feng <yamei.feng@oracle.com>
parents:
diff changeset
    50
9e7316c31217 20035678 Migrate rrdtool from Desktop consolidation to Userland
Yamei Feng <yamei.feng@oracle.com>
parents:
diff changeset
    51
COMPONENT_PREP_ACTION = ( cd $(@D); autoconf -f)
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5638
diff changeset
    52
PERLVERDIR=	$(USRDIR)/perl5/$(PERL_VERSION)
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5638
diff changeset
    53
PERLBINDIR=	$(PERLVERDIR)/bin
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5638
diff changeset
    54
PERLLIBDIR=	$(PERLVERDIR)/lib
3960
9e7316c31217 20035678 Migrate rrdtool from Desktop consolidation to Userland
Yamei Feng <yamei.feng@oracle.com>
parents:
diff changeset
    55
4605
62d61ce27a05 20839720 Enable python module in rrdtool
Yamei Feng <yamei.feng@oracle.com>
parents: 4339
diff changeset
    56
CONFIGURE_OPTIONS  += --enable-python
3960
9e7316c31217 20035678 Migrate rrdtool from Desktop consolidation to Userland
Yamei Feng <yamei.feng@oracle.com>
parents:
diff changeset
    57
CONFIGURE_OPTIONS  += --disable-ruby
9e7316c31217 20035678 Migrate rrdtool from Desktop consolidation to Userland
Yamei Feng <yamei.feng@oracle.com>
parents:
diff changeset
    58
CONFIGURE_OPTIONS  += --enable-tcl
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5638
diff changeset
    59
CONFIGURE_OPTIONS  += --disable-static
3960
9e7316c31217 20035678 Migrate rrdtool from Desktop consolidation to Userland
Yamei Feng <yamei.feng@oracle.com>
parents:
diff changeset
    60
CONFIGURE_OPTIONS  +=   CC="$(CC) $(CC_BITS)" 
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5638
diff changeset
    61
CONFIGURE_OPTIONS  +=   POD2MAN=$(PERLBINDIR)/pod2man
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5638
diff changeset
    62
CONFIGURE_OPTIONS  +=   POD2HTML=$(PERLBINDIR)/pod2html
5638
b88b6c00208e 22970244 userland should build with perl 5.22 as the default
Craig Mohrman <craig.mohrman@oracle.com>
parents: 4605
diff changeset
    63
CONFIGURE_OPTIONS  +=   am_cv_python_pythondir=$(PYTHON_VENDOR_PACKAGES)
b88b6c00208e 22970244 userland should build with perl 5.22 as the default
Craig Mohrman <craig.mohrman@oracle.com>
parents: 4605
diff changeset
    64
CONFIGURE_OPTIONS  +=   am_cv_python_pyexecdir=$(PYTHON_VENDOR_PACKAGES)
4605
62d61ce27a05 20839720 Enable python module in rrdtool
Yamei Feng <yamei.feng@oracle.com>
parents: 4339
diff changeset
    65
CONFIGURE_OPTIONS  +=   PYTHON=$(PYTHON.$(PYTHON_VERSION).$(BITS))
3960
9e7316c31217 20035678 Migrate rrdtool from Desktop consolidation to Userland
Yamei Feng <yamei.feng@oracle.com>
parents:
diff changeset
    66
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5638
diff changeset
    67
CONFIGURE_OPTIONS.32 += --disable-perl
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5638
diff changeset
    68
CONFIGURE_OPTIONS.64 += --enable-perl
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5638
diff changeset
    69
CONFIGURE_OPTIONS.64 += LUARRDLIBDIR=64
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5638
diff changeset
    70
CONFIGURE_OPTIONS.64 += PERL=$(PERLBINDIR)/perl
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5638
diff changeset
    71
CONFIGURE_OPTIONS.64 += PERLCC="\"$(CC) $(CC_BITS)\""
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5638
diff changeset
    72
CONFIGURE_OPTIONS.64 += PERLCCFLAGS="\"$(CFLAGS)\""
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5638
diff changeset
    73
CONFIGURE_OPTIONS.64 += PERLLD="\"$(CC) $(CC_BITS)\""
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5638
diff changeset
    74
CONFIGURE_OPTIONS.64 += PERLLIB=$(PERLLIBDIR)
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5638
diff changeset
    75
CONFIGURE_OPTIONS.64 += PERLINSTALLMAN3DIR=$(USRSHAREMAN3DIR)
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5638
diff changeset
    76
CONFIGURE_OPTIONS.64 += PERLINSTALLSITEMAN3DIR=$(USRSHAREMAN3DIR)
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5638
diff changeset
    77
CONFIGURE_OPTIONS.64 += PERLINSTALLVENDORMAN3DIR=$(USRSHAREMAN3DIR)
3960
9e7316c31217 20035678 Migrate rrdtool from Desktop consolidation to Userland
Yamei Feng <yamei.feng@oracle.com>
parents:
diff changeset
    78
4605
62d61ce27a05 20839720 Enable python module in rrdtool
Yamei Feng <yamei.feng@oracle.com>
parents: 4339
diff changeset
    79
PYTHON_ENV  =   CC="$(CC)"
62d61ce27a05 20839720 Enable python module in rrdtool
Yamei Feng <yamei.feng@oracle.com>
parents: 4339
diff changeset
    80
PYTHON_ENV +=   CFLAGS="$(CFLAGS)"
62d61ce27a05 20839720 Enable python module in rrdtool
Yamei Feng <yamei.feng@oracle.com>
parents: 4339
diff changeset
    81
COMPONENT_BUILD_ENV += $(PYTHON_ENV)
62d61ce27a05 20839720 Enable python module in rrdtool
Yamei Feng <yamei.feng@oracle.com>
parents: 4339
diff changeset
    82
COMPONENT_INSTALL_ENV += $(PYTHON_ENV)
62d61ce27a05 20839720 Enable python module in rrdtool
Yamei Feng <yamei.feng@oracle.com>
parents: 4339
diff changeset
    83
62d61ce27a05 20839720 Enable python module in rrdtool
Yamei Feng <yamei.feng@oracle.com>
parents: 4339
diff changeset
    84
PKG_MACROS +=  PYVER=$(PYTHON_VERSION)
62d61ce27a05 20839720 Enable python module in rrdtool
Yamei Feng <yamei.feng@oracle.com>
parents: 4339
diff changeset
    85
PKG_MACROS +=  PYV=$(shell echo $(PYTHON_VERSION) | tr -d .)
62d61ce27a05 20839720 Enable python module in rrdtool
Yamei Feng <yamei.feng@oracle.com>
parents: 4339
diff changeset
    86
3960
9e7316c31217 20035678 Migrate rrdtool from Desktop consolidation to Userland
Yamei Feng <yamei.feng@oracle.com>
parents:
diff changeset
    87
REQUIRED_PACKAGES += image/library/libpng
9e7316c31217 20035678 Migrate rrdtool from Desktop consolidation to Userland
Yamei Feng <yamei.feng@oracle.com>
parents:
diff changeset
    88
REQUIRED_PACKAGES += library/desktop/cairo
9e7316c31217 20035678 Migrate rrdtool from Desktop consolidation to Userland
Yamei Feng <yamei.feng@oracle.com>
parents:
diff changeset
    89
REQUIRED_PACKAGES += library/desktop/pango
9e7316c31217 20035678 Migrate rrdtool from Desktop consolidation to Userland
Yamei Feng <yamei.feng@oracle.com>
parents:
diff changeset
    90
REQUIRED_PACKAGES += library/glib2
9e7316c31217 20035678 Migrate rrdtool from Desktop consolidation to Userland
Yamei Feng <yamei.feng@oracle.com>
parents:
diff changeset
    91
REQUIRED_PACKAGES += library/libxml2
9e7316c31217 20035678 Migrate rrdtool from Desktop consolidation to Userland
Yamei Feng <yamei.feng@oracle.com>
parents:
diff changeset
    92
REQUIRED_PACKAGES += runtime/lua
9e7316c31217 20035678 Migrate rrdtool from Desktop consolidation to Userland
Yamei Feng <yamei.feng@oracle.com>
parents:
diff changeset
    93
REQUIRED_PACKAGES += system/library/math
4605
62d61ce27a05 20839720 Enable python module in rrdtool
Yamei Feng <yamei.feng@oracle.com>
parents: 4339
diff changeset
    94
REQUIRED_PACKAGES += runtime/python-27