components/screen/Makefile
changeset 5682 94c0ca64c022
parent 4703 9e076feb8c0b
child 6276 b5b0d91feeac
equal deleted inserted replaced
5681:b8fe51f35344 5682:94c0ca64c022
    16 # fields enclosed by brackets "[]" replaced with your own identifying
    16 # fields enclosed by brackets "[]" replaced with your own identifying
    17 # information: Portions Copyright [yyyy] [name of copyright owner]
    17 # information: Portions Copyright [yyyy] [name of copyright owner]
    18 #
    18 #
    19 # CDDL HEADER END
    19 # CDDL HEADER END
    20 #
    20 #
    21 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
    21 
    22 #
    22 #
       
    23 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
       
    24 #
       
    25 BUILD_BITS= 64
    23 include ../../make-rules/shared-macros.mk
    26 include ../../make-rules/shared-macros.mk
    24 
    27 
    25 COMPONENT_NAME=		screen
    28 COMPONENT_NAME=		screen
    26 COMPONENT_VERSION=	4.3.1
    29 COMPONENT_VERSION=	4.3.1
    27 COMPONENT_PROJECT_URL=	http://www.gnu.org/software/screen/
       
    28 COMPONENT_SRC=		$(COMPONENT_NAME)-$(COMPONENT_VERSION)
       
    29 COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tar.gz
       
    30 COMPONENT_ARCHIVE_HASH=	\
    30 COMPONENT_ARCHIVE_HASH=	\
    31     sha256:fa4049f8aee283de62e283d427f2cfd35d6c369b40f7f45f947dbfd915699d63
    31     sha256:fa4049f8aee283de62e283d427f2cfd35d6c369b40f7f45f947dbfd915699d63
    32 COMPONENT_ARCHIVE_URL=	http://ftp.gnu.org/gnu/screen/$(COMPONENT_ARCHIVE)
       
    33 COMPONENT_BUGDB=	utility/screen
       
    34 
    32 
    35 TPNO=			23486	
    33 TPNO=			23486	
    36 
    34 
    37 include $(WS_MAKE_RULES)/prep.mk
    35 TEST_TARGET= $(NO_TESTS)
    38 include $(WS_MAKE_RULES)/configure.mk
    36 include $(WS_MAKE_RULES)/gnu-component.mk
    39 include $(WS_MAKE_RULES)/ips.mk
    37 
       
    38 # Fix 64-bit linking via compiler.
       
    39 LDFLAGS += $(CC_BITS)
    40 
    40 
    41 CONFIGURE_OPTIONS +=	--enable-colors256
    41 CONFIGURE_OPTIONS +=	--enable-colors256
    42 CONFIGURE_OPTIONS +=	--with-sys-screenrc=/etc/screenrc
    42 CONFIGURE_OPTIONS +=	--with-sys-screenrc=$(ETCDIR)/screenrc
    43 CONFIGURE_OPTIONS +=	--disable-socket-dir
    43 CONFIGURE_OPTIONS +=	--disable-socket-dir
    44 CONFIGURE_OPTIONS +=	--infodir=$(CONFIGURE_INFODIR)
    44 CONFIGURE_OPTIONS +=	--infodir=$(CONFIGURE_INFODIR)
    45 CONFIGURE_OPTIONS +=	CFLAGS="$(CFLAGS)"
       
    46 # We need to add CC_BITS or we get ld: fatal: wrong ELF class: ELFCLASS64
       
    47 COMPONENT_BUILD_ARGS += LDFLAGS="$(CC_BITS)"
       
    48 
    45 
    49 PROTOTERMINFODIR=$(PROTOUSRSHAREDIR)/lib/terminfo
    46 PROTOTERMINFODIR=$(PROTOUSRSHARELIBDIR)/terminfo
    50 
    47 
    51 $(PROTOTERMINFODIR):
    48 $(PROTOTERMINFODIR):
    52 	$(MKDIR) $@
    49 	$(MKDIR) $@
    53 
    50 
    54 $(INSTALL_64):	$(PROTOTERMINFODIR)
    51 $(INSTALL_64):	$(PROTOTERMINFODIR)
    55 
       
    56 ASLR_MODE = $(ASLR_ENABLE)
       
    57 
       
    58 configure:	$(CONFIGURE_64)
       
    59 
       
    60 build:		$(BUILD_64)
       
    61 
       
    62 install:	$(INSTALL_64)
       
    63 
       
    64 test:		$(NO_TESTS)
       
    65 
       
    66 system-test:    $(NO_TESTS)
       
    67 
       
    68 
       
    69 REQUIRED_PACKAGES += system/library