components/p7zip/Makefile
changeset 5682 94c0ca64c022
parent 4339 6501cf9c29f9
child 5923 125ce0e23ed8
equal deleted inserted replaced
5681:b8fe51f35344 5682:94c0ca64c022
    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
       
    29 ifeq   ($(strip $(PARFAIT_BUILD)),yes)
    28 ifeq   ($(strip $(PARFAIT_BUILD)),yes)
    30 PATH=$(PARFAIT_TOOLS):$(SPRO_VROOT)/bin:/usr/bin
    29 PATH=$(PARFAIT_TOOLS):$(SPRO_VROOT)/bin:$(USRBINDIR)
       
    30 else
       
    31 PATH=$(SPRO_VROOT)/bin:$(USRBINDIR):$(GNUBIN)
    31 endif
    32 endif
    32 
    33 
    33 COMPONENT_NAME=		p7zip
    34 COMPONENT_NAME=		p7zip
    34 COMPONENT_VERSION=	9.20.1
    35 COMPONENT_VERSION=	9.20.1
    35 COMPONENT_PROJECT_URL=	http://p7zip.sourceforge.net/
    36 COMPONENT_PROJECT_URL=	http://p7zip.sourceforge.net/
    36 COMPONENT_SRC=		$(COMPONENT_NAME)_$(COMPONENT_VERSION)
    37 COMPONENT_SRC=		$(COMPONENT_NAME)_$(COMPONENT_VERSION)
    37 COMPONENT_ARCHIVE=	$(COMPONENT_SRC)_src_all.tar.bz2
    38 COMPONENT_ARCHIVE=	$(COMPONENT_SRC)_src_all.tar.bz2
    38 COMPONENT_ARCHIVE_HASH=	\
    39 COMPONENT_ARCHIVE_HASH=	\
    39     sha256:49557e7ffca08100f9fc687f4dfc5aea703ca207640c76d9dee7b66f03cb4782
    40     sha256:49557e7ffca08100f9fc687f4dfc5aea703ca207640c76d9dee7b66f03cb4782
    40 COMPONENT_ARCHIVE_URL=	http://downloads.sourceforge.net/project/p7zip/p7zip/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)
    41 COMPONENT_ARCHIVE_URL=	http://downloads.sourceforge.net/project/p7zip/p7zip/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)
    41 COMPONENT_BUGDB=	utility/p7zip
       
    42 
    42 
    43 TPNO=			20368
    43 TPNO=			20368
    44 
    44 
    45 include $(WS_MAKE_RULES)/prep.mk
    45 BUILD_STYLE= justmake
    46 include $(WS_MAKE_RULES)/justmake.mk
    46 INSTALL_TARGET=
    47 include $(WS_MAKE_RULES)/ips.mk
    47 include $(WS_MAKE_RULES)/common.mk
    48 
    48 
    49 # the tests fail horribly with -Bdirect
    49 # the tests fail horribly with -Bdirect
    50 LD_B_DIRECT=
    50 LD_B_DIRECT=
    51 
    51 
    52 COMPONENT_TEST_DIR =		$(@D)
    52 COMPONENT_TEST_DIR =		$(@D)
    53 COMPONENT_TEST_ENV =		P7ZIP_HOME_DIR=$(BUILD_DIR)/$(MACH$(BITS))/bin
    53 COMPONENT_TEST_ENV =		P7ZIP_HOME_DIR=$(BUILD_DIR)/$(MACH$(BITS))/bin
    54 COMPONENT_TEST_TARGETS =	test test_7z test_7zr
    54 COMPONENT_TEST_TARGETS =	test test_7z test_7zr
    55 
    55 
    56 COMPONENT_PREP_ACTION = (cd $(@D); cp ../makefile.solaris makefile.machine)
    56 COMPONENT_PREP_ACTION = (cd $(@D); cp ../makefile.solaris makefile.machine)
    57 COMPONENT_BUILD_TARGETS = all3
    57 COMPONENT_BUILD_TARGETS = all3
    58 COMPONENT_INSTALL_ARGS += DEST_HOME=/usr DEST_DIR=$(PROTO_DIR)
    58 COMPONENT_INSTALL_ARGS += DEST_HOME=$(USRDIR) DEST_DIR=$(PROTO_DIR)
    59 
    59 
    60 $(SOURCE_DIR)/DOCS/copying.txt $(SOURCE_DIR)/DOCS/unRarLicense.txt: prep
    60 $(SOURCE_DIR)/DOCS/copying.txt $(SOURCE_DIR)/DOCS/unRarLicense.txt: prep
    61 
    61 
    62 $(BUILD_DIR)/%: $(SOURCE_DIR)/DOCS/%
    62 $(BUILD_DIR)/%: $(SOURCE_DIR)/DOCS/%
    63 	$(CP) $< $@
    63 	$(CP) $< $@
    64 
    64 
    65 $(BUILD_DIR)/copying.txt: $(SOURCE_DIR)/DOCS/copying.txt
    65 $(BUILD_DIR)/copying.txt: $(SOURCE_DIR)/DOCS/copying.txt
    66 	$(CP) $(SOURCE_DIR)/DOCS/copying.txt $@
    66 	$(CP) $(SOURCE_DIR)/DOCS/copying.txt $@
    67 
    67 
    68 ASLR_MODE = $(ASLR_ENABLE)
       
    69 
       
    70 # common targets
    68 # common targets
    71 build:		$(BUILD_64)
       
    72 
       
    73 EXTRATARGETS = \
    69 EXTRATARGETS = \
    74 	$(BUILD_DIR)/copying.txt $(BUILD_DIR)/unRarLicense.txt
    70 	$(BUILD_DIR)/copying.txt $(BUILD_DIR)/unRarLicense.txt
    75 
    71 
    76 install:	build $(INSTALL_64) $(EXTRATARGETS)
    72 install:	build $(INSTALL_64) $(EXTRATARGETS)
    77 
    73 
    79 # so they're impossible to remove without adding the write bit first.
    75 # so they're impossible to remove without adding the write bit first.
    80 COMPONENT_POST_INSTALL_ACTION += $(CHMOD) -R u+w $(PROTO_DIR);
    76 COMPONENT_POST_INSTALL_ACTION += $(CHMOD) -R u+w $(PROTO_DIR);
    81 # 7zr.1 is in DOS format for some reason, and geqn can't handle it.
    77 # 7zr.1 is in DOS format for some reason, and geqn can't handle it.
    82 COMPONENT_POST_INSTALL_ACTION += $(GSED) -i -e 's/\r//' $(PROTO_DIR)/usr/man/man1/7zr.1
    78 COMPONENT_POST_INSTALL_ACTION += $(GSED) -i -e 's/\r//' $(PROTO_DIR)/usr/man/man1/7zr.1
    83 
    79 
    84 # build does this always
       
    85 test:	$(TEST_64)
       
    86 
       
    87 system-test:    $(SYSTEM_TESTS_NOT_IMPLEMENTED)
       
    88 
       
    89 
       
    90 REQUIRED_PACKAGES += shell/ksh93
    80 REQUIRED_PACKAGES += shell/ksh93
    91 REQUIRED_PACKAGES += system/library
       
    92 REQUIRED_PACKAGES += system/library/c++-runtime
    81 REQUIRED_PACKAGES += system/library/c++-runtime
    93 REQUIRED_PACKAGES += system/library/math
    82 REQUIRED_PACKAGES += system/library/math