Makefile revision 4029
869N/A#
869N/A# CDDL HEADER START
869N/A#
869N/A# The contents of this file are subject to the terms of the
869N/A# Common Development and Distribution License (the "License").
869N/A# You may not use this file except in compliance with the License.
869N/A#
869N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
869N/A# or http://www.opensolaris.org/os/licensing.
869N/A# See the License for the specific language governing permissions
869N/A# and limitations under the License.
869N/A#
869N/A# When distributing Covered Code, include this CDDL HEADER in each
869N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
869N/A# If applicable, add the following below this CDDL HEADER, with the
869N/A# fields enclosed by brackets "[]" replaced with your own identifying
869N/A# information: Portions Copyright [yyyy] [name of copyright owner]
873N/A#
869N/A# CDDL HEADER END
869N/A#
869N/A
869N/A#
5005N/A# Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
5268N/A#
869N/A
869N/Ainclude ../../make-rules/shared-macros.mk
0N/A
0N/APATH=$(dir $(CC)):/usr/bin:/usr/gnu/bin
0N/A
0N/ACOMPONENT_NAME= nethack
869N/ACOMPONENT_VERSION= 3.4.3
0N/ACOMPONENT_PROJECT_URL= http://www.nethack.org/
0N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
0N/ACOMPONENT_ARCHIVE= $(COMPONENT_NAME)-343-src.tgz
869N/ACOMPONENT_ARCHIVE_HASH= \
0N/A sha256:bb39c3d2a9ee2df4a0c8fdde708fbc63740853a7608d2f4c560b488124866fe4
869N/ACOMPONENT_ARCHIVE_URL= http://sourceforge.net/projects/$(COMPONENT_NAME)/files/$(COMPONENT_NAME)/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)/download
0N/ACOMPONENT_BUGDB= utility/nethack
869N/A
869N/ATPNO= 9239
869N/A
2624N/Ainclude $(WS_MAKE_RULES)/prep.mk
869N/Ainclude $(WS_MAKE_RULES)/justmake.mk
48N/Ainclude $(WS_MAKE_RULES)/ips.mk
869N/A
0N/APATCH_LEVEL=0
869N/A
716N/A# Need to use Makefiles in the sys/unix directory and copy them into various
869N/A# other directories.
1958N/A#
1963N/ACOMPONENT_PREP_ACTION= (cd $(SOURCE_DIR)/sys/unix ; sh setup.sh)
2340N/A
3103N/ACOMPONENT_INSTALL_ARGS += CHOWN=true
3127N/ACOMPONENT_INSTALL_ARGS += CHGRP=true
3679N/ACOMPONENT_INSTALL_ARGS += ROOT=$(PROTO_DIR)
5244N/A
1954N/A# Nethack's build infrastructure doesn't let you easily override CFLAGS.
1954N/A# Luckily, all the source files live in the same location relative to the
1954N/A# include directory, so we can just stuff a -I into CFLAGS matching what's
1954N/A# there in the Makefiles. And we have to force this to be overridden by
1954N/A# putting -e into MAKEFLAGS.
1954N/ACOMPONENT_BUILD_ENV += CC=$(CC)
4306N/ACOMPONENT_BUILD_ENV += CFLAGS="$(CFLAGS) -I../include"
4306N/ACOMPONENT_BUILD_ENV += LFLAGS="$(CC_BITS)"
4306N/ACOMPONENT_BUILD_ENV += MAKEFLAGS=-e
1954N/ACOMPONENT_INSTALL_ENV += CC=$(CC)
1954N/ACOMPONENT_INSTALL_ENV += CFLAGS="$(CFLAGS) -I../include"
1954N/ACOMPONENT_INSTALL_ENV += LFLAGS="$(CC_BITS)"
1954N/ACOMPONENT_INSTALL_ENV += MAKEFLAGS=-e
5221N/A
0N/APKG_PROTO_DIRS += $(COMPONENT_SRC)/doc
0N/A
869N/AASLR_MODE = $(ASLR_ENABLE)
868N/A
2624N/A# common targets
2693N/Abuild: $(BUILD_64)
2042N/A
4563N/Ainstall: $(INSTALL_64)
2982N/A sed -e 's/^!\(NetHack.tomb\)/\1/' -e 's/^!\(NetHack.pet\)/\1/' \
4898N/A -e 's/^!\(NetHack.tile_file\)/\1/' \
4898N/A $(COMPONENT_SRC)/win/X11/NetHack.ad \
2980N/A > $(PROTO_DIR)/usr/lib/nethack/NetHack.ad
2963N/A
1503N/Atest: $(NO_TESTS)
2915N/A
4501N/A
869N/AREQUIRED_PACKAGES += shell/ksh93
2624N/AREQUIRED_PACKAGES += system/library
2624N/AREQUIRED_PACKAGES += x11/compatibility/links-xorg
0N/AREQUIRED_PACKAGES += x11/library/libx11
2270N/AREQUIRED_PACKAGES += x11/library/libxpm
2270N/AREQUIRED_PACKAGES += x11/library/toolkit/libxaw7
2270N/AREQUIRED_PACKAGES += x11/library/toolkit/libxt
2270N/A