components/ircii/Makefile
author Girish Moodalbail <Girish.Moodalbail@oracle.COM>
Wed, 01 Jul 2015 10:21:52 -0700
changeset 4582 cfdc60640ff6
parent 4339 6501cf9c29f9
permissions -rw-r--r--
21356776 evs-neutron migration script should exit gracefully if there is nothing to do
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
367
6ee87227d15e 7061198 Move ircii to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
     1
#
6ee87227d15e 7061198 Move ircii to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
     2
# CDDL HEADER START
6ee87227d15e 7061198 Move ircii to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
     3
#
6ee87227d15e 7061198 Move ircii to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
     4
# The contents of this file are subject to the terms of the
6ee87227d15e 7061198 Move ircii to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
     5
# Common Development and Distribution License (the "License").
6ee87227d15e 7061198 Move ircii to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
     6
# You may not use this file except in compliance with the License.
6ee87227d15e 7061198 Move ircii to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
     7
#
6ee87227d15e 7061198 Move ircii to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
     8
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
6ee87227d15e 7061198 Move ircii to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
     9
# or http://www.opensolaris.org/os/licensing.
6ee87227d15e 7061198 Move ircii to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    10
# See the License for the specific language governing permissions
6ee87227d15e 7061198 Move ircii to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    11
# and limitations under the License.
6ee87227d15e 7061198 Move ircii to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    12
#
6ee87227d15e 7061198 Move ircii to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    13
# When distributing Covered Code, include this CDDL HEADER in each
6ee87227d15e 7061198 Move ircii to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    14
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
6ee87227d15e 7061198 Move ircii to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    15
# If applicable, add the following below this CDDL HEADER, with the
6ee87227d15e 7061198 Move ircii to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    16
# fields enclosed by brackets "[]" replaced with your own identifying
6ee87227d15e 7061198 Move ircii to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    17
# information: Portions Copyright [yyyy] [name of copyright owner]
6ee87227d15e 7061198 Move ircii to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    18
#
6ee87227d15e 7061198 Move ircii to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    19
# CDDL HEADER END
6ee87227d15e 7061198 Move ircii to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    20
#
6ee87227d15e 7061198 Move ircii to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    21
6ee87227d15e 7061198 Move ircii to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    22
#
3817
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
    23
# Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
367
6ee87227d15e 7061198 Move ircii to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    24
#
6ee87227d15e 7061198 Move ircii to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    25
6ee87227d15e 7061198 Move ircii to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    26
include ../../make-rules/shared-macros.mk
6ee87227d15e 7061198 Move ircii to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    27
6ee87227d15e 7061198 Move ircii to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    28
COMPONENT_NAME=		ircii
3974
221bc3d28397 20729937 ircii should be updated to version 20141122
Rich Burridge <rich.burridge@oracle.com>
parents: 3817
diff changeset
    29
COMPONENT_VERSION=	20141122
221bc3d28397 20729937 ircii should be updated to version 20141122
Rich Burridge <rich.burridge@oracle.com>
parents: 3817
diff changeset
    30
IPS_COMPONENT_VERSION=  0.2014.11.22
609
775168282b2f 7037821 Userland migration of data from Makefile to manifest may have been a little overzealous
Rich Burridge <rich.burridge@oracle.com>
parents: 367
diff changeset
    31
