Merge pull request #2528 from alarcher/sudosh2
[unleashed-userland.git] / components / ircii / Makefile
blob138760fe64dd017c4e3dddded3226c86ee3f38f3
2 # CDDL HEADER START
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.
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.
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]
19 # CDDL HEADER END
23 # Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved.
26 include ../../make-rules/shared-macros.mk
28 COMPONENT_NAME= ircii
29 COMPONENT_VERSION= 20111115
30 COMPONENT_REVISION= 1
31 IPS_COMPONENT_VERSION= 0.2011.11.15
32 COMPONENT_PROJECT_URL= http://www.eterna.com.au/ircii/
33 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
34 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.bz2
35 COMPONENT_ARCHIVE_HASH= \
36 sha256:5c6b4390b8ed04cf3b08a3ba72f41eba9b125d0fc09c637f7c7f81eb6bdd91e6
37 COMPONENT_ARCHIVE_URL= http://ircii.warped.com/old/$(COMPONENT_ARCHIVE)
38 COMPONENT_BUGDB= utility/ircii
40 include ../../make-rules/prep.mk
41 include ../../make-rules/configure.mk
42 include ../../make-rules/ips.mk
44 # Needed to correctly include <curses.h> and <term.h> when compiling the
45 # various C source files.
46 CFLAGS += -DINCLUDE_CURSES_H
48 CC += $(CC_BITS)
49 COMPONENT_BUILD_ARGS += CC="$(CC)"
51 # We need to reset configure options here because ircii is confused with
52 # CC and CFLAGS definitions as configure parameters.
53 CONFIGURE_OPTIONS = --prefix=/usr
54 CONFIGURE_OPTIONS += --mandir=$(CONFIGURE_MANDIR)
55 CONFIGURE_OPTIONS += --bindir=$(CONFIGURE_BINDIR.$(BITS))
56 CONFIGURE_OPTIONS += $(CONFIGURE_OPTIONS.$(BITS))
58 # The ircio and wserv are now installed in the libexecdir, which by
59 # default is /usr/libexec. We want to install them under /usr/bin.
60 # One would think that you could just set --libexecdir=/usr/bin but no.
61 # The configure script has some logic that just blindly resets it back
62 # to /usr/libexec. This problem has been reported to the ircii maintainer.
64 # This action modifies the libexecdir setting in the Makefile to /usr/bin
65 COMPONENT_POST_CONFIGURE_ACTION = \
66 $(GSED) -i -e 's|/usr/libexec|/usr/bin|' $(BUILD_DIR_32)/Makefile
68 # Enable ASLR for this component
69 ASLR_MODE = $(ASLR_ENABLE)
71 # common targets
72 build: $(BUILD_32)
74 install: $(INSTALL_32)
76 test: $(NO_TESTS)
78 BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
80 include ../../make-rules/depend.mk