Makefile revision 5680
0N/A#
2362N/A# CDDL HEADER START
0N/A#
0N/A# The contents of this file are subject to the terms of the
0N/A# Common Development and Distribution License (the "License").
0N/A# You may not use this file except in compliance with the License.
2362N/A#
0N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
2362N/A# or http://www.opensolaris.org/os/licensing.
0N/A# See the License for the specific language governing permissions
0N/A# and limitations under the License.
0N/A#
0N/A# When distributing Covered Code, include this CDDL HEADER in each
0N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
0N/A# If applicable, add the following below this CDDL HEADER, with the
0N/A# fields enclosed by brackets "[]" replaced with your own identifying
0N/A# information: Portions Copyright [yyyy] [name of copyright owner]
0N/A#
0N/A# CDDL HEADER END
0N/A#
2362N/A
2362N/A#
2362N/A# Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
0N/A#
0N/ABUILD_BITS= 64
0N/Ainclude ../../make-rules/shared-macros.mk
0N/A
0N/APATH=$(dir $(CC)):$(USRBINDIR):$(GNUBIN)
0N/A
0N/ACOMPONENT_NAME= nethack
0N/ACOMPONENT_VERSION= 3.4.3
0N/ACOMPONENT_PROJECT_URL= http://www.nethack.org/
0N/ACOMPONENT_ARCHIVE= $(COMPONENT_NAME)-343-src.tgz
0N/ACOMPONENT_ARCHIVE_HASH= \
0N/A sha256:bb39c3d2a9ee2df4a0c8fdde708fbc63740853a7608d2f4c560b488124866fe4
0N/ACOMPONENT_ARCHIVE_URL= http://sourceforge.net/projects/$(COMPONENT_NAME)/files/$(COMPONENT_NAME)/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)/download
0N/A
0N/ATPNO= 9239
0N/A
0N/ABUILD_STYLE= justmake
0N/ATEST_TARGET= $(NO_TESTS)
0N/Ainclude $(WS_MAKE_RULES)/common.mk
0N/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)
# Nethack's build infrastructure doesn't let you easily override CFLAGS.
# Luckily, all the source files live in the same location relative to the
# include directory, so we can just stuff a -I into CFLAGS matching what's
# there in the Makefiles. And we have to force this to be overridden by
# putting -e into MAKEFLAGS.
COMPONENT_BUILD_ENV += CC=$(CC)
COMPONENT_BUILD_ENV += CFLAGS="$(CFLAGS) -I../include"
COMPONENT_BUILD_ENV += LFLAGS="$(CC_BITS)"
COMPONENT_BUILD_ENV += MAKEFLAGS=-e
COMPONENT_INSTALL_ENV += CC=$(CC)
COMPONENT_INSTALL_ENV += CFLAGS="$(CFLAGS) -I../include"
COMPONENT_INSTALL_ENV += LFLAGS="$(CC_BITS)"
COMPONENT_INSTALL_ENV += MAKEFLAGS=-e
COMPONENT_POST_INSTALL_ACTION += \
$(GSED) -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
PKG_PROTO_DIRS += $(COMPONENT_SRC)/doc
REQUIRED_PACKAGES += shell/ksh93
REQUIRED_PACKAGES += x11/compatibility/links-xorg
REQUIRED_PACKAGES += x11/library/libx11
REQUIRED_PACKAGES += x11/library/libxpm
REQUIRED_PACKAGES += x11/library/toolkit/libxaw7
REQUIRED_PACKAGES += x11/library/toolkit/libxt