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