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