Makefile revision 3477
13cfc9727689eaa4573ca1edb5dd32f9adc5e18cYuri Pankov#
13cfc9727689eaa4573ca1edb5dd32f9adc5e18cYuri Pankov# CDDL HEADER START
13cfc9727689eaa4573ca1edb5dd32f9adc5e18cYuri Pankov#
13cfc9727689eaa4573ca1edb5dd32f9adc5e18cYuri Pankov# The contents of this file are subject to the terms of the
13cfc9727689eaa4573ca1edb5dd32f9adc5e18cYuri Pankov# Common Development and Distribution License (the "License").
13cfc9727689eaa4573ca1edb5dd32f9adc5e18cYuri Pankov# You may not use this file except in compliance with the License.
13cfc9727689eaa4573ca1edb5dd32f9adc5e18cYuri Pankov#
13cfc9727689eaa4573ca1edb5dd32f9adc5e18cYuri Pankov# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
13cfc9727689eaa4573ca1edb5dd32f9adc5e18cYuri Pankov# or http://www.opensolaris.org/os/licensing.
13cfc9727689eaa4573ca1edb5dd32f9adc5e18cYuri Pankov# See the License for the specific language governing permissions
13cfc9727689eaa4573ca1edb5dd32f9adc5e18cYuri Pankov# and limitations under the License.
13cfc9727689eaa4573ca1edb5dd32f9adc5e18cYuri Pankov#
13cfc9727689eaa4573ca1edb5dd32f9adc5e18cYuri Pankov# When distributing Covered Code, include this CDDL HEADER in each
13cfc9727689eaa4573ca1edb5dd32f9adc5e18cYuri Pankov# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
13cfc9727689eaa4573ca1edb5dd32f9adc5e18cYuri Pankov# If applicable, add the following below this CDDL HEADER, with the
13cfc9727689eaa4573ca1edb5dd32f9adc5e18cYuri Pankov# fields enclosed by brackets "[]" replaced with your own identifying
13cfc9727689eaa4573ca1edb5dd32f9adc5e18cYuri Pankov# information: Portions Copyright [yyyy] [name of copyright owner]
13cfc9727689eaa4573ca1edb5dd32f9adc5e18cYuri Pankov#
13cfc9727689eaa4573ca1edb5dd32f9adc5e18cYuri Pankov# CDDL HEADER END
13cfc9727689eaa4573ca1edb5dd32f9adc5e18cYuri Pankov#
13cfc9727689eaa4573ca1edb5dd32f9adc5e18cYuri Pankov# Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
13cfc9727689eaa4573ca1edb5dd32f9adc5e18cYuri Pankov#
13cfc9727689eaa4573ca1edb5dd32f9adc5e18cYuri Pankovinclude ../../make-rules/shared-macros.mk
13cfc9727689eaa4573ca1edb5dd32f9adc5e18cYuri Pankov
13cfc9727689eaa4573ca1edb5dd32f9adc5e18cYuri PankovCOMPONENT_NAME= screen
13cfc9727689eaa4573ca1edb5dd32f9adc5e18cYuri PankovCOMPONENT_VERSION= 4.0.3
13cfc9727689eaa4573ca1edb5dd32f9adc5e18cYuri PankovCOMPONENT_PROJECT_URL= http://www.gnu.org/software/screen/
COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
COMPONENT_ARCHIVE_HASH= \
sha256:78f0d5b1496084a5902586304d4a73954b2bfe33ea13edceecf21615c39e6c77
COMPONENT_ARCHIVE_URL= http://ftp.gnu.org/gnu/screen/$(COMPONENT_ARCHIVE)
COMPONENT_BUGDB= utility/screen
TPNO= 8940
include ../../make-rules/prep.mk
include ../../make-rules/configure.mk
include ../../make-rules/ips.mk
CONFIGURE_OPTIONS += --enable-colors256
CONFIGURE_OPTIONS += --with-sys-screenrc=/etc/screenrc
CONFIGURE_OPTIONS += --disable-socket-dir
CONFIGURE_OPTIONS += --infodir=$(CONFIGURE_INFODIR)
CONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
# We need to add CC_BITS or we get ld: fatal: wrong ELF class: ELFCLASS64
COMPONENT_BUILD_ARGS += LDFLAGS="$(CC_BITS)"
PROTOTERMINFODIR=$(PROTOUSRSHAREDIR)/lib/terminfo
$(PROTOTERMINFODIR):
$(MKDIR) $@
$(INSTALL_64): $(PROTOTERMINFODIR)
ASLR_MODE = $(ASLR_ENABLE)
configure: $(CONFIGURE_64)
build: $(BUILD_64)
install: $(INSTALL_64)
test: $(NO_TESTS)
BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
include ../../make-rules/depend.mk