components/irssi/Makefile
author Rich Burridge <rich.burridge@oracle.com>
Thu, 28 Jan 2016 07:08:16 -0800
changeset 5357 76a31ece4c74
parent 5225 d3c7046a4000
child 5638 b88b6c00208e
permissions -rw-r--r--
22611402 irssi should be 64-bit

#
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License (the "License").
# You may not use this file except in compliance with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# or http://www.opensolaris.org/os/licensing.
# See the License for the specific language governing permissions
# and limitations under the License.
#
# When distributing Covered Code, include this CDDL HEADER in each
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
# If applicable, add the following below this CDDL HEADER, with the
# fields enclosed by brackets "[]" replaced with your own identifying
# information: Portions Copyright [yyyy] [name of copyright owner]
#
# CDDL HEADER END
#

#
# Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
#

include ../../make-rules/shared-macros.mk

COMPONENT_NAME=         irssi
COMPONENT_VERSION=	0.8.15
COMPONENT_PROJECT_URL=	https://irssi.org/
COMPONENT_SRC=          $(COMPONENT_NAME)-$(COMPONENT_VERSION)
COMPONENT_ARCHIVE=      $(COMPONENT_SRC).tar.bz2
COMPONENT_ARCHIVE_HASH=\
	sha256:c12d16fb605103d7c256ddce44012dc396af57f3771e086d0387c195a052a0a6
COMPONENT_ARCHIVE_URL=	https://github.com/irssi-import/irssi/releases/download/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)
COMPONENT_BUGDB=	utility/irssi

TPNO=		7900

include $(WS_MAKE_RULES)/prep.mk
include $(WS_MAKE_RULES)/configure.mk
include $(WS_MAKE_RULES)/ips.mk

ASLR_MODE = $(ASLR_ENABLE)

# Part of the build just runs "cc" (not the path that configure finds).
COMPONENT_BUILD_ENV +=  PATH=$(dir $(CC)):$(PATH)

# Need 64-bit perl.
PERL_VERSION = 5.20

CONFIGURE_ENV += "ac_cv_path_perlpath=/usr/perl5/$(PERL_VERSION)/bin/perl"

# Architecture specific perl subdirectory.
PERL_ARCH_i386 = i86pc
PERL_ARCH_sparc = sun4
PERL_ARCH = $(PERL_ARCH_$(MACH))-solaris-thread-multi-64

CONFIGURE_OPTIONS +=	CFLAGS="$(CFLAGS)"

CONFIGURE_OPTIONS +=	--bindir=/usr/bin
CONFIGURE_OPTIONS +=    --sysconfdir=/etc
CONFIGURE_OPTIONS +=    --with-perl=yes
CONFIGURE_OPTIONS +=    --with-proxy
CONFIGURE_OPTIONS +=    --with-perl-lib=/usr/perl5/vendor_perl/$(PERL_VERSION)

configure:	$(CONFIGURE_64)

build:          $(BUILD_64)

install:        $(INSTALL_64)

test:           $(NO_TESTS)

system-test:    $(NO_TESTS)

REQUIRED_PACKAGES += library/glib2
REQUIRED_PACKAGES += library/ncurses
REQUIRED_PACKAGES += library/security/openssl
REQUIRED_PACKAGES += runtime/perl-520
REQUIRED_PACKAGES += system/library