Makefile revision 198
198N/A#
198N/A# CDDL HEADER START
198N/A#
198N/A# The contents of this file are subject to the terms of the
198N/A# Common Development and Distribution License (the "License").
198N/A# You may not use this file except in compliance with the License.
198N/A#
198N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
198N/A# or http://www.opensolaris.org/os/licensing.
198N/A# See the License for the specific language governing permissions
198N/A# and limitations under the License.
198N/A#
198N/A# When distributing Covered Code, include this CDDL HEADER in each
198N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
198N/A# If applicable, add the following below this CDDL HEADER, with the
198N/A# fields enclosed by brackets "[]" replaced with your own identifying
198N/A# information: Portions Copyright [yyyy] [name of copyright owner]
198N/A#
198N/A# CDDL HEADER END
198N/A#
198N/A
198N/A#
198N/A# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
198N/A#
198N/A
198N/Ainclude ../../make-rules/shared-macros.mk
198N/A
198N/APATH=/usr/bin:/usr/gnu/bin
198N/A
198N/ACOMPONENT_NAME= vim
198N/ACOMPONENT_VERSION= 7.2
198N/AIPS_COMPONENT_VERSION= $(shell find $(PATCH_DIR) -name $(PATCH_PATTERN) | \
198N/A sort | tail -1 | cut -d/ -f2)
198N/ACOMPONENT_SRC= vim72
198N/ACOMPONENT_PROJECT_URL= http://www.vim.org/
198N/ACOMPONENT_ARCHIVE= vim-$(COMPONENT_VERSION).tar.bz2
198N/ACOMPONENT_ARCHIVE_HASH= sha1:a4b6641ca528fada71ea77c998a441495ed4984c
198N/ACOMPONENT_ARCHIVE_URL= ftp://ftp.vim.org/pub/vim/unix/$(COMPONENT_ARCHIVE)
198N/A
198N/APATCH_DIR = $(COMPONENT_SRC)-patches
198N/APATCH_PATTERN = $(COMPONENT_VERSION).*
198N/AEXTRA_PATCHES = $(PATCH_DIR)/runtime.patch $(PATCH_DIR)/vim-help.patch
198N/A
198N/Ainclude ../../make-rules/prep.mk
198N/Ainclude ../../make-rules/configure.mk
198N/Ainclude ../../make-rules/ips.mk
198N/A
198N/APATCH_LEVEL = 0
198N/A
198N/APKG_MACROS += VIMVER=$(COMPONENT_SRC)
198N/A
198N/AX_VARIANT = $(BUILD_DIR)/$(MACH32)-gvim
198N/ANOX_VARIANT = $(BUILD_DIR)/$(MACH32)-vim
198N/A
198N/AVARIANTS = $(X_VARIANT) $(NOX_VARIANT)
198N/A
198N/A$(VARIANTS:%=%/.configured): BITS=32
198N/A
198N/ABUILD_32 = $(VARIANTS:%=%/.built)
198N/A
198N/A# Only install the non-X variant. We will cherry-pick gvim out of the build
198N/A# directory to avoid re-installing everything.
198N/AINSTALL_32 = $(NOX_VARIANT)/.installed
198N/A
198N/ATEST_32 = $(NOX_VARIANT)/.tested
198N/A
198N/ACONFIGURE_OPTIONS += --with-features=huge
198N/A
198N/A# We build two variants: with and without X support.
198N/A$(NOX_VARIANT)/.configured: CONFIGURE_OPTIONS += --without-x
198N/A$(NOX_VARIANT)/.configured: CONFIGURE_OPTIONS += --disable-gui
198N/A$(NOX_VARIANT)/.configured: CONFIGURE_OPTIONS += --disable-gtktest
198N/A$(X_VARIANT)/.configured: CONFIGURE_OPTIONS += --with-vim-name=gvim
198N/A$(X_VARIANT)/.configured: CONFIGURE_OPTIONS += --with-x
198N/A$(X_VARIANT)/.configured: CONFIGURE_OPTIONS += --enable-gui=gtk2
198N/A$(X_VARIANT)/.configured: CONFIGURE_OPTIONS += --enable-gtk2-check
198N/A
198N/A# Vim's build is too smart for itself and configure can't run outside of a
198N/A# complete source tree.
198N/ACOMPONENT_PRE_CONFIGURE_ACTION = ($(CLONEY) $(SOURCE_DIR) $(@D))
198N/A
198N/A$(SOURCE_DIR)/runtime/doc/uganda.txt: prep
198N/A
198N/A$(BUILD_DIR)/license: $(SOURCE_DIR)/runtime/doc/uganda.txt
198N/A nawk '/begin of license/ {p=1; getline; next} /end of license/ {p=0} p == 1 {print}' $< > $@
198N/A
198N/A# common targets
198N/Abuild: $(BUILD_32)
198N/A
198N/Ainstall: $(INSTALL_32) $(X_VARIANT)/.built $(BUILD_DIR)/license
198N/A
198N/Atest: $(TEST_32)
198N/A
198N/ABUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
198N/A
198N/Ainclude ../../make-rules/depend.mk