Makefile revision 814
7d2b275f7e9238e2c709737601f6260b5a9a4ee1Mark Andrews#
7d2b275f7e9238e2c709737601f6260b5a9a4ee1Mark Andrews# CDDL HEADER START
7d2b275f7e9238e2c709737601f6260b5a9a4ee1Mark Andrews#
7d2b275f7e9238e2c709737601f6260b5a9a4ee1Mark Andrews# The contents of this file are subject to the terms of the
7d2b275f7e9238e2c709737601f6260b5a9a4ee1Mark Andrews# Common Development and Distribution License (the "License").
7d2b275f7e9238e2c709737601f6260b5a9a4ee1Mark Andrews# You may not use this file except in compliance with the License.
7d2b275f7e9238e2c709737601f6260b5a9a4ee1Mark Andrews#
7d2b275f7e9238e2c709737601f6260b5a9a4ee1Mark Andrews# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
7d2b275f7e9238e2c709737601f6260b5a9a4ee1Mark Andrews# or http://www.opensolaris.org/os/licensing.
7d2b275f7e9238e2c709737601f6260b5a9a4ee1Mark Andrews# See the License for the specific language governing permissions
7d2b275f7e9238e2c709737601f6260b5a9a4ee1Mark Andrews# and limitations under the License.
7d2b275f7e9238e2c709737601f6260b5a9a4ee1Mark Andrews#
7d2b275f7e9238e2c709737601f6260b5a9a4ee1Mark Andrews# When distributing Covered Code, include this CDDL HEADER in each
7d2b275f7e9238e2c709737601f6260b5a9a4ee1Mark Andrews# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
7d2b275f7e9238e2c709737601f6260b5a9a4ee1Mark Andrews# If applicable, add the following below this CDDL HEADER, with the
7d2b275f7e9238e2c709737601f6260b5a9a4ee1Mark Andrews# fields enclosed by brackets "[]" replaced with your own identifying
7d2b275f7e9238e2c709737601f6260b5a9a4ee1Mark Andrews# information: Portions Copyright [yyyy] [name of copyright owner]
7d2b275f7e9238e2c709737601f6260b5a9a4ee1Mark Andrews#
7d2b275f7e9238e2c709737601f6260b5a9a4ee1Mark Andrews# CDDL HEADER END
7d2b275f7e9238e2c709737601f6260b5a9a4ee1Mark Andrews#
7d2b275f7e9238e2c709737601f6260b5a9a4ee1Mark Andrews
7d2b275f7e9238e2c709737601f6260b5a9a4ee1Mark Andrews#
7d2b275f7e9238e2c709737601f6260b5a9a4ee1Mark Andrews# Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
7d2b275f7e9238e2c709737601f6260b5a9a4ee1Mark Andrews#
7d2b275f7e9238e2c709737601f6260b5a9a4ee1Mark Andrews
7d2b275f7e9238e2c709737601f6260b5a9a4ee1Mark Andrewsinclude ../../make-rules/shared-macros.mk
7d2b275f7e9238e2c709737601f6260b5a9a4ee1Mark Andrews
7d2b275f7e9238e2c709737601f6260b5a9a4ee1Mark AndrewsPATH=$(dir $(CC)):/usr/bin:/usr/gnu/bin
7d2b275f7e9238e2c709737601f6260b5a9a4ee1Mark Andrews
7d2b275f7e9238e2c709737601f6260b5a9a4ee1Mark AndrewsCOMPONENT_NAME= nethack
7d2b275f7e9238e2c709737601f6260b5a9a4ee1Mark AndrewsCOMPONENT_VERSION= 3.4.3
7d2b275f7e9238e2c709737601f6260b5a9a4ee1Mark AndrewsCOMPONENT_PROJECT_URL= http://www.nethack.org/
7d2b275f7e9238e2c709737601f6260b5a9a4ee1Mark AndrewsCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
7d2b275f7e9238e2c709737601f6260b5a9a4ee1Mark AndrewsCOMPONENT_ARCHIVE= $(COMPONENT_NAME)-343-src.tgz
7d2b275f7e9238e2c709737601f6260b5a9a4ee1Mark AndrewsCOMPONENT_ARCHIVE_HASH= sha1:c26537093c38152bc0fbcec20468d975b35f59fd
7d2b275f7e9238e2c709737601f6260b5a9a4ee1Mark AndrewsCOMPONENT_ARCHIVE_URL= http://sourceforge.net/projects/$(COMPONENT_NAME)/files/$(COMPONENT_NAME)/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)/download
7d2b275f7e9238e2c709737601f6260b5a9a4ee1Mark Andrews
7d2b275f7e9238e2c709737601f6260b5a9a4ee1Mark Andrewsinclude ../../make-rules/prep.mk
7d2b275f7e9238e2c709737601f6260b5a9a4ee1Mark Andrewsinclude ../../make-rules/justmake.mk
7d2b275f7e9238e2c709737601f6260b5a9a4ee1Mark Andrewsinclude ../../make-rules/ips.mk
7d2b275f7e9238e2c709737601f6260b5a9a4ee1Mark Andrews
7d2b275f7e9238e2c709737601f6260b5a9a4ee1Mark AndrewsPATCH_LEVEL=0
7d2b275f7e9238e2c709737601f6260b5a9a4ee1Mark Andrews
7d2b275f7e9238e2c709737601f6260b5a9a4ee1Mark Andrews# Need to use Makefiles in the sys/unix directory and copy them into various
7d2b275f7e9238e2c709737601f6260b5a9a4ee1Mark Andrews# other directories.
7d2b275f7e9238e2c709737601f6260b5a9a4ee1Mark Andrews#
7d2b275f7e9238e2c709737601f6260b5a9a4ee1Mark AndrewsCOMPONENT_PREP_ACTION= (cd $(SOURCE_DIR)/sys/unix ; sh setup.sh)
7d2b275f7e9238e2c709737601f6260b5a9a4ee1Mark Andrews
7d2b275f7e9238e2c709737601f6260b5a9a4ee1Mark AndrewsCOMPONENT_INSTALL_ARGS += CHOWN=true
7d2b275f7e9238e2c709737601f6260b5a9a4ee1Mark AndrewsCOMPONENT_INSTALL_ARGS += CHGRP=true
7d2b275f7e9238e2c709737601f6260b5a9a4ee1Mark AndrewsCOMPONENT_INSTALL_ARGS += ROOT=$(PROTO_DIR)
7d2b275f7e9238e2c709737601f6260b5a9a4ee1Mark Andrews
7d2b275f7e9238e2c709737601f6260b5a9a4ee1Mark AndrewsCOMPONENT_BUILD_ENV += CC=$(CC)
7d2b275f7e9238e2c709737601f6260b5a9a4ee1Mark AndrewsCOMPONENT_INSTALL_ENV += CC=$(CC)
7d2b275f7e9238e2c709737601f6260b5a9a4ee1Mark Andrews
7d2b275f7e9238e2c709737601f6260b5a9a4ee1Mark AndrewsPKG_PROTO_DIRS += $(COMPONENT_SRC)/doc
7d2b275f7e9238e2c709737601f6260b5a9a4ee1Mark Andrews
7d2b275f7e9238e2c709737601f6260b5a9a4ee1Mark Andrews# common targets
7d2b275f7e9238e2c709737601f6260b5a9a4ee1Mark Andrewsbuild: $(BUILD_32)
7d2b275f7e9238e2c709737601f6260b5a9a4ee1Mark Andrews
7d2b275f7e9238e2c709737601f6260b5a9a4ee1Mark Andrewsinstall: $(INSTALL_32)
7d2b275f7e9238e2c709737601f6260b5a9a4ee1Mark Andrews sed -e 's/^!\(NetHack.tomb\)/\1/' -e 's/^!\(NetHack.pet\)/\1/' \
7d2b275f7e9238e2c709737601f6260b5a9a4ee1Mark Andrews -e 's/^!\(NetHack.tile_file\)/\1/' \
7d2b275f7e9238e2c709737601f6260b5a9a4ee1Mark Andrews $(COMPONENT_SRC)/win/X11/NetHack.ad \
7d2b275f7e9238e2c709737601f6260b5a9a4ee1Mark Andrews > $(PROTO_DIR)/usr/lib/nethack/NetHack.ad
7d2b275f7e9238e2c709737601f6260b5a9a4ee1Mark Andrews
7d2b275f7e9238e2c709737601f6260b5a9a4ee1Mark Andrewstest: $(NO_TESTS)
7d2b275f7e9238e2c709737601f6260b5a9a4ee1Mark Andrews
7d2b275f7e9238e2c709737601f6260b5a9a4ee1Mark AndrewsBUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
7d2b275f7e9238e2c709737601f6260b5a9a4ee1Mark Andrews
7d2b275f7e9238e2c709737601f6260b5a9a4ee1Mark Andrewsinclude ../../make-rules/depend.mk
7d2b275f7e9238e2c709737601f6260b5a9a4ee1Mark Andrews