author | Rich Burridge <rich.burridge@oracle.com> |
Thu, 23 Feb 2017 13:46:52 -0800 | |
changeset 7687 | 1093e2a9adbd |
parent 6552 | 402379bc1b60 |
permissions | -rw-r--r-- |
1043
585b09419d1c
PSARC 2012/202 libdnet 1.12
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
1 |
# |
585b09419d1c
PSARC 2012/202 libdnet 1.12
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
2 |
# CDDL HEADER START |
585b09419d1c
PSARC 2012/202 libdnet 1.12
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
3 |
# |
585b09419d1c
PSARC 2012/202 libdnet 1.12
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
4 |
# The contents of this file are subject to the terms of the |
585b09419d1c
PSARC 2012/202 libdnet 1.12
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
5 |
# Common Development and Distribution License (the "License"). |
585b09419d1c
PSARC 2012/202 libdnet 1.12
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
6 |
# You may not use this file except in compliance with the License. |
585b09419d1c
PSARC 2012/202 libdnet 1.12
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
7 |
# |
585b09419d1c
PSARC 2012/202 libdnet 1.12
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
8 |
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE |
585b09419d1c
PSARC 2012/202 libdnet 1.12
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
9 |
# or http://www.opensolaris.org/os/licensing. |
585b09419d1c
PSARC 2012/202 libdnet 1.12
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
10 |
# See the License for the specific language governing permissions |
585b09419d1c
PSARC 2012/202 libdnet 1.12
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
11 |
# and limitations under the License. |
585b09419d1c
PSARC 2012/202 libdnet 1.12
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
12 |
# |
585b09419d1c
PSARC 2012/202 libdnet 1.12
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
13 |
# When distributing Covered Code, include this CDDL HEADER in each |
585b09419d1c
PSARC 2012/202 libdnet 1.12
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
14 |
# file and include the License file at usr/src/OPENSOLARIS.LICENSE. |
585b09419d1c
PSARC 2012/202 libdnet 1.12
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
15 |
# If applicable, add the following below this CDDL HEADER, with the |
585b09419d1c
PSARC 2012/202 libdnet 1.12
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
16 |
# fields enclosed by brackets "[]" replaced with your own identifying |
585b09419d1c
PSARC 2012/202 libdnet 1.12
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
17 |
# information: Portions Copyright [yyyy] [name of copyright owner] |
585b09419d1c
PSARC 2012/202 libdnet 1.12
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
18 |
# |
585b09419d1c
PSARC 2012/202 libdnet 1.12
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
19 |
# CDDL HEADER END |
585b09419d1c
PSARC 2012/202 libdnet 1.12
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
20 |
# |
5682
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
4762
diff
changeset
|
21 |
|
1043
585b09419d1c
PSARC 2012/202 libdnet 1.12
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
22 |
# |
7687
1093e2a9adbd
25590368 Userland components should include "upstream" release tracking information
Rich Burridge <rich.burridge@oracle.com>
parents:
6552
diff
changeset
|
23 |
# Copyright (c) 2012, 2017, Oracle and/or its affiliates. All rights reserved. |
5682
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
4762
diff
changeset
|
24 |
# |
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
4762
diff
changeset
|
25 |
BUILD_BITS= 64_and_32 |
1043
585b09419d1c
PSARC 2012/202 libdnet 1.12
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
26 |
include ../../make-rules/shared-macros.mk |
585b09419d1c
PSARC 2012/202 libdnet 1.12
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
27 |
|
5682
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
4762
diff
changeset
|
28 |
PATH=$(SPRO_VROOT)/bin:$(USRBINDIR):$(GNUBIN) |
4342
ede611c77414
21105889 build python dnet module
Rich Burridge <rich.burridge@oracle.com>
parents:
4339
diff
changeset
|
29 |
|
1043
585b09419d1c
PSARC 2012/202 libdnet 1.12
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
30 |
COMPONENT_NAME= libdnet |
585b09419d1c
PSARC 2012/202 libdnet 1.12
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
31 |
COMPONENT_VERSION= 1.12 |
585b09419d1c
PSARC 2012/202 libdnet 1.12
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
32 |
COMPONENT_PROJECT_URL= http://code.google.com/p/libdnet/ |
585b09419d1c
PSARC 2012/202 libdnet 1.12
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
33 |
COMPONENT_ARCHIVE= $(COMPONENT_SRC).tgz |
585b09419d1c
PSARC 2012/202 libdnet 1.12
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
34 |
COMPONENT_ARCHIVE_HASH= \ |
585b09419d1c
PSARC 2012/202 libdnet 1.12
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
35 |
sha256:83b33039787cf99990e977cef7f18a5d5e7aaffc4505548a83d31bd3515eb026 |
585b09419d1c
PSARC 2012/202 libdnet 1.12
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
36 |
COMPONENT_ARCHIVE_URL= http://libdnet.googlecode.com/files/$(COMPONENT_ARCHIVE) |
1058
34d7aaa03423
15886624 Auto-generation of Userland gate list - Phase 3
Rich Burridge <rich.burridge@oracle.com>
parents:
1043
diff
changeset
|
37 |
COMPONENT_BUGDB= library/libdnet |
7687
1093e2a9adbd
25590368 Userland components should include "upstream" release tracking information
Rich Burridge <rich.burridge@oracle.com>
parents:
6552
diff
changeset
|
38 |
COMPONENT_ANITYA_ID= 6308 |
1043
585b09419d1c
PSARC 2012/202 libdnet 1.12
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
39 |
|
1948
2d1537e7942d
18978320 Userland components should specify TPNOs in Makefiles instead of pkg manifests
John Beck <John.Beck@Oracle.COM>
parents:
1191
diff
changeset
|
40 |
TPNO= 9402 |
2d1537e7942d
18978320 Userland components should specify TPNOs in Makefiles instead of pkg manifests
John Beck <John.Beck@Oracle.COM>
parents:
1191
diff
changeset
|
41 |
|
5682
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
4762
diff
changeset
|
42 |
TEST_TARGET= install $(TEST_32_and_64) |
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
4762
diff
changeset
|
43 |
SYSTEM_TEST_TARGET= configure $(SYSTEM_TEST_32_and_64) |
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
4762
diff
changeset
|
44 |
include $(WS_MAKE_RULES)/common.mk |
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
4762
diff
changeset
|
45 |
|
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
4762
diff
changeset
|
46 |
# Fix 64-bit linking done via compiler. |
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
4762
diff
changeset
|
47 |
LDFLAGS += $(CC_BITS) |
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
4762
diff
changeset
|
48 |
COMPONENT_BUILD_ENV += CFLAGS="$(CFLAGS)" |
1043
585b09419d1c
PSARC 2012/202 libdnet 1.12
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
49 |
|
585b09419d1c
PSARC 2012/202 libdnet 1.12
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
50 |
# Needed to generate libraries with a .so extension. |
585b09419d1c
PSARC 2012/202 libdnet 1.12
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
51 |
COMPONENT_PREP_ACTION = \ |
585b09419d1c
PSARC 2012/202 libdnet 1.12
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
52 |
(cd $(@D) ; libtoolize --automake --copy ; \ |
585b09419d1c
PSARC 2012/202 libdnet 1.12
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
53 |
aclocal -I config ; \ |
585b09419d1c
PSARC 2012/202 libdnet 1.12
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
54 |
autoheader ; \ |
585b09419d1c
PSARC 2012/202 libdnet 1.12
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
55 |
automake --add-missing --copy ; \ |
585b09419d1c
PSARC 2012/202 libdnet 1.12
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
56 |
autoconf) |
585b09419d1c
PSARC 2012/202 libdnet 1.12
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
57 |
|
585b09419d1c
PSARC 2012/202 libdnet 1.12
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
58 |
# Remove Linux specific functionality. |
585b09419d1c
PSARC 2012/202 libdnet 1.12
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
59 |
CONFIGURE_OPTIONS += ac_cv_dnet_linux_pf_packet=no |
585b09419d1c
PSARC 2012/202 libdnet 1.12
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
60 |
|
4291
402cc6853ea3
19866378 Can enable gmake check in libdnet when check is checked in
Rich Burridge <rich.burridge@oracle.com>
parents:
3817
diff
changeset
|
61 |
CONFIGURE_OPTIONS += --with-check=/usr |
402cc6853ea3
19866378 Can enable gmake check in libdnet when check is checked in
Rich Burridge <rich.burridge@oracle.com>
parents:
3817
diff
changeset
|
62 |
|
4342
ede611c77414
21105889 build python dnet module
Rich Burridge <rich.burridge@oracle.com>
parents:
4339
diff
changeset
|
63 |
# Currently only support for Python 2.7. |
ede611c77414
21105889 build python dnet module
Rich Burridge <rich.burridge@oracle.com>
parents:
4339
diff
changeset
|
64 |
CONFIGURE_OPTIONS += --with-python |
ede611c77414
21105889 build python dnet module
Rich Burridge <rich.burridge@oracle.com>
parents:
4339
diff
changeset
|
65 |
|
ede611c77414
21105889 build python dnet module
Rich Burridge <rich.burridge@oracle.com>
parents:
4339
diff
changeset
|
66 |
PKG_MACROS += MACHINE=$(shell uname -m) |
ede611c77414
21105889 build python dnet module
Rich Burridge <rich.burridge@oracle.com>
parents:
4339
diff
changeset
|
67 |
|
4291
402cc6853ea3
19866378 Can enable gmake check in libdnet when check is checked in
Rich Burridge <rich.burridge@oracle.com>
parents:
3817
diff
changeset
|
68 |
# Needed for "gmake test" to work successfully. |
402cc6853ea3
19866378 Can enable gmake check in libdnet when check is checked in
Rich Burridge <rich.burridge@oracle.com>
parents:
3817
diff
changeset
|
69 |
# If SHELLOPTS is exported (as it is by the userland makefiles), |
402cc6853ea3
19866378 Can enable gmake check in libdnet when check is checked in
Rich Burridge <rich.burridge@oracle.com>
parents:
3817
diff
changeset
|
70 |
# then all shell options get exported to child invocations of bash, |
402cc6853ea3
19866378 Can enable gmake check in libdnet when check is checked in
Rich Burridge <rich.burridge@oracle.com>
parents:
3817
diff
changeset
|
71 |
# which results in test failures due to nounset and xtrace being |
402cc6853ea3
19866378 Can enable gmake check in libdnet when check is checked in
Rich Burridge <rich.burridge@oracle.com>
parents:
3817
diff
changeset
|
72 |
# set unexpectedly, and errors such as "$1: unbound variable" and |
402cc6853ea3
19866378 Can enable gmake check in libdnet when check is checked in
Rich Burridge <rich.burridge@oracle.com>
parents:
3817
diff
changeset
|
73 |
# diffs failing due to script tracing in output files. |
402cc6853ea3
19866378 Can enable gmake check in libdnet when check is checked in
Rich Burridge <rich.burridge@oracle.com>
parents:
3817
diff
changeset
|
74 |
unexport SHELLOPTS |
402cc6853ea3
19866378 Can enable gmake check in libdnet when check is checked in
Rich Burridge <rich.burridge@oracle.com>
parents:
3817
diff
changeset
|
75 |
|
402cc6853ea3
19866378 Can enable gmake check in libdnet when check is checked in
Rich Burridge <rich.burridge@oracle.com>
parents:
3817
diff
changeset
|
76 |
COMPONENT_TEST_DIR = $(@D)/test/check |
402cc6853ea3
19866378 Can enable gmake check in libdnet when check is checked in
Rich Burridge <rich.burridge@oracle.com>
parents:
3817
diff
changeset
|
77 |
|
402cc6853ea3
19866378 Can enable gmake check in libdnet when check is checked in
Rich Burridge <rich.burridge@oracle.com>
parents:
3817
diff
changeset
|
78 |
COMPONENT_TEST_MASTER = $(COMPONENT_TEST_RESULTS_DIR)/results-all.master |
1043
585b09419d1c
PSARC 2012/202 libdnet 1.12
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
79 |
|
4762
4d5e4d2893b8
21606619 Yet even more Userland components should hook up their system tests
Rich Burridge <rich.burridge@oracle.com>
parents:
4342
diff
changeset
|
80 |
COMPONENT_TEST_TRANSFORMS += \ |
4d5e4d2893b8
21606619 Yet even more Userland components should hook up their system tests
Rich Burridge <rich.burridge@oracle.com>
parents:
4342
diff
changeset
|
81 |
'-n ' \ |
4d5e4d2893b8
21606619 Yet even more Userland components should hook up their system tests
Rich Burridge <rich.burridge@oracle.com>
parents:
4342
diff
changeset
|
82 |
'-e "/TOTAL/p" ' \ |
4d5e4d2893b8
21606619 Yet even more Userland components should hook up their system tests
Rich Burridge <rich.burridge@oracle.com>
parents:
4342
diff
changeset
|
83 |
'-e "/SKIP/p" ' \ |
4d5e4d2893b8
21606619 Yet even more Userland components should hook up their system tests
Rich Burridge <rich.burridge@oracle.com>
parents:
4342
diff
changeset
|
84 |
'-e "/PASS/p" ' \ |
4d5e4d2893b8
21606619 Yet even more Userland components should hook up their system tests
Rich Burridge <rich.burridge@oracle.com>
parents:
4342
diff
changeset
|
85 |
'-e "/FAIL/p" ' \ |
4d5e4d2893b8
21606619 Yet even more Userland components should hook up their system tests
Rich Burridge <rich.burridge@oracle.com>
parents:
4342
diff
changeset
|
86 |
'-e "/ERROR/p" ' |
4d5e4d2893b8
21606619 Yet even more Userland components should hook up their system tests
Rich Burridge <rich.burridge@oracle.com>
parents:
4342
diff
changeset
|
87 |
|
4d5e4d2893b8
21606619 Yet even more Userland components should hook up their system tests
Rich Burridge <rich.burridge@oracle.com>
parents:
4342
diff
changeset
|
88 |
# Needed to build the test programs. |
4d5e4d2893b8
21606619 Yet even more Userland components should hook up their system tests
Rich Burridge <rich.burridge@oracle.com>
parents:
4342
diff
changeset
|
89 |
COMPONENT_PRE_SYSTEM_TEST_ACTION += \ |
4d5e4d2893b8
21606619 Yet even more Userland components should hook up their system tests
Rich Burridge <rich.burridge@oracle.com>
parents:
4342
diff
changeset
|
90 |
(cd $(@D)/src ; $(GMAKE) libdnet.la ) |
4d5e4d2893b8
21606619 Yet even more Userland components should hook up their system tests
Rich Burridge <rich.burridge@oracle.com>
parents:
4342
diff
changeset
|
91 |
|
4d5e4d2893b8
21606619 Yet even more Userland components should hook up their system tests
Rich Burridge <rich.burridge@oracle.com>
parents:
4342
diff
changeset
|
92 |
COMPONENT_SYSTEM_TEST_DIR = $(@D)/test/check |
4d5e4d2893b8
21606619 Yet even more Userland components should hook up their system tests
Rich Burridge <rich.burridge@oracle.com>
parents:
4342
diff
changeset
|
93 |
|
4d5e4d2893b8
21606619 Yet even more Userland components should hook up their system tests
Rich Burridge <rich.burridge@oracle.com>
parents:
4342
diff
changeset
|
94 |
# Get correct libdnet.so.1 from the proto area. |
4d5e4d2893b8
21606619 Yet even more Userland components should hook up their system tests
Rich Burridge <rich.burridge@oracle.com>
parents:
4342
diff
changeset
|
95 |
TEST_LIBPATH.32 = $(PROTOUSRLIBDIR) |
4d5e4d2893b8
21606619 Yet even more Userland components should hook up their system tests
Rich Burridge <rich.burridge@oracle.com>
parents:
4342
diff
changeset
|
96 |
TEST_LIBPATH.64 = $(PROTOUSRLIBDIR64) |
4d5e4d2893b8
21606619 Yet even more Userland components should hook up their system tests
Rich Burridge <rich.burridge@oracle.com>
parents:
4342
diff
changeset
|
97 |
COMPONENT_TEST_ENV += LD_LIBRARY_PATH=$(TEST_LIBPATH.$(BITS)) |
4d5e4d2893b8
21606619 Yet even more Userland components should hook up their system tests
Rich Burridge <rich.burridge@oracle.com>
parents:
4342
diff
changeset
|
98 |
|
4291
402cc6853ea3
19866378 Can enable gmake check in libdnet when check is checked in
Rich Burridge <rich.burridge@oracle.com>
parents:
3817
diff
changeset
|
99 |
REQUIRED_PACKAGES += developer/test/check |
4342
ede611c77414
21105889 build python dnet module
Rich Burridge <rich.burridge@oracle.com>
parents:
4339
diff
changeset
|
100 |
REQUIRED_PACKAGES += runtime/python-27 |
3817
30b42c38bbc4
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
2225
diff
changeset
|
101 |
REQUIRED_PACKAGES += shell/ksh93 |