components/tmux/Makefile
author mahmood.ali@oracle.com <mahmood.ali@oracle.com>
Tue, 17 Sep 2013 16:15:04 -0700
changeset 1476 ab7bed457fe6
child 1787 e27e5d7811bf
child 2910 f8b8cbc43356
permissions -rw-r--r--
PSARC 2013/270 tmux version 1.8 17195662 tmux required for Solaris
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1476
ab7bed457fe6 PSARC 2013/270 tmux version 1.8
mahmood.ali@oracle.com <mahmood.ali@oracle.com>
parents:
diff changeset
     1
#
ab7bed457fe6 PSARC 2013/270 tmux version 1.8
mahmood.ali@oracle.com <mahmood.ali@oracle.com>
parents:
diff changeset
     2
# CDDL HEADER START
ab7bed457fe6 PSARC 2013/270 tmux version 1.8
mahmood.ali@oracle.com <mahmood.ali@oracle.com>
parents:
diff changeset
     3
#
ab7bed457fe6 PSARC 2013/270 tmux version 1.8
mahmood.ali@oracle.com <mahmood.ali@oracle.com>
parents:
diff changeset
     4
# The contents of this file are subject to the terms of the
ab7bed457fe6 PSARC 2013/270 tmux version 1.8
mahmood.ali@oracle.com <mahmood.ali@oracle.com>
parents:
diff changeset
     5
# Common Development and Distribution License (the "License").
ab7bed457fe6 PSARC 2013/270 tmux version 1.8
mahmood.ali@oracle.com <mahmood.ali@oracle.com>
parents:
diff changeset
     6
# You may not use this file except in compliance with the License.
ab7bed457fe6 PSARC 2013/270 tmux version 1.8
mahmood.ali@oracle.com <mahmood.ali@oracle.com>
parents:
diff changeset
     7
#
ab7bed457fe6 PSARC 2013/270 tmux version 1.8
mahmood.ali@oracle.com <mahmood.ali@oracle.com>
parents:
diff changeset
     8
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
ab7bed457fe6 PSARC 2013/270 tmux version 1.8
mahmood.ali@oracle.com <mahmood.ali@oracle.com>
parents:
diff changeset
     9
# or http://www.opensolaris.org/os/licensing.
ab7bed457fe6 PSARC 2013/270 tmux version 1.8
mahmood.ali@oracle.com <mahmood.ali@oracle.com>
parents:
diff changeset
    10
# See the License for the specific language governing permissions
ab7bed457fe6 PSARC 2013/270 tmux version 1.8
mahmood.ali@oracle.com <mahmood.ali@oracle.com>
parents:
diff changeset
    11
# and limitations under the License.
ab7bed457fe6 PSARC 2013/270 tmux version 1.8
mahmood.ali@oracle.com <mahmood.ali@oracle.com>
parents:
diff changeset
    12
#
ab7bed457fe6 PSARC 2013/270 tmux version 1.8
mahmood.ali@oracle.com <mahmood.ali@oracle.com>
parents:
diff changeset
    13
# When distributing Covered Code, include this CDDL HEADER in each
ab7bed457fe6 PSARC 2013/270 tmux version 1.8
mahmood.ali@oracle.com <mahmood.ali@oracle.com>
parents:
diff changeset
    14
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
ab7bed457fe6 PSARC 2013/270 tmux version 1.8
mahmood.ali@oracle.com <mahmood.ali@oracle.com>
parents:
diff changeset
    15
# If applicable, add the following below this CDDL HEADER, with the
ab7bed457fe6 PSARC 2013/270 tmux version 1.8
mahmood.ali@oracle.com <mahmood.ali@oracle.com>
parents:
diff changeset
    16
# fields enclosed by brackets "[]" replaced with your own identifying
ab7bed457fe6 PSARC 2013/270 tmux version 1.8
mahmood.ali@oracle.com <mahmood.ali@oracle.com>
parents:
diff changeset
    17
# information: Portions Copyright [yyyy] [name of copyright owner]
ab7bed457fe6 PSARC 2013/270 tmux version 1.8
mahmood.ali@oracle.com <mahmood.ali@oracle.com>
parents:
diff changeset
    18
#
ab7bed457fe6 PSARC 2013/270 tmux version 1.8
mahmood.ali@oracle.com <mahmood.ali@oracle.com>
parents:
diff changeset
    19
# CDDL HEADER END
ab7bed457fe6 PSARC 2013/270 tmux version 1.8
mahmood.ali@oracle.com <mahmood.ali@oracle.com>
parents:
diff changeset
    20
#
ab7bed457fe6 PSARC 2013/270 tmux version 1.8
mahmood.ali@oracle.com <mahmood.ali@oracle.com>
parents:
diff changeset
    21
