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