author | Stephen Gaul Jr <steve.gaul@oracle.com> |
Fri, 24 Jun 2016 11:30:54 -0700 | |
changeset 6279 | b8986042dd84 |
parent 5682 | 94c0ca64c022 |
child 7687 | 1093e2a9adbd |
permissions | -rw-r--r-- |
1318 | 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 |
|
5682
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5670
diff
changeset
|
20 |
# |
5670
0a64c2dc45bc
22961314 Update pixz to version 1.0.6
Rich Burridge <rich.burridge@oracle.com>
parents:
4913
diff
changeset
|
21 |
|
1318 | 22 |
# |
5670
0a64c2dc45bc
22961314 Update pixz to version 1.0.6
Rich Burridge <rich.burridge@oracle.com>
parents:
4913
diff
changeset
|
23 |
# Copyright (c) 2012, 2016, Oracle and/or its affiliates. All rights reserved. |
1318 | 24 |
# |
5682
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5670
diff
changeset
|
25 |
BUILD_BITS= 64 |
1318 | 26 |
include ../../make-rules/shared-macros.mk |
27 |
||
28 |
COMPONENT_NAME= pixz |
|
5670
0a64c2dc45bc
22961314 Update pixz to version 1.0.6
Rich Burridge <rich.burridge@oracle.com>
parents:
4913
diff
changeset
|
29 |
COMPONENT_VERSION= 1.0.6 |
1318 | 30 |
COMPONENT_PROJECT_URL= http://github.com/vasi/pixz/ |
31 |
COMPONENT_ARCHIVE_HASH= \ |
|
5670
0a64c2dc45bc
22961314 Update pixz to version 1.0.6
Rich Burridge <rich.burridge@oracle.com>
parents:
4913
diff
changeset
|
32 |
sha256:c54a406dddc6c2226779aeb4b5d5b5649c1d3787b39794fbae218f7535a1af63 |
0a64c2dc45bc
22961314 Update pixz to version 1.0.6
Rich Burridge <rich.burridge@oracle.com>
parents:
4913
diff
changeset
|
33 |
COMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)releases/download/v$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE) |
1318 | 34 |
|
5670
0a64c2dc45bc
22961314 Update pixz to version 1.0.6
Rich Burridge <rich.burridge@oracle.com>
parents:
4913
diff
changeset
|
35 |
TPNO= 27449 |
1948
2d1537e7942d
18978320 Userland components should specify TPNOs in Makefiles instead of pkg manifests
John Beck <John.Beck@Oracle.COM>
parents:
1318
diff
changeset
|
36 |
|
5682
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5670
diff
changeset
|
37 |
SYSTEM_TEST_TARGET= build $(SYSTEM_TEST_64) |
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5670
diff
changeset
|
38 |
include $(WS_MAKE_RULES)/common.mk |
1318 | 39 |
|
40 |
PKG_PROTO_DIRS += $(BUILD_DIR_64) |
|
41 |
||
5670
0a64c2dc45bc
22961314 Update pixz to version 1.0.6
Rich Burridge <rich.burridge@oracle.com>
parents:
4913
diff
changeset
|
42 |
# Needed to make the tests work, now we use configure.mk not justmake.mk. |
0a64c2dc45bc
22961314 Update pixz to version 1.0.6
Rich Burridge <rich.burridge@oracle.com>
parents:
4913
diff
changeset
|
43 |
COMPONENT_PRE_CONFIGURE_ACTION = ($(CLONEY) $(SOURCE_DIR) $(@D)) |
0a64c2dc45bc
22961314 Update pixz to version 1.0.6
Rich Burridge <rich.burridge@oracle.com>
parents:
4913
diff
changeset
|
44 |
|
1318 | 45 |
# Userland default includes -mt which links with libthread which we don't need. |
46 |
studio_MT = |
|
47 |
||
5670
0a64c2dc45bc
22961314 Update pixz to version 1.0.6
Rich Burridge <rich.burridge@oracle.com>
parents:
4913
diff
changeset
|
48 |
# pixz's src/Makefile hard-codes some gcc-only flags in pixz_CFLAGS. |
0a64c2dc45bc
22961314 Update pixz to version 1.0.6
Rich Burridge <rich.burridge@oracle.com>
parents:
4913
diff
changeset
|
49 |
# Here we exclude the gcc-only parts, so we can build with Studio. |
0a64c2dc45bc
22961314 Update pixz to version 1.0.6
Rich Burridge <rich.burridge@oracle.com>
parents:
4913
diff
changeset
|
50 |
# PTHREAD_CFLAGS is defined in the pixz .../src/Makefile. |
1318 | 51 |
COMPONENT_BUILD_ARGS += CC="$(CC)" |
5670
0a64c2dc45bc
22961314 Update pixz to version 1.0.6
Rich Burridge <rich.burridge@oracle.com>
parents:
4913
diff
changeset
|
52 |
COMPONENT_BUILD_ARGS += pixz_CFLAGS="$(PTHREAD_CFLAGS)" |
1318 | 53 |
COMPONENT_BUILD_ARGS += CFLAGS="$(CFLAGS)" |
54 |
COMPONENT_BUILD_ARGS += LDFLAGS="$(CC_BITS)" |
|
55 |
||
4913
99fb83e21e09
19841305 Some pixz tests can be hooked up.
Rich Burridge <rich.burridge@oracle.com>
parents:
4339
diff
changeset
|
56 |
# Create a small testball to use with the test script. |
99fb83e21e09
19841305 Some pixz tests can be hooked up.
Rich Burridge <rich.burridge@oracle.com>
parents:
4339
diff
changeset
|
57 |
COMPONENT_PRE_TEST_ACTION = \ |
5670
0a64c2dc45bc
22961314 Update pixz to version 1.0.6
Rich Burridge <rich.burridge@oracle.com>
parents:
4913
diff
changeset
|
58 |
(cd $(@D)/src; tar cvf pixz-test-tarball.tar *.c *.o) |
4913
99fb83e21e09
19841305 Some pixz tests can be hooked up.
Rich Burridge <rich.burridge@oracle.com>
parents:
4339
diff
changeset
|
59 |
COMPONENT_PRE_SYSTEM_TEST_ACTION = \ |
5670
0a64c2dc45bc
22961314 Update pixz to version 1.0.6
Rich Burridge <rich.burridge@oracle.com>
parents:
4913
diff
changeset
|
60 |
(cd $(@D)/src; tar cvf pixz-test-tarball.tar *.c *.o) |
4913
99fb83e21e09
19841305 Some pixz tests can be hooked up.
Rich Burridge <rich.burridge@oracle.com>
parents:
4339
diff
changeset
|
61 |
|
99fb83e21e09
19841305 Some pixz tests can be hooked up.
Rich Burridge <rich.burridge@oracle.com>
parents:
4339
diff
changeset
|
62 |
COMPONENT_TEST_TRANSFORMS += \ |
99fb83e21e09
19841305 Some pixz tests can be hooked up.
Rich Burridge <rich.burridge@oracle.com>
parents:
4339
diff
changeset
|
63 |
'-e "/^real/d" ' \ |
99fb83e21e09
19841305 Some pixz tests can be hooked up.
Rich Burridge <rich.burridge@oracle.com>
parents:
4339
diff
changeset
|
64 |
'-e "/^user/d" ' \ |
99fb83e21e09
19841305 Some pixz tests can be hooked up.
Rich Burridge <rich.burridge@oracle.com>
parents:
4339
diff
changeset
|
65 |
'-e "/^sys/d" ' |
99fb83e21e09
19841305 Some pixz tests can be hooked up.
Rich Burridge <rich.burridge@oracle.com>
parents:
4339
diff
changeset
|
66 |
|
99fb83e21e09
19841305 Some pixz tests can be hooked up.
Rich Burridge <rich.burridge@oracle.com>
parents:
4339
diff
changeset
|
67 |
COMPONENT_TEST_ENV = PATH=$(GNUBIN):$(PATH) |
99fb83e21e09
19841305 Some pixz tests can be hooked up.
Rich Burridge <rich.burridge@oracle.com>
parents:
4339
diff
changeset
|
68 |
COMPONENT_TEST_CMD = $(SOURCE_DIR)/test.sh |
5670
0a64c2dc45bc
22961314 Update pixz to version 1.0.6
Rich Burridge <rich.burridge@oracle.com>
parents:
4913
diff
changeset
|
69 |
COMPONENT_TEST_ARGS = src/pixz-test-tarball.tar pixz.c |
4913
99fb83e21e09
19841305 Some pixz tests can be hooked up.
Rich Burridge <rich.burridge@oracle.com>
parents:
4339
diff
changeset
|
70 |
COMPONENT_TEST_TARGETS = |
99fb83e21e09
19841305 Some pixz tests can be hooked up.
Rich Burridge <rich.burridge@oracle.com>
parents:
4339
diff
changeset
|
71 |
|
99fb83e21e09
19841305 Some pixz tests can be hooked up.
Rich Burridge <rich.burridge@oracle.com>
parents:
4339
diff
changeset
|
72 |
COMPONENT_SYSTEM_TEST_ENV = PATH=$(GNUBIN):$(PATH) |
5682
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5670
diff
changeset
|
73 |
COMPONENT_SYSTEM_TEST_ENV += PIXZ_BIN=$(USRBINDIR)/pixz |
4913
99fb83e21e09
19841305 Some pixz tests can be hooked up.
Rich Burridge <rich.burridge@oracle.com>
parents:
4339
diff
changeset
|
74 |
COMPONENT_SYSTEM_TEST_CMD = $(SOURCE_DIR)/test.sh |
5670
0a64c2dc45bc
22961314 Update pixz to version 1.0.6
Rich Burridge <rich.burridge@oracle.com>
parents:
4913
diff
changeset
|
75 |
COMPONENT_SYSTEM_TEST_ARGS = src/pixz-test-tarball.tar pixz.c |
4913
99fb83e21e09
19841305 Some pixz tests can be hooked up.
Rich Burridge <rich.burridge@oracle.com>
parents:
4339
diff
changeset
|
76 |
COMPONENT_SYSTEM_TEST_TARGETS = |
99fb83e21e09
19841305 Some pixz tests can be hooked up.
Rich Burridge <rich.burridge@oracle.com>
parents:
4339
diff
changeset
|
77 |
|
3817
30b42c38bbc4
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
1948
diff
changeset
|
78 |
REQUIRED_PACKAGES += compress/xz |
30b42c38bbc4
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
1948
diff
changeset
|
79 |
REQUIRED_PACKAGES += library/libarchive |
5670
0a64c2dc45bc
22961314 Update pixz to version 1.0.6
Rich Burridge <rich.burridge@oracle.com>
parents:
4913
diff
changeset
|
80 |
REQUIRED_PACKAGES += system/library/math |