Makefile revision 402
c60f0e1a81c07f23a42f2fdfaebf747bcdd30ae7Tim Reddehase#
c60f0e1a81c07f23a42f2fdfaebf747bcdd30ae7Tim Reddehase# CDDL HEADER START
cb09f778ad6878e2a08030d75410c130c737ba41Tim Reddehase#
d731d2608b96a59e2dbef7cdd0cd8f3d7eed955aTim Reddehase# The contents of this file are subject to the terms of the
cb09f778ad6878e2a08030d75410c130c737ba41Tim Reddehase# Common Development and Distribution License (the "License").
cb09f778ad6878e2a08030d75410c130c737ba41Tim Reddehase# You may not use this file except in compliance with the License.
cb09f778ad6878e2a08030d75410c130c737ba41Tim Reddehase#
cb09f778ad6878e2a08030d75410c130c737ba41Tim Reddehase# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
cb09f778ad6878e2a08030d75410c130c737ba41Tim Reddehase# or http://www.opensolaris.org/os/licensing.
cb09f778ad6878e2a08030d75410c130c737ba41Tim Reddehase# See the License for the specific language governing permissions
cb09f778ad6878e2a08030d75410c130c737ba41Tim Reddehase# and limitations under the License.
d731d2608b96a59e2dbef7cdd0cd8f3d7eed955aTim Reddehase#
cb09f778ad6878e2a08030d75410c130c737ba41Tim Reddehase# When distributing Covered Code, include this CDDL HEADER in each
cb09f778ad6878e2a08030d75410c130c737ba41Tim Reddehase# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
cb09f778ad6878e2a08030d75410c130c737ba41Tim Reddehase# If applicable, add the following below this CDDL HEADER, with the
cb09f778ad6878e2a08030d75410c130c737ba41Tim Reddehase# fields enclosed by brackets "[]" replaced with your own identifying
cb09f778ad6878e2a08030d75410c130c737ba41Tim Reddehase# information: Portions Copyright [yyyy] [name of copyright owner]
cb09f778ad6878e2a08030d75410c130c737ba41Tim Reddehase#
cb09f778ad6878e2a08030d75410c130c737ba41Tim Reddehase# CDDL HEADER END
cb09f778ad6878e2a08030d75410c130c737ba41Tim Reddehase#
cb09f778ad6878e2a08030d75410c130c737ba41Tim Reddehase
c60f0e1a81c07f23a42f2fdfaebf747bcdd30ae7Tim Reddehase#
c60f0e1a81c07f23a42f2fdfaebf747bcdd30ae7Tim Reddehase# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
c60f0e1a81c07f23a42f2fdfaebf747bcdd30ae7Tim Reddehase#
d731d2608b96a59e2dbef7cdd0cd8f3d7eed955aTim Reddehase
c60f0e1a81c07f23a42f2fdfaebf747bcdd30ae7Tim Reddehaseinclude ../../make-rules/shared-macros.mk
c60f0e1a81c07f23a42f2fdfaebf747bcdd30ae7Tim Reddehaseinclude ../../make-rules/shared-targets.mk
c60f0e1a81c07f23a42f2fdfaebf747bcdd30ae7Tim Reddehase
c60f0e1a81c07f23a42f2fdfaebf747bcdd30ae7Tim ReddehaseCOMPONENT_NAME= zsh
c60f0e1a81c07f23a42f2fdfaebf747bcdd30ae7Tim ReddehaseCOMPONENT_VERSION= 4.3.12
c60f0e1a81c07f23a42f2fdfaebf747bcdd30ae7Tim ReddehaseCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
c60f0e1a81c07f23a42f2fdfaebf747bcdd30ae7Tim ReddehaseCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.bz2
c60f0e1a81c07f23a42f2fdfaebf747bcdd30ae7Tim ReddehaseCOMPONENT_ARCHIVE_HASH= sha1:8fd7a6d841770c8b12cf3ae8229dd857ecdbad93
cb09f778ad6878e2a08030d75410c130c737ba41Tim ReddehaseCOMPONENT_ARCHIVE_URL= http://downloads.sourceforge.net/project/zsh/zsh-dev/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)
cb09f778ad6878e2a08030d75410c130c737ba41Tim Reddehase
cb09f778ad6878e2a08030d75410c130c737ba41Tim Reddehaseinclude ../../make-rules/prep.mk
0e9a600d7b5b2bf21d7105b4513b9b5d6e85ba03Eugen Kuksainclude ../../make-rules/configure.mk
0e9a600d7b5b2bf21d7105b4513b9b5d6e85ba03Eugen Kuksainclude ../../make-rules/ips.mk
0e9a600d7b5b2bf21d7105b4513b9b5d6e85ba03Eugen Kuksa
0e9a600d7b5b2bf21d7105b4513b9b5d6e85ba03Eugen KuksaCONFIGURE_OPTIONS += -n
0e9a600d7b5b2bf21d7105b4513b9b5d6e85ba03Eugen KuksaCONFIGURE_OPTIONS += --enable-cppflags="$(CPP_LARGEFILES)"
0e9a600d7b5b2bf21d7105b4513b9b5d6e85ba03Eugen KuksaCONFIGURE_OPTIONS += --enable-dynamic
6f6f5298a9d018416275e6e664bf7a8d7c40016eEugen KuksaCONFIGURE_OPTIONS += --enable-etcdir=/etc
6f6f5298a9d018416275e6e664bf7a8d7c40016eEugen KuksaCONFIGURE_OPTIONS += --enable-function-subdirs
37f8751b279b9fbe3033dfdc2b08a67083878afbEugen KuksaCONFIGURE_OPTIONS += --enable-ldflags="-zignore"
0e9a600d7b5b2bf21d7105b4513b9b5d6e85ba03Eugen KuksaCONFIGURE_OPTIONS += --enable-libs="-lnsl"
0e9a600d7b5b2bf21d7105b4513b9b5d6e85ba03Eugen KuksaCONFIGURE_OPTIONS += --enable-maildir-support
0e9a600d7b5b2bf21d7105b4513b9b5d6e85ba03Eugen KuksaCONFIGURE_OPTIONS += --enable-multibyte
0e9a600d7b5b2bf21d7105b4513b9b5d6e85ba03Eugen KuksaCONFIGURE_OPTIONS += --enable-pcre
0e9a600d7b5b2bf21d7105b4513b9b5d6e85ba03Eugen KuksaCONFIGURE_OPTIONS += --with-tcsetpgrp
0e9a600d7b5b2bf21d7105b4513b9b5d6e85ba03Eugen KuksaCONFIGURE_OPTIONS += --disable-gdbm
0e9a600d7b5b2bf21d7105b4513b9b5d6e85ba03Eugen Kuksa
6f6f5298a9d018416275e6e664bf7a8d7c40016eEugen Kuksa# pcre-config --libs unnecessarily emits "-L/usr/lib -R/usr/lib"; we remove it
37f8751b279b9fbe3033dfdc2b08a67083878afbEugen Kuksa# so that it doesn't end up in the binaries.
37f8751b279b9fbe3033dfdc2b08a67083878afbEugen KuksaCOMPONENT_POST_CONFIGURE_ACTION = \
37f8751b279b9fbe3033dfdc2b08a67083878afbEugen Kuksa (cd $(@D); \
37f8751b279b9fbe3033dfdc2b08a67083878afbEugen Kuksa sed -e 's,-L/usr/lib -R/usr/lib,,' \
37f8751b279b9fbe3033dfdc2b08a67083878afbEugen Kuksa config.status > config.status.new; \
37f8751b279b9fbe3033dfdc2b08a67083878afbEugen Kuksa mv config.status.new config.status; \
37f8751b279b9fbe3033dfdc2b08a67083878afbEugen Kuksa chmod 755 config.status; \
./config.status)
COMPOVERRIDES = $(shell find Completion -type f -print)
$(PROTOETCDIR)/%: % $(PROTOETCDIR)
$(INS.file)
$(PROTOETCDIR)/zprofile: $(PROTOETCDIR)
$(RM) $@; $(SYMLINK) profile $@
# makepro.awk leaves turds behind when using gawk 3.1.5 and LANG=en_US.UTF-8.
# Upgrading gawk would fix the problem, but for now, all we can do is change
# the language.
COMPONENT_BUILD_ENV += LANG=C
$(COMPONENT_SRC)/Completion/%: Completion/%
$(CP) $< $@
$(COMPONENT_SRC)/LICENCE: prep
license: $(COMPONENT_SRC)/LICENCE
iconv -f 8859-1 -t utf-8 $< > $@
CLEAN_PATHS += license
# common targets
build: $(BUILD_32) $(COMPOVERRIDES:%=$(COMPONENT_SRC)/%)
install: build $(INSTALL_32) $(PROTOETCDIR)/zprofile $(PROTOETCDIR)/zshrc license
# build does this always
test: $(TEST_32)
BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
include ../../make-rules/depend.mk