author | Norm Jacobs <Norm.Jacobs@Sun.COM> |
Sun, 15 Feb 2015 19:02:09 -0600 | |
changeset 3817 | 30b42c38bbc4 |
parent 2225 | f064d3d3190d |
child 3974 | 221bc3d28397 |
permissions | -rw-r--r-- |
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 |
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 |
|
1948
2d1537e7942d
18978320 Userland components should specify TPNOs in Makefiles instead of pkg manifests
John Beck <John.Beck@Oracle.COM>
parents:
1304
diff
changeset
|
39 |
TPNO= 12675 |
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 |
6ee87227d15e
7061198 Move ircii to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
58 |
CONFIGURE_OPTIONS += --mandir=$(CONFIGURE_MANDIR) |
6ee87227d15e
7061198 Move ircii to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
59 |
CONFIGURE_OPTIONS += --bindir=$(CONFIGURE_BINDIR.$(BITS)) |
6ee87227d15e
7061198 Move ircii to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
60 |
CONFIGURE_OPTIONS += $(CONFIGURE_OPTIONS.$(BITS)) |
6ee87227d15e
7061198 Move ircii to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
61 |
|
1177
865ee3a7a5e0
16329677 Update ircii to the latest version.
Rich Burridge <rich.burridge@oracle.com>
parents:
1058
diff
changeset
|
62 |
# 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
|
63 |
# 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
|
64 |
# 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
|
65 |
# 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
|
66 |
# 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
|
67 |
# |
865ee3a7a5e0
16329677 Update ircii to the latest version.
Rich Burridge <rich.burridge@oracle.com>
parents:
1058
diff
changeset
|
68 |
# 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
|
69 |
COMPONENT_POST_CONFIGURE_ACTION = \ |
1304
428fd83fdeb2
16810032 ircii should be 64-bit
Rich Burridge <rich.burridge@oracle.com>
parents:
1177
diff
changeset
|
70 |
$(GSED) -i -e 's|/usr/libexec|/usr/bin|' $(BUILD_DIR_64)/Makefile |
1177
865ee3a7a5e0
16329677 Update ircii to the latest version.
Rich Burridge <rich.burridge@oracle.com>
parents:
1058
diff
changeset
|
71 |
|
865ee3a7a5e0
16329677 Update ircii to the latest version.
Rich Burridge <rich.burridge@oracle.com>
parents:
1058
diff
changeset
|
72 |
# Enable ASLR for this component |
865ee3a7a5e0
16329677 Update ircii to the latest version.
Rich Burridge <rich.burridge@oracle.com>
parents:
1058
diff
changeset
|
73 |
ASLR_MODE = $(ASLR_ENABLE) |
367
6ee87227d15e
7061198 Move ircii to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
74 |
|
6ee87227d15e
7061198 Move ircii to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
75 |
# common targets |
2225
f064d3d3190d
20078677 Userland Makefiles should support a configure: target
John Beck <John.Beck@Oracle.COM>
parents:
1948
diff
changeset
|
76 |
configure: $(CONFIGURE_64) |
f064d3d3190d
20078677 Userland Makefiles should support a configure: target
John Beck <John.Beck@Oracle.COM>
parents:
1948
diff
changeset
|
77 |
|
1304
428fd83fdeb2
16810032 ircii should be 64-bit
Rich Burridge <rich.burridge@oracle.com>
parents:
1177
diff
changeset
|
78 |
build: $(BUILD_64) |
367
6ee87227d15e
7061198 Move ircii to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
79 |
|
1304
428fd83fdeb2
16810032 ircii should be 64-bit
Rich Burridge <rich.burridge@oracle.com>
parents:
1177
diff
changeset
|
80 |
install: $(INSTALL_64) |
367
6ee87227d15e
7061198 Move ircii to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
81 |
|
6ee87227d15e
7061198 Move ircii to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
82 |
test: $(NO_TESTS) |
6ee87227d15e
7061198 Move ircii to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
83 |
|
6ee87227d15e
7061198 Move ircii to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
84 |
|
3817
30b42c38bbc4
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
2225
diff
changeset
|
85 |
REQUIRED_PACKAGES += system/library |