Makefile revision 5355
b02207d5f93b958e34a7cc0e52b276a90e75d89cKnut Anders Hatlen#
b02207d5f93b958e34a7cc0e52b276a90e75d89cKnut Anders Hatlen# CDDL HEADER START
b02207d5f93b958e34a7cc0e52b276a90e75d89cKnut Anders Hatlen#
b02207d5f93b958e34a7cc0e52b276a90e75d89cKnut Anders Hatlen# The contents of this file are subject to the terms of the
b02207d5f93b958e34a7cc0e52b276a90e75d89cKnut Anders Hatlen# Common Development and Distribution License (the "License").
b02207d5f93b958e34a7cc0e52b276a90e75d89cKnut Anders Hatlen# You may not use this file except in compliance with the License.
b02207d5f93b958e34a7cc0e52b276a90e75d89cKnut Anders Hatlen#
b02207d5f93b958e34a7cc0e52b276a90e75d89cKnut Anders Hatlen# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
b02207d5f93b958e34a7cc0e52b276a90e75d89cKnut Anders Hatlen# or http://www.opensolaris.org/os/licensing.
b02207d5f93b958e34a7cc0e52b276a90e75d89cKnut Anders Hatlen# See the License for the specific language governing permissions
b02207d5f93b958e34a7cc0e52b276a90e75d89cKnut Anders Hatlen# and limitations under the License.
b02207d5f93b958e34a7cc0e52b276a90e75d89cKnut Anders Hatlen#
b02207d5f93b958e34a7cc0e52b276a90e75d89cKnut Anders Hatlen# When distributing Covered Code, include this CDDL HEADER in each
b02207d5f93b958e34a7cc0e52b276a90e75d89cKnut Anders Hatlen# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
b02207d5f93b958e34a7cc0e52b276a90e75d89cKnut Anders Hatlen# If applicable, add the following below this CDDL HEADER, with the
b02207d5f93b958e34a7cc0e52b276a90e75d89cKnut Anders Hatlen# fields enclosed by brackets "[]" replaced with your own identifying
b02207d5f93b958e34a7cc0e52b276a90e75d89cKnut Anders Hatlen# information: Portions Copyright [yyyy] [name of copyright owner]
b02207d5f93b958e34a7cc0e52b276a90e75d89cKnut Anders Hatlen#
b02207d5f93b958e34a7cc0e52b276a90e75d89cKnut Anders Hatlen# CDDL HEADER END
b02207d5f93b958e34a7cc0e52b276a90e75d89cKnut Anders Hatlen#
e8a20bc0a36e5885fa67503ba58be9c29ef96500Vladimir Kotal
b02207d5f93b958e34a7cc0e52b276a90e75d89cKnut Anders Hatlen#
b02207d5f93b958e34a7cc0e52b276a90e75d89cKnut Anders Hatlen# Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
b02207d5f93b958e34a7cc0e52b276a90e75d89cKnut Anders Hatlen#
b02207d5f93b958e34a7cc0e52b276a90e75d89cKnut Anders Hatlen
e8a20bc0a36e5885fa67503ba58be9c29ef96500Vladimir Kotalinclude ../../make-rules/shared-macros.mk
e8a20bc0a36e5885fa67503ba58be9c29ef96500Vladimir Kotal
e8a20bc0a36e5885fa67503ba58be9c29ef96500Vladimir KotalCOMPONENT_NAME= irssi
e8a20bc0a36e5885fa67503ba58be9c29ef96500Vladimir KotalCOMPONENT_VERSION= 0.8.15
e8a20bc0a36e5885fa67503ba58be9c29ef96500Vladimir KotalCOMPONENT_PROJECT_URL= https://irssi.org/
e8a20bc0a36e5885fa67503ba58be9c29ef96500Vladimir KotalCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
e8a20bc0a36e5885fa67503ba58be9c29ef96500Vladimir KotalCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.bz2
e8a20bc0a36e5885fa67503ba58be9c29ef96500Vladimir KotalCOMPONENT_ARCHIVE_HASH=\
e8a20bc0a36e5885fa67503ba58be9c29ef96500Vladimir Kotal sha256:c12d16fb605103d7c256ddce44012dc396af57f3771e086d0387c195a052a0a6
e8a20bc0a36e5885fa67503ba58be9c29ef96500Vladimir KotalCOMPONENT_ARCHIVE_URL= https://github.com/irssi-import/irssi/releases/download/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)
e8a20bc0a36e5885fa67503ba58be9c29ef96500Vladimir KotalCOMPONENT_BUGDB= utility/irssi
e8a20bc0a36e5885fa67503ba58be9c29ef96500Vladimir Kotal
b02207d5f93b958e34a7cc0e52b276a90e75d89cKnut Anders HatlenTPNO= 7900
e8a20bc0a36e5885fa67503ba58be9c29ef96500Vladimir Kotal
e8a20bc0a36e5885fa67503ba58be9c29ef96500Vladimir Kotalinclude $(WS_MAKE_RULES)/prep.mk
e8a20bc0a36e5885fa67503ba58be9c29ef96500Vladimir Kotalinclude $(WS_MAKE_RULES)/configure.mk
e8a20bc0a36e5885fa67503ba58be9c29ef96500Vladimir Kotalinclude $(WS_MAKE_RULES)/ips.mk
e8a20bc0a36e5885fa67503ba58be9c29ef96500Vladimir Kotal
b02207d5f93b958e34a7cc0e52b276a90e75d89cKnut Anders HatlenASLR_MODE = $(ASLR_ENABLE)
b02207d5f93b958e34a7cc0e52b276a90e75d89cKnut Anders Hatlen
b02207d5f93b958e34a7cc0e52b276a90e75d89cKnut Anders Hatlen# Part of the build just runs "cc" (not the path that configure finds).
b02207d5f93b958e34a7cc0e52b276a90e75d89cKnut Anders HatlenCOMPONENT_BUILD_ENV += PATH=$(dir $(CC)):$(PATH)
b02207d5f93b958e34a7cc0e52b276a90e75d89cKnut Anders Hatlen
e8a20bc0a36e5885fa67503ba58be9c29ef96500Vladimir Kotal# Need 64-bit perl.
e8a20bc0a36e5885fa67503ba58be9c29ef96500Vladimir KotalPERL_VERSION = 5.20
e8a20bc0a36e5885fa67503ba58be9c29ef96500Vladimir Kotal
b02207d5f93b958e34a7cc0e52b276a90e75d89cKnut Anders HatlenCONFIGURE_ENV += "ac_cv_path_perlpath=/usr/perl5/$(PERL_VERSION)/bin/perl"
e8a20bc0a36e5885fa67503ba58be9c29ef96500Vladimir Kotal
e8a20bc0a36e5885fa67503ba58be9c29ef96500Vladimir Kotal# Architecture specific perl subdirectory.
e8a20bc0a36e5885fa67503ba58be9c29ef96500Vladimir KotalPERL_ARCH_i386 = i86pc
e8a20bc0a36e5885fa67503ba58be9c29ef96500Vladimir KotalPERL_ARCH_sparc = sun4
e8a20bc0a36e5885fa67503ba58be9c29ef96500Vladimir KotalPERL_ARCH = $(PERL_ARCH_$(MACH))-solaris-thread-multi-64
e8a20bc0a36e5885fa67503ba58be9c29ef96500Vladimir Kotal
e8a20bc0a36e5885fa67503ba58be9c29ef96500Vladimir KotalCONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
e8a20bc0a36e5885fa67503ba58be9c29ef96500Vladimir Kotal
e8a20bc0a36e5885fa67503ba58be9c29ef96500Vladimir KotalCONFIGURE_OPTIONS += --bindir=/usr/bin
e8a20bc0a36e5885fa67503ba58be9c29ef96500Vladimir KotalCONFIGURE_OPTIONS += --sysconfdir=/etc
e8a20bc0a36e5885fa67503ba58be9c29ef96500Vladimir KotalCONFIGURE_OPTIONS += --with-perl=yes
e8a20bc0a36e5885fa67503ba58be9c29ef96500Vladimir KotalCONFIGURE_OPTIONS += --with-proxy
e8a20bc0a36e5885fa67503ba58be9c29ef96500Vladimir KotalCONFIGURE_OPTIONS += --with-perl-lib=/usr/perl5/vendor_perl/$(PERL_VERSION)
e8a20bc0a36e5885fa67503ba58be9c29ef96500Vladimir Kotal
e8a20bc0a36e5885fa67503ba58be9c29ef96500Vladimir Kotalconfigure: $(CONFIGURE_64)
e8a20bc0a36e5885fa67503ba58be9c29ef96500Vladimir Kotal
e8a20bc0a36e5885fa67503ba58be9c29ef96500Vladimir Kotalbuild: $(BUILD_64)
e8a20bc0a36e5885fa67503ba58be9c29ef96500Vladimir Kotal
e8a20bc0a36e5885fa67503ba58be9c29ef96500Vladimir Kotalinstall: $(INSTALL_64)
e8a20bc0a36e5885fa67503ba58be9c29ef96500Vladimir Kotal
e8a20bc0a36e5885fa67503ba58be9c29ef96500Vladimir Kotaltest: $(NO_TESTS)
e8a20bc0a36e5885fa67503ba58be9c29ef96500Vladimir Kotal
e8a20bc0a36e5885fa67503ba58be9c29ef96500Vladimir Kotalsystem-test: $(NO_TESTS)
e8a20bc0a36e5885fa67503ba58be9c29ef96500Vladimir Kotal
e8a20bc0a36e5885fa67503ba58be9c29ef96500Vladimir KotalREQUIRED_PACKAGES += library/glib2
e8a20bc0a36e5885fa67503ba58be9c29ef96500Vladimir KotalREQUIRED_PACKAGES += library/ncurses
e8a20bc0a36e5885fa67503ba58be9c29ef96500Vladimir KotalREQUIRED_PACKAGES += library/security/openssl
e8a20bc0a36e5885fa67503ba58be9c29ef96500Vladimir KotalREQUIRED_PACKAGES += runtime/perl-520
e8a20bc0a36e5885fa67503ba58be9c29ef96500Vladimir KotalREQUIRED_PACKAGES += system/library
e8a20bc0a36e5885fa67503ba58be9c29ef96500Vladimir Kotal