Makefile revision 485
1795e934ebcd58175d3b5bbdd811b13c7889efa3Timo Sirainen#
1795e934ebcd58175d3b5bbdd811b13c7889efa3Timo Sirainen# CDDL HEADER START
1795e934ebcd58175d3b5bbdd811b13c7889efa3Timo Sirainen#
1795e934ebcd58175d3b5bbdd811b13c7889efa3Timo Sirainen# The contents of this file are subject to the terms of the
82995cc154a929f37aa486a72a6485e9f8d34a30Timo Sirainen# Common Development and Distribution License (the "License").
1795e934ebcd58175d3b5bbdd811b13c7889efa3Timo Sirainen# You may not use this file except in compliance with the License.
a35cbba04d0a2823da98e693bd09a051addffdb2Timo Sirainen#
1795e934ebcd58175d3b5bbdd811b13c7889efa3Timo Sirainen# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
1795e934ebcd58175d3b5bbdd811b13c7889efa3Timo Sirainen# or http://www.opensolaris.org/os/licensing.
1795e934ebcd58175d3b5bbdd811b13c7889efa3Timo Sirainen# See the License for the specific language governing permissions
82995cc154a929f37aa486a72a6485e9f8d34a30Timo Sirainen# and limitations under the License.
cb951d3282610a9a0960230865bc5f3e3347b203Timo Sirainen#
82995cc154a929f37aa486a72a6485e9f8d34a30Timo Sirainen# When distributing Covered Code, include this CDDL HEADER in each
cb951d3282610a9a0960230865bc5f3e3347b203Timo Sirainen# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
a35cbba04d0a2823da98e693bd09a051addffdb2Timo Sirainen# If applicable, add the following below this CDDL HEADER, with the
82995cc154a929f37aa486a72a6485e9f8d34a30Timo Sirainen# fields enclosed by brackets "[]" replaced with your own identifying
a35cbba04d0a2823da98e693bd09a051addffdb2Timo Sirainen# information: Portions Copyright [yyyy] [name of copyright owner]
cb951d3282610a9a0960230865bc5f3e3347b203Timo Sirainen#
a35cbba04d0a2823da98e693bd09a051addffdb2Timo Sirainen# CDDL HEADER END
cb951d3282610a9a0960230865bc5f3e3347b203Timo Sirainen#
cb951d3282610a9a0960230865bc5f3e3347b203Timo Sirainen
cb951d3282610a9a0960230865bc5f3e3347b203Timo Sirainen#
a35cbba04d0a2823da98e693bd09a051addffdb2Timo Sirainen# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
82995cc154a929f37aa486a72a6485e9f8d34a30Timo Sirainen#
1795e934ebcd58175d3b5bbdd811b13c7889efa3Timo Sirainen
82995cc154a929f37aa486a72a6485e9f8d34a30Timo Siraineninclude ../../make-rules/shared-macros.mk
82995cc154a929f37aa486a72a6485e9f8d34a30Timo Sirainen
82995cc154a929f37aa486a72a6485e9f8d34a30Timo SirainenPATH=$(dir $(CC)):/usr/bin:/usr/gnu/bin
1795e934ebcd58175d3b5bbdd811b13c7889efa3Timo Sirainen
1795e934ebcd58175d3b5bbdd811b13c7889efa3Timo SirainenCOMPONENT_NAME= nethack
82995cc154a929f37aa486a72a6485e9f8d34a30Timo SirainenCOMPONENT_VERSION= 3.4.3
82995cc154a929f37aa486a72a6485e9f8d34a30Timo SirainenCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
82995cc154a929f37aa486a72a6485e9f8d34a30Timo SirainenCOMPONENT_ARCHIVE= $(COMPONENT_NAME)-343-src.tgz
82995cc154a929f37aa486a72a6485e9f8d34a30Timo SirainenCOMPONENT_ARCHIVE_HASH= sha1:c26537093c38152bc0fbcec20468d975b35f59fd
82995cc154a929f37aa486a72a6485e9f8d34a30Timo SirainenCOMPONENT_ARCHIVE_URL= http://sourceforge.net/projects/$(COMPONENT_NAME)/files/$(COMPONENT_NAME)/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)/download
82995cc154a929f37aa486a72a6485e9f8d34a30Timo Sirainen
82995cc154a929f37aa486a72a6485e9f8d34a30Timo Siraineninclude ../../make-rules/prep.mk
82995cc154a929f37aa486a72a6485e9f8d34a30Timo Siraineninclude ../../make-rules/justmake.mk
82995cc154a929f37aa486a72a6485e9f8d34a30Timo Siraineninclude ../../make-rules/ips.mk
82995cc154a929f37aa486a72a6485e9f8d34a30Timo Sirainen
82995cc154a929f37aa486a72a6485e9f8d34a30Timo SirainenPATCH_LEVEL=0
82995cc154a929f37aa486a72a6485e9f8d34a30Timo Sirainen
82995cc154a929f37aa486a72a6485e9f8d34a30Timo Sirainen# Need to use Makefiles in the sys/unix directory and copy them into various
82995cc154a929f37aa486a72a6485e9f8d34a30Timo Sirainen# other directories.
82995cc154a929f37aa486a72a6485e9f8d34a30Timo Sirainen#
82995cc154a929f37aa486a72a6485e9f8d34a30Timo SirainenCOMPONENT_PREP_ACTION= (cd $(SOURCE_DIR)/sys/unix ; sh setup.sh)
82995cc154a929f37aa486a72a6485e9f8d34a30Timo Sirainen
82995cc154a929f37aa486a72a6485e9f8d34a30Timo SirainenCOMPONENT_INSTALL_ARGS += CHOWN=true
82995cc154a929f37aa486a72a6485e9f8d34a30Timo SirainenCOMPONENT_INSTALL_ARGS += CHGRP=true
82995cc154a929f37aa486a72a6485e9f8d34a30Timo SirainenCOMPONENT_INSTALL_ARGS += ROOT=$(PROTO_DIR)
82995cc154a929f37aa486a72a6485e9f8d34a30Timo Sirainen
82995cc154a929f37aa486a72a6485e9f8d34a30Timo SirainenPKG_PROTO_DIRS += $(COMPONENT_SRC)/doc
82995cc154a929f37aa486a72a6485e9f8d34a30Timo Sirainen
82995cc154a929f37aa486a72a6485e9f8d34a30Timo Sirainen# common targets
1795e934ebcd58175d3b5bbdd811b13c7889efa3Timo Sirainenbuild: $(BUILD_32)
1795e934ebcd58175d3b5bbdd811b13c7889efa3Timo Sirainen
82995cc154a929f37aa486a72a6485e9f8d34a30Timo Siraineninstall: $(INSTALL_32)
82995cc154a929f37aa486a72a6485e9f8d34a30Timo Sirainen sed -e 's/^!\(NetHack.tomb\)/\1/' -e 's/^!\(NetHack.pet\)/\1/' \
82995cc154a929f37aa486a72a6485e9f8d34a30Timo Sirainen -e 's/^!\(NetHack.tile_file\)/\1/' \
82995cc154a929f37aa486a72a6485e9f8d34a30Timo Sirainen $(COMPONENT_SRC)/win/X11/NetHack.ad \
82995cc154a929f37aa486a72a6485e9f8d34a30Timo Sirainen > $(PROTO_DIR)/usr/lib/nethack/NetHack.ad
82995cc154a929f37aa486a72a6485e9f8d34a30Timo Sirainen
1795e934ebcd58175d3b5bbdd811b13c7889efa3Timo Sirainentest: $(NO_TESTS)
82995cc154a929f37aa486a72a6485e9f8d34a30Timo Sirainen
1795e934ebcd58175d3b5bbdd811b13c7889efa3Timo SirainenBUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
82995cc154a929f37aa486a72a6485e9f8d34a30Timo Sirainen
1795e934ebcd58175d3b5bbdd811b13c7889efa3Timo Siraineninclude ../../make-rules/depend.mk
1795e934ebcd58175d3b5bbdd811b13c7889efa3Timo Sirainen