justmake.mk: convert to use common-rules.mk
[oi-userland.git] / components / archiver / unrar / Makefile
blobd39e2edf5062cafb410eed05185d454191e5117c
2 # CDDL HEADER START
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.
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.
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]
19 # CDDL HEADER END
23 # Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved.
24 # Copyright (c) 2018, Michal Nowak
26 BUILD_STYLE= justmake
27 include ../../../make-rules/shared-macros.mk
29 COMPONENT_NAME= unrar
30 COMPONENT_VERSION= 6.2.12
31 COMPONENT_REVISION= 1
32 COMPONENT_SUMMARY= Rar archives extractor utility
33 COMPONENT_SRC= $(COMPONENT_NAME)
34 COMPONENT_PROJECT_URL= https://www.rarlabs.com/rar_add.htm
35 COMPONENT_ARCHIVE= $(COMPONENT_NAME)src-$(COMPONENT_VERSION).tar.gz
36 COMPONENT_ARCHIVE_HASH= sha256:a008b5f949bca9bb4ffa1bebbfc8b3c14b89df10a10354809b845232d5f582e5
37 COMPONENT_ARCHIVE_URL= https://www.rarlab.com/rar/$(COMPONENT_ARCHIVE)
38 COMPONENT_FMRI= archiver/unrar
39 COMPONENT_CLASSIFICATION= Applications/System Utilities
40 COMPONENT_LICENSE= UnRAR
42 TEST_TARGET= $(NO_TESTS)
43 include $(WS_MAKE_RULES)/common.mk
45 PATH= $(PATH.gnu)
47 PKG_PROTO_DIRS = $(MANGLED_DIR)
48 PKG_PROTO_DIRS += $(BUILD_DIR_64)
49 PKG_PROTO_DIRS += $(COMPONENT_DIR)
51 # Needed by .../unrar/os.hpp to correctly define platform endianness.
52 CXXFLAGS.i386 = -DLITTLE_ENDIAN
53 CXXFLAGS.sparc = -DBIG_ENDIAN
54 CXXFLAGS += $(CXXFLAGS.$(MACH))
55 COMPONENT_BUILD_ENV += CXX="$(CXX)"
56 COMPONENT_BUILD_ENV += CXXFLAGS="$(CXXFLAGS)"
57 COMPONENT_BUILD_ENV += LDFLAGS="$(LDFLAGS)"
58 COMPONENT_BUILD_ENV += DEFINES="$(CPP_LARGEFILES)"
60 COMPONENT_BUILD_ARGS += STRIP="/bin/true"
62 # Auto-generated dependencies
63 REQUIRED_PACKAGES += $(GCC_RUNTIME_PKG)
64 REQUIRED_PACKAGES += $(GXX_RUNTIME_PKG)
65 REQUIRED_PACKAGES += system/library