ab7bed457fe6 PSARC 2013/270 tmux version 1.8
mahmood.ali@oracle.com <mahmood.ali@oracle.com>
parents:
diff changeset
    22
#
ab7bed457fe6 PSARC 2013/270 tmux version 1.8
mahmood.ali@oracle.com <mahmood.ali@oracle.com>
parents:
diff changeset
    23
# Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.
ab7bed457fe6 PSARC 2013/270 tmux version 1.8
mahmood.ali@oracle.com <mahmood.ali@oracle.com>
parents:
diff changeset
    24
#
ab7bed457fe6 PSARC 2013/270 tmux version 1.8
mahmood.ali@oracle.com <mahmood.ali@oracle.com>
parents:
diff changeset
    25
ab7bed457fe6 PSARC 2013/270 tmux version 1.8
mahmood.ali@oracle.com <mahmood.ali@oracle.com>
parents:
diff changeset
    26
include ../../make-rules/shared-macros.mk
ab7bed457fe6 PSARC 2013/270 tmux version 1.8
mahmood.ali@oracle.com <mahmood.ali@oracle.com>
parents:
diff changeset
    27
ab7bed457fe6 PSARC 2013/270 tmux version 1.8
mahmood.ali@oracle.com <mahmood.ali@oracle.com>
parents:
diff changeset
    28
COMPONENT_NAME=		tmux
ab7bed457fe6 PSARC 2013/270 tmux version 1.8
mahmood.ali@oracle.com <mahmood.ali@oracle.com>
parents:
diff changeset
    29
COMPONENT_VERSION=	1.8
ab7bed457fe6 PSARC 2013/270 tmux version 1.8
mahmood.ali@oracle.com <mahmood.ali@oracle.com>
parents:
diff changeset
    30
COMPONENT_SRC=		$(COMPONENT_NAME)-$(COMPONENT_VERSION)
ab7bed457fe6 PSARC 2013/270 tmux version 1.8
mahmood.ali@oracle.com <mahmood.ali@oracle.com>
parents:
diff changeset
    31
COMPONENT_PROJECT_URL=	http://tmux.sourceforge.net
ab7bed457fe6 PSARC 2013/270 tmux version 1.8
mahmood.ali@oracle.com <mahmood.ali@oracle.com>
parents:
diff changeset
    32
COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tar.gz
ab7bed457fe6 PSARC 2013/270 tmux version 1.8
mahmood.ali@oracle.com <mahmood.ali@oracle.com>
parents:
diff changeset
    33
COMPONENT_ARCHIVE_HASH=	\
ab7bed457fe6 PSARC 2013/270 tmux version 1.8
mahmood.ali@oracle.com <mahmood.ali@oracle.com>
parents:
diff changeset
    34
    sha256:2565b65f80bf1d683032c75704a9619e6734fd21586c72768ef27427ba9e23e5
ab7bed457fe6 PSARC 2013/270 tmux version 1.8
mahmood.ali@oracle.com <mahmood.ali@oracle.com>
parents:
diff changeset
    35
COMPONENT_ARCHIVE_URL=	http://sourceforge.net/projects/tmux/files/tmux/$(COMPONENT_SRC)/$(COMPONENT_ARCHIVE)
ab7bed457fe6 PSARC 2013/270 tmux version 1.8
mahmood.ali@oracle.com <mahmood.ali@oracle.com>
parents:
diff changeset
    36
COMPONENT_BUGDB=	utility/tmux
ab7bed457fe6 PSARC 2013/270 tmux version 1.8
mahmood.ali@oracle.com <mahmood.ali@oracle.com>
parents:
diff changeset
    37
ab7bed457fe6 PSARC 2013/270 tmux version 1.8
mahmood.ali@oracle.com <mahmood.ali@oracle.com>
parents:
diff changeset
    38
include ../../make-rules/prep.mk
ab7bed457fe6 PSARC 2013/270 tmux version 1.8
mahmood.ali@oracle.com <mahmood.ali@oracle.com>
parents:
diff changeset
    39
include ../../make-rules/configure.mk
ab7bed457fe6 PSARC 2013/270 tmux version 1.8
mahmood.ali@oracle.com <mahmood.ali@oracle.com>
parents:
diff changeset
    40
include ../../make-rules/ips.mk
ab7bed457fe6 PSARC 2013/270 tmux version 1.8
mahmood.ali@oracle.com <mahmood.ali@oracle.com>
parents:
diff changeset
    41
ab7bed457fe6 PSARC 2013/270 tmux version 1.8
mahmood.ali@oracle.com <mahmood.ali@oracle.com>
parents:
diff changeset
    42
CONFIGURE_OPTIONS  +=	CFLAGS="$(CFLAGS)"
ab7bed457fe6 PSARC 2013/270 tmux version 1.8
mahmood.ali@oracle.com <mahmood.ali@oracle.com>
parents:
diff changeset
    43
