components/ircii/Makefile
author Norm Jacobs <Norm.Jacobs@Oracle.COM>
Fri, 08 Mar 2013 12:36:34 -0800
changeset 1201 de71257be89e
parent 1177 865ee3a7a5e0
child 1304 428fd83fdeb2
permissions -rw-r--r--
16389065 stunnel isn't going to build on 16
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
#
1177
865ee3a7a5e0 16329677 Update ircii to the latest version.
Rich Burridge <rich.burridge@oracle.com>
parents: 1058
diff changeset
    23
# Copyright (c) 2011, 2013, 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
1177
865ee3a7a5e0 16329677 Update ircii to the latest version.
Rich Burridge <rich.burridge@oracle.com>
parents: 1058
diff changeset
    29
COMPONENT_VERSION=	20111115
865ee3a7a5e0 16329677 Update ircii to the latest version.
Rich Burridge <rich.burridge@oracle.com>
parents: 1058
diff changeset
    30
IPS_COMPONENT_VERSION=  0.2011.11.15
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=	\
1177
865ee3a7a5e0 16329677 Update ircii to the latest version.
Rich Burridge <rich.burridge@oracle.com>
parents: 1058
diff changeset
    35
    sha256:629a0a335c790aa5fa9f327532d1d45fd37d2fcd1902e8b0ee28b51994dcf604
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
6ee87227d15e 7061198 Move ircii to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    39
include ../../make-rules/prep.mk
6ee87227d15e 7061198 Move ircii to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    40
include ../../make-rules/configure.mk
6ee87227d15e 7061198 Move ircii to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    41
include ../../make-rules/ips.mk
6ee87227d15e 7061198 Move ircii to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    42
6ee87227d15e 7061198 Move ircii to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    43
CONFIGURE_ENV += CC="$(CC)"
6ee87227d15e 7061198 Move ircii to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    44
6ee87227d15e 7061198 Move ircii to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    45
# 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
    46
# CC and CFLAGS definitions as configure parameters.
6ee87227d15e 7061198 Move ircii to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    47
CONFIGURE_OPTIONS       = --prefix=/usr
6ee87227d15e 7061198 Move ircii to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    48
CONFIGURE_OPTIONS       += --mandir=$(CONFIGURE_MANDIR)
6ee87227d15e 7061198 Move ircii to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    49
CONFIGURE_OPTIONS       += --bindir=$(CONFIGURE_BINDIR.$(BITS))
6ee87227d15e 7061198 Move ircii to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    50
CONFIGURE_OPTIONS       += $(CONFIGURE_OPTIONS.$(BITS))
6ee87227d15e 7061198 Move ircii to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    51
1177
865ee3a7a5e0 16329677 Update ircii to the latest version.
Rich Burridge <rich.burridge@oracle.com>
parents: 1058
diff changeset
    52
# The ircio and wserv are now installed in the libexecdir, which by
865ee3a7a5e0 16329677 Update ircii to the latest version.
Rich Burridge <rich.burridge@oracle.com>
parents: 1058
diff changeset
    53
# default is /usr/libexec. We want to install them under /usr/bin.
865ee3a7a5e0 16329677 Update ircii to the latest version.
Rich Burridge <rich.burridge@oracle.com>
parents: 1058
diff changeset
    54
# One would think that you could just set --libexecdir=/usr/bin but no.
865ee3a7a5e0 16329677 Update ircii to the latest version.
Rich Burridge <rich.burridge@oracle.com>
parents: 1058
diff changeset
    55
# The configure script has some logic that just blindly resets it back
865ee3a7a5e0 16329677 Update ircii to the latest version.
Rich Burridge <rich.burridge@oracle.com>
parents: 1058
diff changeset
    56
# to /usr/libexec. This problem has been reported to the ircii maintainer.
865ee3a7a5e0 16329677 Update ircii to the latest version.
Rich Burridge <rich.burridge@oracle.com>
parents: 1058
diff changeset
    57
#
865ee3a7a5e0 16329677 Update ircii to the latest version.
Rich Burridge <rich.burridge@oracle.com>
parents: 1058
diff changeset
    58
# This action modifies the libexecdir setting in the Makefile to /usr/bin
865ee3a7a5e0 16329677 Update ircii to the latest version.
Rich Burridge <rich.burridge@oracle.com>
parents: 1058
diff changeset
    59
COMPONENT_POST_CONFIGURE_ACTION = \
865ee3a7a5e0 16329677 Update ircii to the latest version.
Rich Burridge <rich.burridge@oracle.com>
parents: 1058
diff changeset
    60
	$(GSED) -i -e 's|/usr/libexec|/usr/bin|' $(BUILD_DIR_32)/Makefile
865ee3a7a5e0 16329677 Update ircii to the latest version.
Rich Burridge <rich.burridge@oracle.com>
parents: 1058
diff changeset
    61
865ee3a7a5e0 16329677 Update ircii to the latest version.
Rich Burridge <rich.burridge@oracle.com>
parents: 1058
diff changeset
    62
# Enable ASLR for this component
865ee3a7a5e0 16329677 Update ircii to the latest version.
Rich Burridge <rich.burridge@oracle.com>
parents: 1058
diff changeset
    63
ASLR_MODE = $(ASLR_ENABLE)
367
6ee87227d15e 7061198 Move ircii to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    64
6ee87227d15e 7061198 Move ircii to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    65
# common targets
6ee87227d15e 7061198 Move ircii to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    66
build:		$(BUILD_32)
6ee87227d15e 7061198 Move ircii to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    67
6ee87227d15e 7061198 Move ircii to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    68
install:	$(INSTALL_32)
6ee87227d15e 7061198 Move ircii to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    69
6ee87227d15e 7061198 Move ircii to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    70
test:           $(NO_TESTS)
6ee87227d15e 7061198 Move ircii to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    71
6ee87227d15e 7061198 Move ircii to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    72
BUILD_PKG_DEPENDENCIES =	$(BUILD_TOOLS)
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
include ../../make-rules/depend.mk