commit | author | age
|
f73737
|
1 |
# |
SS |
2 |
# CDDL HEADER START |
|
3 |
# |
|
4 |
# The contents of this file are subject to the terms of the |
|
5 |
# Common Development and Distribution License (the "License"). |
|
6 |
# You may not use this file except in compliance with the License. |
|
7 |
# |
|
8 |
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE |
|
9 |
# or http://www.opensolaris.org/os/licensing. |
|
10 |
# See the License for the specific language governing permissions |
|
11 |
# and limitations under the License. |
|
12 |
# |
|
13 |
# When distributing Covered Code, include this CDDL HEADER in each |
|
14 |
# file and include the License file at usr/src/OPENSOLARIS.LICENSE. |
|
15 |
# If applicable, add the following below this CDDL HEADER, with the |
|
16 |
# fields enclosed by brackets "[]" replaced with your own identifying |
|
17 |
# information: Portions Copyright [yyyy] [name of copyright owner] |
|
18 |
# |
|
19 |
# CDDL HEADER END |
|
20 |
# |
|
21 |
|
|
22 |
# |
2f45be
|
23 |
# Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved. |
f73737
|
24 |
# |
SS |
25 |
|
|
26 |
include ../../make-rules/shared-macros.mk |
|
27 |
|
|
28 |
COMPONENT_NAME= ircii |
2f45be
|
29 |
COMPONENT_VERSION= 20111115 |
RB |
30 |
IPS_COMPONENT_VERSION= 0.2011.11.15 |
60e6e0
|
31 |
COMPONENT_PROJECT_URL= http://www.eterna.com.au/ircii/ |
f73737
|
32 |
COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION) |
SS |
33 |
COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz |
35e110
|
34 |
COMPONENT_ARCHIVE_HASH= \ |
2f45be
|
35 |
sha256:629a0a335c790aa5fa9f327532d1d45fd37d2fcd1902e8b0ee28b51994dcf604 |
RB |
36 |
COMPONENT_ARCHIVE_URL= ftp://ircii.warped.com/pub/ircII/$(COMPONENT_ARCHIVE) |
3b89c9
|
37 |
COMPONENT_BUGDB= utility/ircii |
f73737
|
38 |
|
SS |
39 |
include ../../make-rules/prep.mk |
|
40 |
include ../../make-rules/configure.mk |
|
41 |
include ../../make-rules/ips.mk |
|
42 |
|
65e414
|
43 |
# Needed to correctly include <curses.h> and <term.h> when compiling the |
RB |
44 |
# various C source files. |
|
45 |
CFLAGS += -DINCLUDE_CURSES_H |
|
46 |
|
f73737
|
47 |
CONFIGURE_ENV += CC="$(CC)" |
65e414
|
48 |
CONFIGURE_ENV += CFLAGS="$(CFLAGS)" |
RB |
49 |
|
|
50 |
CC += $(CC_BITS) |
|
51 |
COMPONENT_BUILD_ARGS += CC="$(CC)" |
f73737
|
52 |
|
SS |
53 |
# We need to reset configure options here because ircii is confused with |
|
54 |
# CC and CFLAGS definitions as configure parameters. |
|
55 |
CONFIGURE_OPTIONS = --prefix=/usr |
|
56 |
CONFIGURE_OPTIONS += --mandir=$(CONFIGURE_MANDIR) |
|
57 |
CONFIGURE_OPTIONS += --bindir=$(CONFIGURE_BINDIR.$(BITS)) |
|
58 |
CONFIGURE_OPTIONS += $(CONFIGURE_OPTIONS.$(BITS)) |
|
59 |
|
2f45be
|
60 |
# The ircio and wserv are now installed in the libexecdir, which by |
RB |
61 |
# default is /usr/libexec. We want to install them under /usr/bin. |
|
62 |
# One would think that you could just set --libexecdir=/usr/bin but no. |
|
63 |
# The configure script has some logic that just blindly resets it back |
|
64 |
# to /usr/libexec. This problem has been reported to the ircii maintainer. |
|
65 |
# |
|
66 |
# This action modifies the libexecdir setting in the Makefile to /usr/bin |
|
67 |
COMPONENT_POST_CONFIGURE_ACTION = \ |
65e414
|
68 |
$(GSED) -i -e 's|/usr/libexec|/usr/bin|' $(BUILD_DIR_64)/Makefile |
2f45be
|
69 |
|
RB |
70 |
# Enable ASLR for this component |
|
71 |
ASLR_MODE = $(ASLR_ENABLE) |
f73737
|
72 |
|
SS |
73 |
# common targets |
65e414
|
74 |
build: $(BUILD_64) |
f73737
|
75 |
|
65e414
|
76 |
install: $(INSTALL_64) |
f73737
|
77 |
|
SS |
78 |
test: $(NO_TESTS) |
|
79 |
|
|
80 |
BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS) |
|
81 |
|
|
82 |
include ../../make-rules/depend.mk |