Makefile revision 301
2297N/A#
2297N/A# CDDL HEADER START
2297N/A#
2297N/A# The contents of this file are subject to the terms of the
2297N/A# Common Development and Distribution License (the "License").
2297N/A# You may not use this file except in compliance with the License.
2297N/A#
2297N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
2297N/A# or http://www.opensolaris.org/os/licensing.
2297N/A# See the License for the specific language governing permissions
2297N/A# and limitations under the License.
2297N/A#
2297N/A# When distributing Covered Code, include this CDDL HEADER in each
2297N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
2297N/A# If applicable, add the following below this CDDL HEADER, with the
2297N/A# fields enclosed by brackets "[]" replaced with your own identifying
2297N/A# information: Portions Copyright [yyyy] [name of copyright owner]
2297N/A#
2297N/A# CDDL HEADER END
2297N/A#
2297N/A
2297N/A#
2297N/A# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
2297N/A#
2297N/A
2297N/Ainclude ../../make-rules/shared-macros.mk
2297N/A
2297N/ACOMPONENT_NAME= nethack
2297N/ACOMPONENT_VERSION= 3.4.3
2297N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
2297N/ACOMPONENT_ARCHIVE= $(COMPONENT_NAME)-343-src.tgz
2297N/ACOMPONENT_ARCHIVE_HASH= sha1:c26537093c38152bc0fbcec20468d975b35f59fd
2297N/ACOMPONENT_ARCHIVE_URL= http://sourceforge.net/projects/$(COMPONENT_NAME)/files/$(COMPONENT_NAME)/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)/download
2297N/A
2297N/Ainclude ../../make-rules/prep.mk
2297N/Ainclude ../../make-rules/justmake.mk
2297N/Ainclude ../../make-rules/ips.mk
2297N/A
2297N/APATCH_LEVEL=0
2297N/A
2297N/A# Need to use Makefiles in the sys/unix directory and copy them into various
2297N/A# other directories.
2297N/A#
2297N/ACOMPONENT_PREP_ACTION= (cd $(SOURCE_DIR)/sys/unix ; sh setup.sh)
2297N/A
2297N/ACOMPONENT_INSTALL_ARGS += CHOWN=true
2297N/ACOMPONENT_INSTALL_ARGS += CHGRP=true
2297N/ACOMPONENT_INSTALL_ARGS += ROOT=$(PROTO_DIR)
2297N/A
2297N/APKG_PROTO_DIRS += $(COMPONENT_SRC)/doc
2297N/A
2297N/A# common targets
2297N/Abuild: $(BUILD_32)
2297N/A
2297N/Ainstall: $(INSTALL_32)
2297N/A sed -e 's/^!\(NetHack.tomb\)/\1/' -e 's/^!\(NetHack.pet\)/\1/' \
2297N/A -e 's/^!\(NetHack.tile_file\)/\1/' \
2297N/A $(COMPONENT_SRC)/win/X11/NetHack.ad \
2297N/A > $(PROTO_DIR)/usr/lib/nethack/NetHack.ad
2297N/A
2297N/Atest: $(NO_TESTS)
2297N/A
2297N/ABUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
2297N/A
2297N/Ainclude ../../make-rules/depend.mk
2297N/A