CONFIGURE_OPTIONS  +=	CXXFLAGS="$(CXXFLAGS)"
ab7bed457fe6 PSARC 2013/270 tmux version 1.8
mahmood.ali@oracle.com <mahmood.ali@oracle.com>
parents:
diff changeset
    44
ab7bed457fe6 PSARC 2013/270 tmux version 1.8
mahmood.ali@oracle.com <mahmood.ali@oracle.com>
parents:
diff changeset
    45
# nroff does not work with -mandoc using groff
ab7bed457fe6 PSARC 2013/270 tmux version 1.8
mahmood.ali@oracle.com <mahmood.ali@oracle.com>
parents:
diff changeset
    46
MANDIR_PREFORMATED= $(PROTO_DIR)/usr/share/man/cat1
ab7bed457fe6 PSARC 2013/270 tmux version 1.8
mahmood.ali@oracle.com <mahmood.ali@oracle.com>
parents:
diff changeset
    47
COMPONENT_POST_INSTALL_ACTION += \
ab7bed457fe6 PSARC 2013/270 tmux version 1.8
mahmood.ali@oracle.com <mahmood.ali@oracle.com>
parents:
diff changeset
    48
        /usr/bin/groff -Tascii -mandoc $(SOURCE_DIR)/tmux.1>tmux.1.mod ; \
ab7bed457fe6 PSARC 2013/270 tmux version 1.8
mahmood.ali@oracle.com <mahmood.ali@oracle.com>
parents:
diff changeset
    49
        mkdir -p $(MANDIR_PREFORMATED) ; \
ab7bed457fe6 PSARC 2013/270 tmux version 1.8
mahmood.ali@oracle.com <mahmood.ali@oracle.com>
parents:
diff changeset
    50
        $(MV) tmux.1.mod $(MANDIR_PREFORMATED)/tmux.1
ab7bed457fe6 PSARC 2013/270 tmux version 1.8
mahmood.ali@oracle.com <mahmood.ali@oracle.com>
parents:
diff changeset
    51
ab7bed457fe6 PSARC 2013/270 tmux version 1.8
mahmood.ali@oracle.com <mahmood.ali@oracle.com>
parents:
diff changeset
    52
# Enable ASLR for this component
ab7bed457fe6 PSARC 2013/270 tmux version 1.8
mahmood.ali@oracle.com <mahmood.ali@oracle.com>
parents:
diff changeset
    53
ASLR_MODE = $(ASLR_ENABLE)
ab7bed457fe6 PSARC 2013/270 tmux version 1.8
mahmood.ali@oracle.com <mahmood.ali@oracle.com>
parents:
diff changeset
    54
ab7bed457fe6 PSARC 2013/270 tmux version 1.8
mahmood.ali@oracle.com <mahmood.ali@oracle.com>
parents:
diff changeset
    55
# common targets
ab7bed457fe6 PSARC 2013/270 tmux version 1.8
mahmood.ali@oracle.com <mahmood.ali@oracle.com>
parents:
diff changeset
    56
build:		$(BUILD_64)
ab7bed457fe6 PSARC 2013/270 tmux version 1.8
mahmood.ali@oracle.com <mahmood.ali@oracle.com>
parents:
diff changeset
    57
ab7bed457fe6 PSARC 2013/270 tmux version 1.8
mahmood.ali@oracle.com <mahmood.ali@oracle.com>
parents:
diff changeset
    58
install:	$(INSTALL_64)
ab7bed457fe6 PSARC 2013/270 tmux version 1.8
mahmood.ali@oracle.com <mahmood.ali@oracle.com>
parents:
diff changeset
    59
ab7bed457fe6 PSARC 2013/270 tmux version 1.8
mahmood.ali@oracle.com <mahmood.ali@oracle.com>
parents:
diff changeset
    60
test:		$(NO_TESTS)
ab7bed457fe6 PSARC 2013/270 tmux version 1.8
mahmood.ali@oracle.com <mahmood.ali@oracle.com>
parents:
diff changeset
    61
ab7bed457fe6 PSARC 2013/270 tmux version 1.8
mahmood.ali@oracle.com <mahmood.ali@oracle.com>
parents:
diff changeset
    62
BUILD_PKG_DEPENDENCIES =	$(BUILD_TOOLS)
ab7bed457fe6 PSARC 2013/270 tmux version 1.8
mahmood.ali@oracle.com <mahmood.ali@oracle.com>
parents:
diff changeset
    63
ab7bed457fe6 PSARC 2013/270 tmux version 1.8
mahmood.ali@oracle.com <mahmood.ali@oracle.com>
parents:
diff changeset
    64
include ../../make-rules/depend.mk