|
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) 2011, 2015, Oracle and/or its affiliates. All rights reserved. |
|
24 # |
|
25 |
|
26 include ../../make-rules/shared-macros.mk |
|
27 |
|
28 COMPONENT_NAME= rrdtool |
|
29 COMPONENT_VERSION= 1.4.3 |
|
30 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION) |
|
31 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz |
|
32 COMPONENT_ARCHIVE_HASH= sha256:1aecfba0cb255aef6ae27534825022b83996abec0b7b94576e3b9d061ddf6d73 |
|
33 COMPONENT_ARCHIVE_URL= http://oss.oetiker.ch/rrdtool/pub/$(COMPONENT_ARCHIVE) |
|
34 COMPONENT_PROJECT_URL= http://oss.oetiker.ch/rrdtool/ |
|
35 COMPONENT_BUGDB= utility/rrdtool |
|
36 TPNO= 9344 |
|
37 |
|
38 include ../../make-rules/prep.mk |
|
39 include ../../make-rules/configure.mk |
|
40 include ../../make-rules/ips.mk |
|
41 |
|
42 PATH=$(dir $(CC)):/usr/bin:/usr/sbin:/usr/gnu/bin |
|
43 |
|
44 PERL_VERSION.32 = 5.12 |
|
45 PERL_VERSION.64 = 5.16 |
|
46 PERL_VERSION = $(PERL_VERSION.$(BITS)) |
|
47 |
|
48 COMPONENT_PRE_CONFIGURE_ACTION = \ |
|
49 ($(CLONEY) $(SOURCE_DIR) $(@D)) |
|
50 |
|
51 COMPONENT_PREP_ACTION = ( cd $(@D); autoconf -f) |
|
52 |
|
53 CONFIGURE_OPTIONS += --enable-perl |
|
54 CONFIGURE_OPTIONS += --disable-python |
|
55 CONFIGURE_OPTIONS += --disable-ruby |
|
56 CONFIGURE_OPTIONS += --enable-tcl |
|
57 CONFIGURE_OPTIONS += --enable-static=no |
|
58 CONFIGURE_OPTIONS += CC="$(CC) $(CC_BITS)" |
|
59 CONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)" |
|
60 CONFIGURE_OPTIONS += LDFLAGS="$(LDFLAGS)" |
|
61 CONFIGURE_OPTIONS += PERL=/usr/perl5/$(PERL_VERSION)/bin/perl |
|
62 CONFIGURE_OPTIONS += POD2MAN=/usr/perl5/$(PERL_VERSION)/bin/pod2man |
|
63 CONFIGURE_OPTIONS += POD2HTML=/usr/perl5/$(PERL_VERSION)/bin/pod2html |
|
64 CONFIGURE_OPTIONS += PERLCC="\"$(CC) $(CC_BITS)\"" |
|
65 CONFIGURE_OPTIONS += PERLCCFLAGS="\"$(CFLAGS)\"" |
|
66 CONFIGURE_OPTIONS += PERLLD="\"$(CC) $(CC_BITS)\"" |
|
67 CONFIGURE_OPTIONS += PERLLIB=/usr/perl5/$(PERL_VERSION)/lib |
|
68 CONFIGURE_OPTIONS += PERLINSTALLMAN3DIR=/usr/share/man/man3 |
|
69 CONFIGURE_OPTIONS += PERLINSTALLSITEMAN3DIR=/usr/share/man/man3 |
|
70 CONFIGURE_OPTIONS += PERLINSTALLVENDORMAN3DIR=/usr/share/man/man3 |
|
71 |
|
72 $(CONFIGURE_64): CONFIGURE_OPTIONS += LUARRDLIBDIR=64 |
|
73 |
|
74 PKG_MACROS += P_ARCH=$(shell arch) |
|
75 |
|
76 ASLR_MODE = $(ASLR_ENABLE) |
|
77 |
|
78 # common targets |
|
79 configure: $(CONFIGURE_32_and_64) |
|
80 |
|
81 build: $(BUILD_32_and_64) |
|
82 |
|
83 install: $(INSTALL_32_and_64) |
|
84 |
|
85 test: $(NO_TESTS) |
|
86 |
|
87 BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS) |
|
88 |
|
89 REQUIRED_PACKAGES += image/library/libpng |
|
90 REQUIRED_PACKAGES += library/desktop/cairo |
|
91 REQUIRED_PACKAGES += library/desktop/pango |
|
92 REQUIRED_PACKAGES += library/glib2 |
|
93 REQUIRED_PACKAGES += library/libxml2 |
|
94 REQUIRED_PACKAGES += runtime/lua |
|
95 REQUIRED_PACKAGES += system/library |
|
96 REQUIRED_PACKAGES += system/library/math |