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