18 # |
18 # |
19 # CDDL HEADER END |
19 # CDDL HEADER END |
20 # |
20 # |
21 |
21 |
22 # |
22 # |
23 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved. |
23 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved. |
24 # |
24 # |
25 |
25 BUILD_BITS= 64 |
26 include ../../make-rules/shared-macros.mk |
26 include ../../make-rules/shared-macros.mk |
27 |
27 |
28 PATH=$(SPRO_VROOT)/bin:/usr/bin:/usr/gnu/bin:/usr/sbin |
28 PATH=$(SPRO_VROOT)/bin:$(USRBINDIR):$(GNUBIN):$(USRSBINDIR) |
29 |
29 |
30 COMPONENT_NAME= unrar |
30 COMPONENT_NAME= unrar |
31 COMPONENT_VERSION= 4.2.4 |
31 COMPONENT_VERSION= 4.2.4 |
32 COMPONENT_SRC= $(COMPONENT_NAME) |
32 COMPONENT_SRC= $(COMPONENT_NAME) |
33 COMPONENT_PROJECT_URL= http://www.rarlabs.com/rar_add.htm |
33 COMPONENT_PROJECT_URL= http://www.rarlabs.com/rar_add.htm |
34 COMPONENT_ARCHIVE= $(COMPONENT_NAME)src-$(COMPONENT_VERSION).tar.gz |
34 COMPONENT_ARCHIVE= $(COMPONENT_NAME)src-$(COMPONENT_VERSION).tar.gz |
35 COMPONENT_ARCHIVE_HASH= \ |
35 COMPONENT_ARCHIVE_HASH= \ |
36 sha256:9432bf798e5f7123f3060f37b75b7c07f36f0091305f46473dcae9154f8cd686 |
36 sha256:9432bf798e5f7123f3060f37b75b7c07f36f0091305f46473dcae9154f8cd686 |
37 COMPONENT_ARCHIVE_URL= http://www.rarlab.com/rar/$(COMPONENT_ARCHIVE) |
37 COMPONENT_ARCHIVE_URL= http://www.rarlab.com/rar/$(COMPONENT_ARCHIVE) |
38 COMPONENT_BUGDB= utility/unrar |
|
39 |
38 |
40 TPNO= 18537 |
39 TPNO= 18537 |
41 |
40 |
42 include $(WS_MAKE_RULES)/prep.mk |
|
43 include $(WS_MAKE_RULES)/justmake.mk |
|
44 |
|
45 # We need this before the default PKG_PROTO_DIRS, so set it before we include |
41 # We need this before the default PKG_PROTO_DIRS, so set it before we include |
46 # ips.mk, which will append the default set. |
42 # common.mk, which will append the default set. |
47 PKG_PROTO_DIRS = $(BUILD_DIR_64) |
43 PKG_PROTO_DIRS = $(BUILD_DIR_64) |
48 |
44 |
49 include $(WS_MAKE_RULES)/ips.mk |
45 BUILD_STYLE= justmake |
|
46 INSTALL_TARGET= build |
|
47 TEST_TARGET= $(NO_TESTS) |
|
48 include $(WS_MAKE_RULES)/common.mk |
50 |
49 |
51 PATCH_LEVEL = 0 |
50 PATCH_LEVEL = 0 |
52 |
|
53 |
51 |
54 # Needed by .../unrar/os.hpp to correctly define platform endianness. |
52 # Needed by .../unrar/os.hpp to correctly define platform endianness. |
55 CXXFLAGS.i386 = -DLITTLE_ENDIAN |
53 CXXFLAGS.i386 = -DLITTLE_ENDIAN |
56 CXXFLAGS.sparc = -DBIG_ENDIAN |
54 CXXFLAGS.sparc = -DBIG_ENDIAN |
57 CXXFLAGS += $(CXXFLAGS.$(MACH)) |
55 CXXFLAGS.studio += "-erroff=wvarhidemem" |
58 CXXFLAGS += "-erroff=wvarhidemem" |
56 |
59 COMPONENT_BUILD_ENV += CXX="$(CXX)" |
57 LDFLAGS += $(CC_BITS) $(studio_NORUNPATH) |
60 COMPONENT_BUILD_ENV += CXXFLAGS="$(CXXFLAGS)" |
58 |
61 COMPONENT_BUILD_ENV += LDFLAGS="$(studio_NORUNPATH) -m64" |
|
62 COMPONENT_BUILD_ENV += DEFINES="$(CPP_LARGEFILES)" |
59 COMPONENT_BUILD_ENV += DEFINES="$(CPP_LARGEFILES)" |
63 |
60 |
64 COMPONENT_BUILD_ARGS += -f makefile.unix |
61 COMPONENT_BUILD_ARGS += -f makefile.unix |
65 COMPONENT_BUILD_ARGS += STRIP="/bin/true" |
62 COMPONENT_BUILD_ARGS += STRIP="/bin/true" |
66 |
63 |
67 ASLR_MODE = $(ASLR_ENABLE) |
|
68 |
|
69 # common targets |
|
70 build: $(BUILD_64) |
|
71 |
|
72 install: $(BUILD_64) |
|
73 |
|
74 test: $(NO_TESTS) |
|
75 |
|
76 system-test: $(NO_TESTS) |
|
77 |
|
78 REQUIRED_PACKAGES += system/library |
|
79 REQUIRED_PACKAGES += system/library/c++-runtime |
64 REQUIRED_PACKAGES += system/library/c++-runtime |
80 REQUIRED_PACKAGES += system/library/math |
65 REQUIRED_PACKAGES += system/library/math |