COMPONENT_PROJECT_URL=	http://www.eterna.com.au/ircii/
367
6ee87227d15e 7061198 Move ircii to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    32
COMPONENT_SRC=		$(COMPONENT_NAME)-$(COMPONENT_VERSION)
6ee87227d15e 7061198 Move ircii to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    33
COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tar.gz
800
2ad056ed89ec 7163771 sha1 should not be used in userland-fetch and userland component/*/Makefile
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 609
diff changeset
    34
COMPONENT_ARCHIVE_HASH=	\
3974
221bc3d28397 20729937 ircii should be updated to version 20141122
Rich Burridge <rich.burridge@oracle.com>
parents: 3817
diff changeset
    35
    sha256:b5eefbd44d1eb987c324cde590ce649b45f96b1f0f562c6d2bb8fbe9af34762d
1177
865ee3a7a5e0 16329677 Update ircii to the latest version.
Rich Burridge <rich.burridge@oracle.com>
parents: 1058
diff changeset
    36
COMPONENT_ARCHIVE_URL=	ftp://ircii.warped.com/pub/ircII/$(COMPONENT_ARCHIVE)
1058
34d7aaa03423 15886624 Auto-generation of Userland gate list - Phase 3
Rich Burridge <rich.burridge@oracle.com>
parents: 800
diff changeset
    37
COMPONENT_BUGDB=	utility/ircii
367
6ee87227d15e 7061198 Move ircii to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    38
3974
221bc3d28397 20729937 ircii should be updated to version 20141122
Rich Burridge <rich.burridge@oracle.com>
parents: 3817
diff changeset
    39
TPNO=			21983
1948
2d1537e7942d 18978320 Userland components should specify TPNOs in Makefiles instead of pkg manifests
John Beck <John.Beck@Oracle.COM>
parents: 1304
diff changeset
    40
3817
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
    41
include $(WS_MAKE_RULES)/prep.mk
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
    42
include $(WS_MAKE_RULES)/configure.mk
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
    43
include $(WS_MAKE_RULES)/ips.mk
367
6ee87227d15e 7061198 Move ircii to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    44
1304
428fd83fdeb2 16810032 ircii should be 64-bit
Rich Burridge <rich.burridge@oracle.com>
parents: 1177
diff changeset
    45
# Needed to correctly include <curses.h> and <term.h> when compiling the
428fd83fdeb2 16810032 ircii should be 64-bit
Rich Burridge <rich.burridge@oracle.com>
parents: 1177
diff changeset
    46
# various C source files.
428fd83fdeb2 16810032 ircii should be 64-bit
Rich Burridge <rich.burridge@oracle.com>
parents: 1177
diff changeset
    47
CFLAGS += -DINCLUDE_CURSES_H
428fd83fdeb2 16810032 ircii should be 64-bit
Rich Burridge <rich.burridge@oracle.com>
parents: 1177
diff changeset
    48
367
6ee87227d15e 7061198 Move ircii to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    49
CONFIGURE_ENV += CC="$(CC)"
1304
428fd83fdeb2 16810032 ircii should be 64-bit
Rich Burridge <rich.burridge@oracle.com>
parents: 1177
diff changeset
    50
CONFIGURE_ENV += CFLAGS="$(CFLAGS)"
428fd83fdeb2 16810032 ircii should be 64-bit
Rich Burridge <rich.burridge@oracle.com>
parents: 1177
diff changeset
    51
428fd83fdeb2 16810032 ircii should be 64-bit
Rich Burridge <rich.burridge@oracle.com>
parents: 1177
diff changeset
    52
CC += $(CC_BITS)
428fd83fdeb2 16810032 ircii should be 64-bit
Rich Burridge <rich.burridge@oracle.com>
parents: 1177
diff changeset
    53
COMPONENT_BUILD_ARGS += CC="$(CC)"
367
6ee87227d15e 7061198 Move ircii to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    54
6ee87227d15e 7061198 Move ircii to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    55
# We need to reset configure options here because ircii is confused with
6ee87227d15e 7061198 Move ircii to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    56
# CC and CFLAGS definitions as configure parameters.
6ee87227d15e 7061198 Move ircii to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    57
CONFIGURE_OPTIONS       = --prefix=/usr
3974
221bc3d28397 20729937 ircii should be updated to version 20141122
Rich Burridge <rich.burridge@oracle.com>
parents: 3817
diff changeset
    58
221bc3d28397 20729937 ircii should be updated to version 20141122
Rich Burridge <rich.burridge@oracle.com>
parents: 3817
diff changeset
    59
# The mandir definition in the top-level Makefile.in is broken. Work around it.
221bc3d28397 20729937 ircii should be updated to version 20141122
Rich Burridge <rich.burridge@oracle.com>
parents: 3817
diff changeset
    60
CONFIGURE_OPTIONS	+= --mandir=$(PROTOUSRSHAREMANDIR)
221bc3d28397 20729937 ircii should be updated to version 20141122
Rich Burridge <rich.burridge@oracle.com>
parents: 3817
diff changeset
    61
221bc3d28397 20729937 ircii should be updated to version 20141122
Rich Burridge <rich.burridge@oracle.com>
parents: 3817
diff changeset
    62
CONFIGURE_OPTIONS	+= --bindir=$(USRBINDIR)
221bc3d28397 20729937 ircii should be updated to version 20141122
Rich Burridge <rich.burridge@oracle.com>
parents: 3817
diff changeset
    63
CONFIGURE_OPTIONS	+= --libexecdir=$(USRBINDIR)
367
6ee87227d15e 7061198 Move ircii to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    64
CONFIGURE_OPTIONS       += $(CONFIGURE_OPTIONS.$(BITS))
6ee87227d15e 7061198 Move ircii to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    65
1177
865ee3a7a5e0 16329677 Update ircii to the latest version.
Rich Burridge <rich.burridge@oracle.com>
parents: 1058
diff changeset
    66
ASLR_MODE = $(ASLR_ENABLE)
367
6ee87227d15e 7061198 Move ircii to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    67
2225
f064d3d3190d 20078677 Userland Makefiles should support a configure: target
John Beck <John.Beck@Oracle.COM>
parents: 1948
diff changeset
    68
configure:	$(CONFIGURE_64)
f064d3d3190d 20078677 Userland Makefiles should support a configure: target
John Beck <John.Beck@Oracle.COM>
parents: 1948
diff changeset
    69
1304
428fd83fdeb2 16810032 ircii should be 64-bit
Rich Burridge <rich.burridge@oracle.com>
parents: 1177
diff changeset
    70
build:		$(BUILD_64)
367
6ee87227d15e 7061198 Move ircii to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    71
1304
428fd83fdeb2 16810032 ircii should be 64-bit
Rich Burridge <rich.burridge@oracle.com>
parents: 1177
diff changeset
    72
install:	$(INSTALL_64)
367
6ee87227d15e 7061198 Move ircii to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    73
6ee87227d15e 7061198 Move ircii to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    74
test:           $(NO_TESTS)
6ee87227d15e 7061198 Move ircii to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    75
4339
6501cf9c29f9 21116842 add system-test targets to each component Makefile and to top-level Makefiles
Stacy Yeh <stacy.yeh@oracle.com>
parents: 3974
diff changeset
    76
system-test:    $(NO_TESTS)
6501cf9c29f9 21116842 add system-test targets to each component Makefile and to top-level Makefiles
Stacy Yeh <stacy.yeh@oracle.com>
parents: 3974
diff changeset
    77
367
6ee87227d15e 7061198 Move ircii to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    78
3974
221bc3d28397 20729937 ircii should be updated to version 20141122
Rich Burridge <rich.burridge@oracle.com>
parents: 3817
diff changeset
    79
REQUIRED_PACKAGES += library/security/openssl
3817
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
    80
REQUIRED_PACKAGES += system/library